Click here to Skip to main content
15,899,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Release Build Error Pin
kakan13-Oct-05 19:23
professionalkakan13-Oct-05 19:23 
Questionany good assembly language links? Pin
valerie9913-Oct-05 10:53
valerie9913-Oct-05 10:53 
AnswerRe: any good assembly language links? Pin
ThatsAlok13-Oct-05 19:13
ThatsAlok13-Oct-05 19:13 
Questiontwo projects in 1 solution Pin
LeeeNN13-Oct-05 10:28
LeeeNN13-Oct-05 10:28 
AnswerRe: two projects in 1 solution Pin
FlamTaps13-Oct-05 14:16
FlamTaps13-Oct-05 14:16 
QuestionVC++ 6.0 GUI application with TCL 8.4 Pin
dipuks13-Oct-05 7:41
dipuks13-Oct-05 7:41 
AnswerRe: VC++ 6.0 GUI application with TCL 8.4 Pin
Mohammad A Gdeisat13-Oct-05 14:35
Mohammad A Gdeisat13-Oct-05 14:35 
QuestionDLL Won't load in different location Pin
pgarciajumela13-Oct-05 7:13
pgarciajumela13-Oct-05 7:13 
I hope someone can help me with this one.

I created a DLL to be used by one of my programs. Here is the code I use to load the DLL:

	HINSTANCE hDLL;<br />
        int iReturnVal;<br />
	MYDLL dll;<br />
<br />
	hDLL = LoadLibrary("MYDLL.DLL");<br />
<br />
	if (hDLL != NULL)<br />
	{<br />
           // Do stuff<br />
	}<br />
	else<br />
	{<br />
		iReturnVal = MessageBox("Missing DLL: MYDLL.DLL","ERROR",MB_OK);<br />
	}<br />


When I run my program in the development workstation (where Visual Studio is loaded), it executes without a problem.

I moved the executable and the dll to a different testing PC (along with msvcr70.dll and mfc70.dll, needed becuase that PC didn't have them).

I put the executable and the three dll's (the MS ones and my own) in the same directory. I can start my application but when I try to use the section that executes the code above, I get the "Missing DLL: MYDLL.DLL" message. Confused | :confused:

Any ideas?

Am I missing something?
AnswerRe: DLL Won't load in different location Pin
Chris Losinger13-Oct-05 7:19
professionalChris Losinger13-Oct-05 7:19 
GeneralRe: DLL Won't load in different location Pin
pgarciajumela13-Oct-05 7:22
pgarciajumela13-Oct-05 7:22 
GeneralRe: DLL Won't load in different location Pin
pgarciajumela13-Oct-05 7:31
pgarciajumela13-Oct-05 7:31 
GeneralRe: DLL Won't load in different location Pin
Chris Losinger13-Oct-05 7:40
professionalChris Losinger13-Oct-05 7:40 
GeneralRe: DLL Won't load in different location Pin
pgarciajumela13-Oct-05 8:45
pgarciajumela13-Oct-05 8:45 
GeneralRe: DLL Won't load in different location Pin
Blake V. Miller13-Oct-05 18:07
Blake V. Miller13-Oct-05 18:07 
QuestionGDI- How to draw concentric circles in the client area of window Pin
tamila_tamila13-Oct-05 7:00
tamila_tamila13-Oct-05 7:00 
AnswerRe: GDI- How to draw concentric circles in the client area of window Pin
S. Senthil Kumar13-Oct-05 21:59
S. Senthil Kumar13-Oct-05 21:59 
QuestionRuntime Error, dbgheap.c Line:612 Pin
Jader8913-Oct-05 6:21
Jader8913-Oct-05 6:21 
GeneralRe: Runtime Error, dbgheap.c Line:612 Pin
David Crow13-Oct-05 7:06
David Crow13-Oct-05 7:06 
GeneralRe: Runtime Error, dbgheap.c Line:612 Pin
Jader8913-Oct-05 8:13
Jader8913-Oct-05 8:13 
QuestionRe: Runtime Error, dbgheap.c Line:612 Pin
David Crow13-Oct-05 10:20
David Crow13-Oct-05 10:20 
AnswerRe: Runtime Error, dbgheap.c Line:612 Pin
Jader8914-Oct-05 7:44
Jader8914-Oct-05 7:44 
QuestionHelp with Multi Functions Pin
WackoWolf13-Oct-05 6:12
WackoWolf13-Oct-05 6:12 
AnswerRe: Help with Multi Functions Pin
Maximilien13-Oct-05 6:35
Maximilien13-Oct-05 6:35 
GeneralRe: Help with Multi Functions Pin
WackoWolf13-Oct-05 7:16
WackoWolf13-Oct-05 7:16 
AnswerRe: Help with Multi Functions Pin
ky_rerun13-Oct-05 8:54
ky_rerun13-Oct-05 8:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.