Link to home
Start Free TrialLog in
Avatar of harsha_james
harsha_james

asked on

C++ Resource file strings

Hi,
I am using a resource file in my c++ DLL to store some strings. I have used the 'STRINGTABLE' type. Now, I am able to get the string from the DLL using the 'Loadstring' function.
My requirement is as follows:
The number of strings in the STRINGTABLE can vary. Now, before getting the strings from the DLL, I want to get the total number of strings in the DLL resource file's STRINGTABLE. Is there any function like 'Loadstring' that gives us the number of strings in the file?

Also, is there a function with which I can read all the strings together in one go?

Thanks in advance for your suggestions,
Warm regards,
hj
Avatar of Deepu Abraham
Deepu Abraham
Flag of United States of America image

You could write a function to return the count and try exporting that.
ASKER CERTIFIED SOLUTION
Avatar of stsanz
stsanz

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of harsha_james
harsha_james

ASKER

Thanks a lot for your replies.