Click here to Skip to main content
15,923,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: LoadLibrary in a DLL Pin
ForNow16-Apr-08 17:09
ForNow16-Apr-08 17:09 
GeneralRe: LoadLibrary in a DLL Pin
Randor 16-Apr-08 17:25
professional Randor 16-Apr-08 17:25 
GeneralRe: LoadLibrary in a DLL Pin
ForNow16-Apr-08 17:39
ForNow16-Apr-08 17:39 
GeneralRe: LoadLibrary in a DLL Pin
Randor 16-Apr-08 17:49
professional Randor 16-Apr-08 17:49 
GeneralRe: LoadLibrary in a DLL Pin
ForNow17-Apr-08 16:12
ForNow17-Apr-08 16:12 
QuestionRe: LoadLibrary in a DLL Pin
David Crow17-Apr-08 4:10
David Crow17-Apr-08 4:10 
QuestionRe: LoadLibrary in a DLL Pin
David Crow17-Apr-08 4:10
David Crow17-Apr-08 4:10 
GeneralRe: LoadLibrary in a DLL Pin
ForNow17-Apr-08 6:47
ForNow17-Apr-08 6:47 
Sorry dont know Where that thread came from

I did a LoadLibrary in my main executable for imagehlp and it worked... however what I was hoping to see is in my DLL when I get the thread_attach message is to identify the thread

Some one suggested the use of StackWalk so.....

Orignally I did the LoadLibrary in DLLmain but I was quickly told that was a big no no ... As the OS namely Windows hold locks while processing DLLmain as it is shared code among .exe and DLL and I would cause a deadlock

So.. I put the code for this (the LoadLibrary and GetProc in a exported function in the same source as my DLL

My main .exe imported this function and I called the function in a another DLL that was "implicity loaded" (hope that is right term as opposed to Dynamic Loaded e.g. LoadLibrary) in my main .exe a few lines after my startup code from my main .exe

I think calling a exported function from a DLL which does a LoadLibrary maybe the problem

Dont Know

Thankx again
GeneralRe: LoadLibrary in a DLL The value returned from LoadLibrary was NULL Pin
ForNow17-Apr-08 6:56
ForNow17-Apr-08 6:56 
QuestionRe: LoadLibrary in a DLL The value returned from LoadLibrary was NULL Pin
David Crow17-Apr-08 7:29
David Crow17-Apr-08 7:29 
GeneralRe: LoadLibrary in a DLL The value returned from LoadLibrary was NULL Pin
ForNow17-Apr-08 14:47
ForNow17-Apr-08 14:47 
GeneralhImagehlpDll = LoadLibrary((LPCWSTR)L"imagehlp.dll" ); this WORKED Pin
ForNow17-Apr-08 16:16
ForNow17-Apr-08 16:16 
GeneralRe: hImagehlpDll = LoadLibrary((LPCWSTR)L"imagehlp.dll" ); this WORKED Pin
David Crow18-Apr-08 3:34
David Crow18-Apr-08 3:34 
GeneralRe: hImagehlpDll = LoadLibrary((LPCWSTR)L"imagehlp.dll" ); this WORKED Pin
ForNow18-Apr-08 6:21
ForNow18-Apr-08 6:21 
QuestionRe: hImagehlpDll = LoadLibrary((LPCWSTR)L"imagehlp.dll" ); this WORKED Pin
David Crow18-Apr-08 7:02
David Crow18-Apr-08 7:02 
GeneralRe: hImagehlpDll = LoadLibrary((LPCWSTR)L"imagehlp.dll" ); this WORKED Pin
ForNow18-Apr-08 11:42
ForNow18-Apr-08 11:42 
Generalinline Pin
User 58385216-Apr-08 13:12
User 58385216-Apr-08 13:12 
GeneralRe: inline Pin
Stephen Hewitt16-Apr-08 15:10
Stephen Hewitt16-Apr-08 15:10 
GeneralRe: inline Pin
User 58385216-Apr-08 15:17
User 58385216-Apr-08 15:17 
GeneralRe: inline Pin
Randor 16-Apr-08 16:13
professional Randor 16-Apr-08 16:13 
GeneralRe: inline Pin
Randor 16-Apr-08 16:10
professional Randor 16-Apr-08 16:10 
GeneralRe: inline Pin
Stephen Hewitt16-Apr-08 16:23
Stephen Hewitt16-Apr-08 16:23 
GeneralRe: inline Pin
cp987616-Apr-08 16:55
cp987616-Apr-08 16:55 
GeneralIE site refresh message Pin
maarchewa16-Apr-08 10:33
maarchewa16-Apr-08 10:33 
GeneralProgramatically determine if windows updates are being installed Pin
nwunder16-Apr-08 9:43
nwunder16-Apr-08 9:43 

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.