Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 643
  • Last Modified:

Resource Problems with Extension DLLs

I'm working with some guys who are making extensions to MS Outlook, and they're putting their code in extension DLLs.  The problem is that for some of them, their DLLs can't find their resources.  In a regular MFC DLL you can solve this problem by using AfxManageState(), but we're not sure how to solve it when we're using Extension DLLs.  Does anyone know?
0
nbushman
Asked:
nbushman
1 Solution
 
chensuCommented:
Use AfxSetResourceHandle(extensionDLL.hModule);

Look into the MFC sample "DLLHUSK: Dynamically Links the MFC Library". Pay attention to testdll2.cpp.
0
 
nbushmanAuthor Commented:
Thanks, that's exactly what I was looking for!
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now