CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    good handle of resource

    Is it possible to force every functions defined in an extension DLL to use by default the resources of its DLL without use everytime the function
    AfxSetResourceHandle(GetModuleHandle("filename.dll"));
    before ?

    The probleme appears when you have the same ID in many resource handles!


  2. #2
    Join Date
    Apr 1999
    Posts
    383

    Re: good handle of resource

    I don't know any way around this, but it only needs to be done for exported functions that will use resources.

    It's probably simpler and quicker to use AfxGetResourceHandle() once to get your DLL handle at initialisation time and use this for the argument to AfxSetResourceHandle() in each function.

    Dave


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