Solved

Problem in finding resource in a DLL

Posted on 2003-11-06
5
160 Views
Last Modified: 2013-11-20
Hi,

I ahve loaded a dll from a exp application. I am trying to create a form view in a dll. It created doc and frame but gives following error when I try to load a dialog resource for form view.
"The specified resource name cannot be found in image file"

Any idea why this is happening. I gave used AFX_MANAGE_STATE(AfxGetAppModuleState());in side the dll.


Any quick solution would be highly appretiated.
0
Comment
Question by:idheeraj
  • 2
5 Comments
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 130 total points
ID: 9701962
AfxSetResourceHandle(hInstDll) may be your answer.
Note that the hInstDll is the HINSTANCE supplied to the dll in its startup.  AfxGetResourceHandle() returns the resource handle of the app.

0
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 11849688
My comment would be a way to achieve the desired effect
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now