Click here to Skip to main content
15,887,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Communication .....what I'm sending and receiving.... Pin
LitteWindow15-Sep-08 3:14
LitteWindow15-Sep-08 3:14 
GeneralRe: Communication .....what I'm sending and receiving.... Pin
Mark Salsbery15-Sep-08 5:29
Mark Salsbery15-Sep-08 5:29 
GeneralRe: Communication .....what I'm sending and receiving.... Pin
LitteWindow15-Sep-08 12:56
LitteWindow15-Sep-08 12:56 
QuestionRe: Winsock 10053 for my app but not for others/ Pin
Mark Salsbery12-Sep-08 12:25
Mark Salsbery12-Sep-08 12:25 
QuestionReturn true/false or TRUE/FALSE in COM? [modified] Pin
followait11-Sep-08 15:10
followait11-Sep-08 15:10 
AnswerRe: Return true/false or TRUE/FALSE in COM? Pin
David Crow11-Sep-08 17:11
David Crow11-Sep-08 17:11 
AnswerRe: Return true/false or TRUE/FALSE in COM? Pin
James R. Twine12-Sep-08 7:56
James R. Twine12-Sep-08 7:56 
QuestionGetModuleHandle in a DLL Pin
sawerr11-Sep-08 10:11
sawerr11-Sep-08 10:11 
Hi
"Then the loader maps the executable module at memory address 0x00400000 and the DLL module at 0x10000000."
http://www.codeproject.com/KB/DLL/RebaseDll.aspx[^]

I built a dll and export a function which is called GetModuleHandle(NULL);
Then an MFC application which is included this dll.
In Mfc app calling GetModuleHandle(NULL); returns 0x00400000. OK.

But when i called an exported function in the dll, it returned 0x00400000 too.

But I expected to see 0x10000000.

So can we say GetModuleHandle(NULL) always returns EXE's load address even it is in a DLL?
AnswerRe: GetModuleHandle in a DLL Pin
Mark Salsbery11-Sep-08 10:17
Mark Salsbery11-Sep-08 10:17 
GeneralRe: GetModuleHandle in a DLL Pin
sawerr11-Sep-08 10:27
sawerr11-Sep-08 10:27 
QuestionMFC Programming Problem. Pin
kaushal kishore sharma11-Sep-08 8:40
kaushal kishore sharma11-Sep-08 8:40 
QuestionRe: MFC Programming Problem. Pin
Mark Salsbery11-Sep-08 8:43
Mark Salsbery11-Sep-08 8:43 
AnswerRe: MFC Programming Problem. Pin
kaushal kishore sharma11-Sep-08 9:01
kaushal kishore sharma11-Sep-08 9:01 
GeneralRe: MFC Programming Problem. Pin
Mark Salsbery11-Sep-08 9:18
Mark Salsbery11-Sep-08 9:18 
GeneralRe: MFC Programming Problem. Pin
kaushal kishore sharma11-Sep-08 9:23
kaushal kishore sharma11-Sep-08 9:23 
GeneralRe: MFC Programming Problem. Pin
Mark Salsbery11-Sep-08 9:29
Mark Salsbery11-Sep-08 9:29 
GeneralRe: MFC Programming Problem. Pin
kaushal kishore sharma11-Sep-08 9:32
kaushal kishore sharma11-Sep-08 9:32 
GeneralRe: MFC Programming Problem. Pin
David Crow11-Sep-08 10:21
David Crow11-Sep-08 10:21 
AnswerRe: MFC Programming Problem. Pin
followait11-Sep-08 15:15
followait11-Sep-08 15:15 
QuestionReading text from an activated view... Pin
PankajB11-Sep-08 5:52
PankajB11-Sep-08 5:52 
AnswerRe: Reading text from an activated view... Pin
enhzflep11-Sep-08 6:04
enhzflep11-Sep-08 6:04 
GeneralRe: Reading text from an activated view... Pin
James R. Twine11-Sep-08 8:51
James R. Twine11-Sep-08 8:51 
GeneralRe: Reading text from an activated view... Pin
enhzflep11-Sep-08 15:30
enhzflep11-Sep-08 15:30 
GeneralRe: Reading text from an activated view... Pin
PankajB11-Sep-08 17:22
PankajB11-Sep-08 17:22 
GeneralRe: Reading text from an activated view... Pin
PankajB11-Sep-08 18:01
PankajB11-Sep-08 18:01 

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.