Click here to Skip to main content
15,896,118 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: 840723 - overriding an MFC function Pin
khan++14-Oct-05 22:25
khan++14-Oct-05 22:25 
QuestionRe: 840723 - overriding an MFC function Pin
ilostmyid215-Oct-05 2:00
professionalilostmyid215-Oct-05 2:00 
Questionconvert cstring to int Pin
cell5114-Oct-05 21:01
cell5114-Oct-05 21:01 
AnswerRe: convert cstring to int Pin
Prakash Nadar14-Oct-05 21:09
Prakash Nadar14-Oct-05 21:09 
AnswerRe: convert cstring to int Pin
The NULL Developer14-Oct-05 21:17
professionalThe NULL Developer14-Oct-05 21:17 
AnswerRe: convert cstring to int Pin
John R. Shaw14-Oct-05 21:18
John R. Shaw14-Oct-05 21:18 
AnswerRe: convert cstring to int Pin
khan++14-Oct-05 21:19
khan++14-Oct-05 21:19 
QuestionFile Handle(very urgent) Pin
swaapu14-Oct-05 20:59
swaapu14-Oct-05 20:59 
HI!
I have used the GetModuleFileName function in my MFC SDI application. The syntax is:

DWORD GetModuleFileName(
HMODULE hModule, // handle to module
LPTSTR lpFilename, // path buffer
DWORD nSize // size of buffer
);

Parameters
hModule
[in] Handle to the module whose path is being requested. If this parameter is NULL, GetModuleFileName retrieves the path for the current module.

Now, the problem is with the HModule parameter. But, I don`t know how to set the handle to the module or file. What type of variable to declare. NULL is not serving my purpose.
Thanx
AnswerRe: File Handle(very urgent) Pin
khan++14-Oct-05 21:17
khan++14-Oct-05 21:17 
GeneralRe: File Handle(very urgent) Pin
swaapu14-Oct-05 23:16
swaapu14-Oct-05 23:16 
GeneralRe: File Handle(very urgent) Pin
khan++14-Oct-05 23:38
khan++14-Oct-05 23:38 
GeneralRe: File Handle(very urgent) Pin
swaapu15-Oct-05 1:31
swaapu15-Oct-05 1:31 
QuestionADO datetime parameter - datestring or numbers to VARIANT Pin
compoundeye14-Oct-05 20:54
compoundeye14-Oct-05 20:54 
AnswerRe: ADO datetime parameter - datestring or numbers to VARIANT Pin
Mircea Puiu14-Oct-05 21:32
Mircea Puiu14-Oct-05 21:32 
GeneralRe: ADO datetime parameter - datestring or numbers to VARIANT Pin
compoundeye14-Oct-05 21:46
compoundeye14-Oct-05 21:46 
QuestionWhy unable to receive all message from connected clients using IOCP Pin
14-Oct-05 20:08
suss14-Oct-05 20:08 
QuestionPlaying an mp3 file from memory Pin
V.G14-Oct-05 20:05
V.G14-Oct-05 20:05 
QuestionHow to find data encoding of received buffer with WSARecv() Pin
Member 168985514-Oct-05 19:49
Member 168985514-Oct-05 19:49 
AnswerRe: How to find data encoding of received buffer with WSARecv() Pin
kakan16-Oct-05 19:42
professionalkakan16-Oct-05 19:42 
GeneralRe: How to find data encoding of received buffer with WSARecv() Pin
Member 168985516-Oct-05 20:47
Member 168985516-Oct-05 20:47 
QuestionVC++6 Dll For use with VB6 Pin
tinman033014-Oct-05 18:45
tinman033014-Oct-05 18:45 
AnswerRe: VC++6 Dll For use with VB6 Pin
John R. Shaw14-Oct-05 22:01
John R. Shaw14-Oct-05 22:01 
GeneralRe: VC++6 Dll For use with VB6 Pin
tinman033015-Oct-05 12:48
tinman033015-Oct-05 12:48 
Questionwhy can't I see my class in the ClassView pane? Pin
ewighell14-Oct-05 18:05
ewighell14-Oct-05 18:05 
AnswerRe: why can't I see my class in the ClassView pane? Pin
Fired Fish14-Oct-05 20:12
Fired Fish14-Oct-05 20:12 

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.