?
Solved

Problem in finding resource in a DLL

Posted on 2003-11-06
5
Medium Priority
?
167 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 520 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month9 days, 11 hours left to enroll

762 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