Click here to Skip to main content
16,005,080 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionVC6 MFC serial port Pin
elegantcharm24-Aug-07 10:33
elegantcharm24-Aug-07 10:33 
QuestionHow do you determine who loaded a DLL? Pin
Joe Woodbury24-Aug-07 8:11
professionalJoe Woodbury24-Aug-07 8:11 
AnswerRe: How do you determine who loaded a DLL? Pin
Bob Nadler25-Aug-07 10:30
Bob Nadler25-Aug-07 10:30 
GeneralRe: How do you determine who loaded a DLL? Pin
Joe Woodbury25-Aug-07 13:49
professionalJoe Woodbury25-Aug-07 13:49 
GeneralRe: How do you determine who loaded a DLL? Pin
Perspx25-Aug-07 14:23
Perspx25-Aug-07 14:23 
GeneralRe: How do you determine who loaded a DLL? Pin
Joe Woodbury25-Aug-07 23:05
professionalJoe Woodbury25-Aug-07 23:05 
GeneralRe: How do you determine who loaded a DLL? Pin
Perspx25-Aug-07 23:35
Perspx25-Aug-07 23:35 
GeneralRe: How do you determine who loaded a DLL? Pin
David Crow27-Aug-07 3:21
David Crow27-Aug-07 3:21 
Joe Woodbury wrote:
(There may be several executables between the main application and my DLL.


And in this case, GetModuleFileName(NULL, ...) would return the name of the EXE whose address space contains your DLL, regardless of how many other EXEs were loaded first. For example:

A.EXE --> CreateProcess() --> B.EXE --> CreateProcess() --> C.EXE --> implicit/explicit linking --> YOUR.DLL

In this scenario, GetModuleFileName(NULL, ...) would return C.EXE.


"A good athlete is the result of a good and worthy opponent." - David Crow

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


GeneralRe: How do you determine who loaded a DLL? Pin
Joe Woodbury27-Aug-07 5:55
professionalJoe Woodbury27-Aug-07 5:55 
AnswerRe: How do you determine who loaded a DLL? Pin
cmk28-Aug-07 2:20
cmk28-Aug-07 2:20 
GeneralRe: How do you determine who loaded a DLL? Pin
Joe Woodbury28-Aug-07 5:50
professionalJoe Woodbury28-Aug-07 5:50 
GeneralRe: How do you determine who loaded a DLL? Pin
cmk28-Aug-07 12:23
cmk28-Aug-07 12:23 
Question[VC8 MFC] How is it possible to set the font color for an Edit Control and Static Text ? Pin
abiemann24-Aug-07 6:35
abiemann24-Aug-07 6:35 
AnswerRe: [VC8 MFC] How is it possible to set the font color for an Edit Control and Static Text ? Pin
Mark Salsbery24-Aug-07 7:10
Mark Salsbery24-Aug-07 7:10 
GeneralRe: [VC8 MFC] How is it possible to set the font color for an Edit Control and Static Text ? Pin
abiemann24-Aug-07 8:20
abiemann24-Aug-07 8:20 
GeneralRe: [VC8 MFC] How is it possible to set the font color for an Edit Control and Static Text ? Pin
Mark Salsbery24-Aug-07 8:31
Mark Salsbery24-Aug-07 8:31 
GeneralRe: [VC8 MFC] How is it possible to set the font color for an Edit Control and Static Text ? Pin
abiemann24-Aug-07 11:13
abiemann24-Aug-07 11:13 
GeneralRe: [VC8 MFC] How is it possible to set the font color for an Edit Control and Static Text ? Pin
Mark Salsbery24-Aug-07 11:22
Mark Salsbery24-Aug-07 11:22 
GeneralRe: [VC8 MFC] How is it possible to set the font color for an Edit Control and Static Text ? Pin
Mark Salsbery24-Aug-07 11:30
Mark Salsbery24-Aug-07 11:30 
AnswerRe: [VC8 MFC] How is it possible to set the font color for an Edit Control and Static Text ? Pin
Jim Crafton24-Aug-07 7:12
Jim Crafton24-Aug-07 7:12 
Questionstackwalk64 compilation error on 64 bit windows - Cannot convert parameter from 'int' to 'HANDLE' Pin
John Oliviers24-Aug-07 5:39
John Oliviers24-Aug-07 5:39 
AnswerRe: stackwalk64 compilation error on 64 bit windows - Cannot convert parameter from 'int' to 'HANDLE' Pin
Maxwell Chen24-Aug-07 6:10
Maxwell Chen24-Aug-07 6:10 
GeneralRe: stackwalk64 compilation error on 64 bit windows - Cannot convert parameter from 'int' to 'HANDLE' Pin
John Oliviers24-Aug-07 7:31
John Oliviers24-Aug-07 7:31 
GeneralRe: stackwalk64 compilation error on 64 bit windows - Cannot convert parameter from 'int' to 'HANDLE' [modified] Pin
Maxwell Chen24-Aug-07 7:56
Maxwell Chen24-Aug-07 7:56 
GeneralRe: stackwalk64 compilation error on 64 bit windows - Cannot convert parameter from 'int' to 'HANDLE' Pin
John Oliviers24-Aug-07 8:34
John Oliviers24-Aug-07 8:34 

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.