Click here to Skip to main content
15,918,267 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: difference between RunTime and Link Time Pin
Cedric Moonen10-Apr-06 2:56
Cedric Moonen10-Apr-06 2:56 
AnswerRe: difference between RunTime and Link Time Pin
James R. Twine10-Apr-06 3:07
James R. Twine10-Apr-06 3:07 
AnswerRe: difference between RunTime and Link Time Pin
RabiaAslam10-Apr-06 3:53
RabiaAslam10-Apr-06 3:53 
GeneralRe: difference between RunTime and Link Time Pin
Krishnatv10-Apr-06 19:34
Krishnatv10-Apr-06 19:34 
QuestionResizing problem Pin
mikobi10-Apr-06 2:17
mikobi10-Apr-06 2:17 
AnswerRe: Resizing problem Pin
includeh1010-Apr-06 3:05
includeh1010-Apr-06 3:05 
GeneralRe: Resizing problem Pin
mikobi10-Apr-06 3:57
mikobi10-Apr-06 3:57 
Questionwhy can not I get a long filename through GetModuleFileName( )? Pin
ewighell10-Apr-06 2:09
ewighell10-Apr-06 2:09 
I only get a 8.3 format filename through following code, and I want to get a long filename, how?

HINSTANCE hInst = AfxGetInstanceHandle();
if(FAILED(!hInst)) return E_FAIL;
CString strDllFileName;
DWORD Status = GetModuleFileName (hInst, (LPTSTR)(LPCTSTR)strDllFileName, MAX_PATH);
TRACE(strDllFileName);


by debugging, I find that the value of strDllFileName is F:\hu\DD\DETAIL~1\Debug\DETAIL~1.DLL, and the corresponding longname is F:\hu\DD\DetailDesign\Debug\DetailDesign.dll

Note:
I am programming in VC++ 6.0, my Operating System is Windows XP, the Disk F: ,where the .dll file is located, is NTFS format.

Thank you very much!!!

-------------------
I am learning C++ and English
QuestionRe: why can not I get a long filename through GetModuleFileName( )? Pin
David Crow10-Apr-06 2:25
David Crow10-Apr-06 2:25 
AnswerRe: why can not I get a long filename through GetModuleFileName( )? Pin
Thierry Maurel10-Apr-06 2:25
Thierry Maurel10-Apr-06 2:25 
AnswerRe: why can not I get a long filename through GetModuleFileName( )? Pin
Naveen10-Apr-06 2:26
Naveen10-Apr-06 2:26 
AnswerRe: why can not I get a long filename through GetModuleFileName( )? Pin
James R. Twine10-Apr-06 2:36
James R. Twine10-Apr-06 2:36 
QuestionConverting .rtf to .HLP-File Pin
hanno2510-Apr-06 1:52
hanno2510-Apr-06 1:52 
AnswerRe: Converting .rtf to .HLP-File Pin
Laxman Auti10-Apr-06 2:03
Laxman Auti10-Apr-06 2:03 
AnswerRe: Converting .rtf to .HLP-File Pin
Waldermort10-Apr-06 2:05
Waldermort10-Apr-06 2:05 
QuestionSyntax error Pin
parichaybp10-Apr-06 1:42
parichaybp10-Apr-06 1:42 
AnswerRe: Syntax error Pin
toxcct10-Apr-06 1:46
toxcct10-Apr-06 1:46 
GeneralRe: Syntax error Pin
parichaybp10-Apr-06 2:12
parichaybp10-Apr-06 2:12 
GeneralRe: Syntax error Pin
toxcct10-Apr-06 2:13
toxcct10-Apr-06 2:13 
AnswerRe: Syntax error Pin
Laxman Auti10-Apr-06 1:55
Laxman Auti10-Apr-06 1:55 
GeneralRe: Syntax error Pin
parichaybp10-Apr-06 2:06
parichaybp10-Apr-06 2:06 
GeneralRe: Syntax error Pin
toxcct10-Apr-06 2:10
toxcct10-Apr-06 2:10 
GeneralRe: Syntax error Pin
parichaybp10-Apr-06 2:19
parichaybp10-Apr-06 2:19 
AnswerRe: Syntax error Pin
eli1502197910-Apr-06 2:12
eli1502197910-Apr-06 2:12 
GeneralRe: Syntax error Pin
toxcct10-Apr-06 2:15
toxcct10-Apr-06 2:15 

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.