Solved

Problem in finding resource in a DLL

Posted on 2003-11-06
5
161 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
GIF file bit manipulation for color change 5 107
Expand to include initial dialog with two choices. 9 67
FizzBuzz challenge 9 77
MaxSpan challenge 9 82
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

867 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

21 Experts available now in Live!

Get 1:1 Help Now