Click here to Skip to main content
15,911,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Thanks for all the input. Just to let you all know, GetCurrentDirectory() doesn't cut it, your current working directory seems to have nothing to do with your exe path. Anyway, the easiest way I found is shown below.


CString File;

GetModuleFileName(NULL, File.GetBuffer(MAX_PATH), MAX_PATH);
File.ReleaseBuffer(File.ReverseFind('\\') + 1);


If the exe path was say... "c:\my documents\code\program\app.exe", the File CString is "c:\my documents\code\program\"


RE: John Simmons / outlaw programmer (or anyone else who knows how to...)

How do you get your code to show up like that on a message? (With the yellow background, and formatting in-tact)

THANKS!
John
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 
GeneralRe: pointer to a function Pin
5-Jul-01 18:28
suss5-Jul-01 18:28 
GeneralRe: pointer to a function Pin
8-Jul-01 11:03
suss8-Jul-01 11:03 
GeneralRe: pointer to a function Pin
Oliver Anhuth8-Jul-01 20:53
Oliver Anhuth8-Jul-01 20:53 

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.