Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

I am designing a GUI for a lab experiment. The GUI displays some reading coming from a hardware device using VC++ 6 and I need to open an empty text file as a notebook for the experimenter.

How can i open an empty text file or an app like (Word) as a notebook.

What I have tried:

I added a button called IDM_NOTE and a funciton called ONnotebook

void CVCDlg::ONnotebook() //open NoteBook 
{

    //Open NoteBook
	
}
Posted
Updated 13-Jul-18 21:19pm

1 solution

You can open an existing file with the append option to add more information. If the file does not exist then just use the create for writing option. The documentation for CFile, and also open, fopen and CreateFile gives full details.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900