Click here to Skip to main content
13,865,687 members
Rate this:
Please Sign up or sign in to vote.
See more:

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
Updated 13-Jul-18 22:19pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web03 | 2.8.190214.1 | Last Updated 14 Jul 2018
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100