Load string from the STRINGTABLE
How can I load a string from a String Table? I tried using LoadString function.But in passing HINSTANCE parameter what can I pass? How can I get the HINSTANCE parameter. i.e the string from String Table in resource file.
Please reply as early as possible.
Thanks,
Shivaleela.
Re: Load string from the STRINGTABLE
Hi,
use CString::LoadString instead. This function will load the string resource into your string object.
Greetings, Jörg
Re: Load string from the STRINGTABLE
If you really want to use the API call, AfxGetInstanceHandle() will get the current instance (assuming the string table is in the resources bound to your app - otherwise the HMODULE / HINSTANCE (the same thing) returned by LoadLibrary() will be the one to use).