FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Question about resources
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Question about resources
Posted: Mon Aug 31, 2015 09:11 PM

Hello,

How can I check in my application if a resource exists in my RES-file?

Thanks in advance.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Question about resources
Posted: Mon Aug 31, 2015 09:35 PM
Michel,

FindResource( GetResources(), cName, nType ) --> nHandle (zero if it is not found)

where nType is one of the values listed here:

https://msdn.microsoft.com/en-us/library/windows/desktop/ms648009(v=vs.85).aspx

https://msdn.microsoft.com/en-us/library/windows/desktop/ms648042(v=vs.85).aspx
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Question about resources
Posted: Mon Aug 31, 2015 10:07 PM

Thanks a lot, Antonio.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Continue the discussion