Solved

Problem in finding resource in a DLL

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
Separate into files by filename 12 87
viewing source code from eclipse 13 110
isEverywhere  challenge 19 82
how to use laptop or pad camera in vb.net windows application 2 86
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. …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

856 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