Click to See Complete Forum and Search --> : Load string from the STRINGTABLE
sheelu_k
October 8th, 1999, 05:29 AM
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.
Jörg Eckart
October 8th, 1999, 05:51 AM
Hi,
use CString::LoadString instead. This function will load the string resource into your string object.
Greetings, Jörg
Jason Teagle
October 8th, 1999, 05:56 AM
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).
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.