Click here to Skip to main content
16,007,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Process Directory Pin
Christian Graus5-Jul-01 12:28
protectorChristian Graus5-Jul-01 12:28 
GeneralRe: Process Directory Pin
John Uhlenbrock5-Jul-01 12:32
John Uhlenbrock5-Jul-01 12:32 
GeneralRe: Process Directory Pin
Tim Deveaux5-Jul-01 13:28
Tim Deveaux5-Jul-01 13:28 
GeneralRe: Process Directory Pin
John Uhlenbrock5-Jul-01 13:30
John Uhlenbrock5-Jul-01 13:30 
GeneralRe: Process Directory Pin
Tim Deveaux5-Jul-01 13:40
Tim Deveaux5-Jul-01 13:40 
GeneralRe: Process Directory Pin
Mike Burston5-Jul-01 14:30
Mike Burston5-Jul-01 14:30 
GeneralRe: Process Directory Pin
Kannan Kalyanaraman5-Jul-01 23:10
Kannan Kalyanaraman5-Jul-01 23:10 
GeneralRe: Process Directory Pin
Mike Burston5-Jul-01 13:36
Mike Burston5-Jul-01 13:36 
"GetCurrentDirectory" will return you the directory that the current process is running in (fairly obvious from the name, really!!). If you create a desktop shortcut this is the "Start In" entry (at least, that's what it's called under 2000 - I can't remember if NT/95/etc use the exact same terminology).

"GetModuleFileName" will return you the path of the file that the specified module (such as a DLL) was loaded into memeory from. If you pass NULL as the first parameter you get the path of the current process module. You may need to process the returned value from "GetModuleFileName" to extract exactly what you want (path only, filename only, etc) - it's been a while since I did anything like this, so I'm not sure!

GeneralRe: Process Directory Pin
Carlos Antollini5-Jul-01 12:36
Carlos Antollini5-Jul-01 12:36 
GeneralRe: Process Directory Pin
#realJSOP6-Jul-01 4:54
professional#realJSOP6-Jul-01 4:54 
GeneralRe: Everyone. Pin
John Uhlenbrock9-Jul-01 7:05
John Uhlenbrock9-Jul-01 7:05 
GeneralSimulate a carriage return Pin
RobJones5-Jul-01 10:12
RobJones5-Jul-01 10:12 
GeneralRe: Simulate a carriage return Pin
Christian Graus5-Jul-01 12:16
protectorChristian Graus5-Jul-01 12:16 
GeneralRe: Simulate a carriage return Pin
Julien5-Jul-01 13:34
Julien5-Jul-01 13:34 
GeneralRe: Simulate a carriage return Pin
CMFC6.0VS.NETUser6-Jul-01 4:49
CMFC6.0VS.NETUser6-Jul-01 4:49 
GeneralBeginner Question Pin
Dan Madden5-Jul-01 9:55
Dan Madden5-Jul-01 9:55 
GeneralRe: Beginner Question Pin
Pavlos Touboulidis5-Jul-01 10:29
Pavlos Touboulidis5-Jul-01 10:29 
GeneralRe: Doesn't Work Pin
Dan Madden5-Jul-01 17:38
Dan Madden5-Jul-01 17:38 
GeneralRe: Doesn't Work Pin
Mike Burston5-Jul-01 18:11
Mike Burston5-Jul-01 18:11 
GeneralRe: Doesn't Work Pin
Dan Madden5-Jul-01 18:25
Dan Madden5-Jul-01 18:25 
GeneralRe: Doesn't Work Pin
Mike Burston5-Jul-01 18:42
Mike Burston5-Jul-01 18:42 
GeneralRe: Doesn't Work Pin
Dan Madden5-Jul-01 19:20
Dan Madden5-Jul-01 19:20 
Generalpointer to a function Pin
5-Jul-01 9:13
suss5-Jul-01 9:13 
GeneralRe: pointer to a function Pin
Chris Losinger5-Jul-01 9:26
professionalChris Losinger5-Jul-01 9:26 
GeneralRe: pointer to a function Pin
KingsGambit5-Jul-01 18:00
KingsGambit5-Jul-01 18:00 

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.