Click here to Skip to main content
15,898,538 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Get the program folder Pin
Tom Wright9-Aug-04 10:23
Tom Wright9-Aug-04 10:23 
GeneralRe: Get the program folder Pin
Larsson9-Aug-04 11:03
Larsson9-Aug-04 11:03 
GeneralRe: Get the program folder Pin
Tom Wright9-Aug-04 12:12
Tom Wright9-Aug-04 12:12 
GeneralRe: Get the program folder Pin
Toby Opferman9-Aug-04 11:44
Toby Opferman9-Aug-04 11:44 
GeneralRe: Get the program folder Pin
PJ Arends9-Aug-04 16:05
professionalPJ Arends9-Aug-04 16:05 
GeneralShell doesnt give long filename Pin
KnaveWave9-Aug-04 8:04
KnaveWave9-Aug-04 8:04 
GeneralRe: Shell doesnt give long filename Pin
OBRon9-Aug-04 8:12
OBRon9-Aug-04 8:12 
GeneralRe: Shell doesnt give long filename Pin
Toby Opferman9-Aug-04 12:02
Toby Opferman9-Aug-04 12:02 
Unless he's calling a "short file name" just the "file name" as in x.exe. I've seen this that sometimes you get a full path in the command line and sometimes you just get the exe name.

If you want to get the path to the current executable, which is what you want? You don't want to trust the command line.

To get the path to the location of the exectuable (or DLL) use "GetModuleFileName" or "GetModuleFileNameEx". Those should get you the path to the executable.


GeneralRe: Shell doesnt give long filename Pin
KnaveWave9-Aug-04 16:24
KnaveWave9-Aug-04 16:24 
GeneralRe: Shell doesnt give long filename Pin
OBRon10-Aug-04 1:55
OBRon10-Aug-04 1:55 
QuestionUpdate VS .NET 7.0 to 7.1 possible? Pin
Maarten Kools9-Aug-04 7:42
professionalMaarten Kools9-Aug-04 7:42 
AnswerRe: Update VS .NET 7.0 to 7.1 possible? Pin
OBRon9-Aug-04 8:16
OBRon9-Aug-04 8:16 
GeneralThread is not going to the Function Pin
aman20069-Aug-04 6:33
aman20069-Aug-04 6:33 
GeneralRe: Thread is not going to the Function Pin
David Crow9-Aug-04 9:18
David Crow9-Aug-04 9:18 
GeneralRe: Thread is not going to the Function Pin
aman20069-Aug-04 10:37
aman20069-Aug-04 10:37 
GeneralRe: Thread is not going to the Function Pin
David Crow10-Aug-04 4:53
David Crow10-Aug-04 4:53 
QuestionHow to know Security Context & Impersonation ? Pin
Anonymous9-Aug-04 6:31
Anonymous9-Aug-04 6:31 
AnswerRe: How to know Security Context & Impersonation ? Pin
Toby Opferman9-Aug-04 11:40
Toby Opferman9-Aug-04 11:40 
GeneralRe: How to know Security Context & Impersonation ? Pin
Amarelia9-Aug-04 14:52
Amarelia9-Aug-04 14:52 
GeneralHelp on Help Pin
Tim Hsieh9-Aug-04 6:29
Tim Hsieh9-Aug-04 6:29 
GeneralRe: Help on Help Pin
Blake Miller9-Aug-04 8:07
Blake Miller9-Aug-04 8:07 
Generalweb browser control in a dll Pin
Phil Hamer9-Aug-04 6:20
Phil Hamer9-Aug-04 6:20 
GeneralSerial Port Question Pin
Tom Wright9-Aug-04 5:52
Tom Wright9-Aug-04 5:52 
GeneralRe: Serial Port Question Pin
palbano9-Aug-04 9:40
palbano9-Aug-04 9:40 
GeneralRe: Serial Port Question Pin
Tom Wright9-Aug-04 10:21
Tom Wright9-Aug-04 10:21 

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.