Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to use One Pointer Object in another .cpp file? Pin
Albert Holguin14-Apr-11 14:43
professionalAlbert Holguin14-Apr-11 14:43 
GeneralRe: How to use One Pointer Object in another .cpp file? [modified] Pin
002comp14-Apr-11 21:14
002comp14-Apr-11 21:14 
GeneralRe: How to use One Pointer Object in another .cpp file? Pin
Stefan_Lang14-Apr-11 23:18
Stefan_Lang14-Apr-11 23:18 
GeneralRe: How to use One Pointer Object in another .cpp file? Pin
002comp15-Apr-11 2:24
002comp15-Apr-11 2:24 
GeneralRe: How to use One Pointer Object in another .cpp file? Pin
Stefan_Lang15-Apr-11 4:42
Stefan_Lang15-Apr-11 4:42 
GeneralRe: How to use One Pointer Object in another .cpp file? Pin
Albert Holguin15-Apr-11 4:29
professionalAlbert Holguin15-Apr-11 4:29 
AnswerRe: How to use One Pointer Object in another .cpp file? Pin
Code-o-mat14-Apr-11 23:07
Code-o-mat14-Apr-11 23:07 
QuestionHow to convert filename to fully qualified name when running an app with a filename argument in the current working directory Pin
Erik13-Apr-11 20:05
Erik13-Apr-11 20:05 
Hi,

I am writing a commandline app that accepts a filename as parameter, and wonder if there is an easy way to convert the filename to a fully qualified filename when starting the app within a directory, and provide a filename that is located in the current working directory.

for example, my app is located in c:\test\myapp.exe, and the file infile.txt is located there as well. So a user can call myapp.exe infile.txt from that directory.

In my app, I'd like to be infile.txt converted to c:\test\infile.txt. Is there a function in the Win API or MFC that automatically expands filenames to full qualified path?

Next step would be to allow relativ paths as well.

Any hint how to do that?

Thanks alot.
AnswerRe: How to convert filename to fully qualified name when running an app with a filename argument in the current working directory Pin
«_Superman_»13-Apr-11 21:30
professional«_Superman_»13-Apr-11 21:30 
GeneralRe: How to convert filename to fully qualified name when running an app with a filename argument in the current working directory Pin
Erik14-Apr-11 0:00
Erik14-Apr-11 0:00 
GeneralCMFCEditBrowseCtrl leaks... Pin
danLenehan13-Apr-11 8:51
danLenehan13-Apr-11 8:51 
GeneralRe: CMFCEditBrowseCtrl leaks... Pin
Maximilien13-Apr-11 9:42
Maximilien13-Apr-11 9:42 
GeneralRe: CMFCEditBrowseCtrl leaks... Pin
danLenehan13-Apr-11 13:48
danLenehan13-Apr-11 13:48 
GeneralRe: CMFCEditBrowseCtrl leaks... Pin
Maximilien13-Apr-11 14:15
Maximilien13-Apr-11 14:15 
QuestionTried Searching but Can't find the Answer Pin
JohnnyG13-Apr-11 8:20
JohnnyG13-Apr-11 8:20 
AnswerRe: Tried Searching but Can't find the Answer Pin
Albert Holguin13-Apr-11 8:27
professionalAlbert Holguin13-Apr-11 8:27 
GeneralRe: Tried Searching but Can't find the Answer Pin
JohnnyG13-Apr-11 8:39
JohnnyG13-Apr-11 8:39 
GeneralRe: Tried Searching but Can't find the Answer Pin
Albert Holguin13-Apr-11 9:56
professionalAlbert Holguin13-Apr-11 9:56 
GeneralRe: Tried Searching but Can't find the Answer [modified] Pin
JohnnyG13-Apr-11 10:08
JohnnyG13-Apr-11 10:08 
AnswerRe: Tried Searching but Can't find the Answer Pin
MicroVirus14-Apr-11 2:10
MicroVirus14-Apr-11 2:10 
GeneralRe: Tried Searching but Can't find the Answer Pin
JohnnyG14-Apr-11 3:22
JohnnyG14-Apr-11 3:22 
QuestionGlui in visual studio 2008 ( c++ ) Pin
Member 783376313-Apr-11 5:42
Member 783376313-Apr-11 5:42 
AnswerRe: Glui in visual studio 2008 ( c++ ) Pin
nitchman238313-Apr-11 7:39
nitchman238313-Apr-11 7:39 
QuestionCrash after installing KB2465361 Pin
jung-kreidler13-Apr-11 1:46
jung-kreidler13-Apr-11 1:46 
AnswerRe: Crash after installing KB2465361 Pin
Hans Dietrich13-Apr-11 1:58
mentorHans Dietrich13-Apr-11 1:58 

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.