Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Problem in finding resource in a DLL

Posted on 2003-11-06
5
Medium Priority
?
169 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 45

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 45

Expert Comment

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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

636 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