CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 1999
    Location
    KA ,INDIA
    Posts
    4

    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.


  2. #2
    Join Date
    May 1999
    Posts
    35

    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


  3. #3
    Join Date
    May 1999
    Location
    Farnborough, Hants, England
    Posts
    710

    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).



    --
    Jason Teagle
    [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured