Click here to Skip to main content
15,891,431 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: cocreateinstance and windows media player Pin
Scozturk25-Aug-04 8:58
professionalScozturk25-Aug-04 8:58 
GeneralRe: cocreateinstance and windows media player Pin
Scozturk25-Aug-04 9:30
professionalScozturk25-Aug-04 9:30 
Generaldll in Visual C++ Pin
Stephan Wright25-Aug-04 3:36
Stephan Wright25-Aug-04 3:36 
GeneralRe: dll in Visual C++ Pin
jmkhael25-Aug-04 3:49
jmkhael25-Aug-04 3:49 
GeneralCreating virtual serial port Pin
ronyhuda25-Aug-04 2:49
ronyhuda25-Aug-04 2:49 
GeneralHelp Wanted Pin
bunty2k425-Aug-04 2:46
bunty2k425-Aug-04 2:46 
GeneralScaling ellipses using XForm in Win98 SE Pin
Franz Liste25-Aug-04 2:24
Franz Liste25-Aug-04 2:24 
GeneralCan't find file name. Pin
nigma_x25-Aug-04 2:17
nigma_x25-Aug-04 2:17 
I'm using visual C++.net 2002. I created a simple MDI through MFC project. What I'm trying to do is Open a file view it and then click on a control to send the file to a specific location already defined. The problem is where does The Opened file name get stored.

The code looks something like this.
 <br />
BEGIN_MESSAGE_MAP(CARMFirstBuildApp, CWinApp)<br />
	ON_COMMAND(ID_APP_ABOUT, OnAppAbout)<br />
	// Standard file based document commands<br />
	ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen)<br />
	<br />
	// Standard print setup command<br />
	ON_COMMAND(ID_FILE_PRINT_SETUP, CWinApp::OnFilePrintSetup)<br />
END_MESSAGE_MAP()<br />

ID_FILE_OPEN is the menu option to open a file. I understand when I click on Open in the menu it brings up a dialog box to select a file then click okay to open that file. How can I find the file name that was selected. I've tried everything I could think of. Being new to Visual C++.net is not helping much.
Any Help would be great thanks.
GeneralRe: Can't find file name. Pin
David Crow25-Aug-04 2:38
David Crow25-Aug-04 2:38 
GeneralParseDisplayName: my computer missing Pin
Neha25-Aug-04 1:48
Neha25-Aug-04 1:48 
GeneralRe: ParseDisplayName: my computer missing Pin
David Crow25-Aug-04 2:40
David Crow25-Aug-04 2:40 
GeneralRe: ParseDisplayName: my computer missing Pin
Neha25-Aug-04 4:48
Neha25-Aug-04 4:48 
GeneralRe: ParseDisplayName: my computer missing Pin
David Crow26-Aug-04 3:25
David Crow26-Aug-04 3:25 
GeneralDomain or Workgroup member. Pin
Kevin Gutteridge25-Aug-04 1:25
Kevin Gutteridge25-Aug-04 1:25 
GeneralRe: Domain or Workgroup member. Pin
Kevin Gutteridge25-Aug-04 1:30
Kevin Gutteridge25-Aug-04 1:30 
GeneralCore dump on WIN98 Pin
mfc_surfer25-Aug-04 0:52
mfc_surfer25-Aug-04 0:52 
Questionhow to split a String Pin
dana_krycek2125-Aug-04 0:38
dana_krycek2125-Aug-04 0:38 
AnswerRe: how to split a String Pin
David Crow25-Aug-04 2:49
David Crow25-Aug-04 2:49 
GeneralSW_HIDE problm Pin
zahid_ash25-Aug-04 0:11
zahid_ash25-Aug-04 0:11 
GeneralRe: SW_HIDE problm Pin
David Crow25-Aug-04 3:08
David Crow25-Aug-04 3:08 
GeneralAttching e menu to child window in MDI Pin
ledallam24-Aug-04 23:22
ledallam24-Aug-04 23:22 
GeneralModbus in MFC Pin
chauteen24-Aug-04 23:07
chauteen24-Aug-04 23:07 
GeneralBitmap Pin
Johnny Peszek24-Aug-04 22:55
Johnny Peszek24-Aug-04 22:55 
Generalsites which provide some examples on MSHtml interfaces Pin
Member 52815524-Aug-04 21:50
Member 52815524-Aug-04 21:50 
GeneralOpening an Outlook PST File and Reading its Contents Pin
sirisha_kumari24-Aug-04 20:19
sirisha_kumari24-Aug-04 20:19 

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.