launching notepad.exe and reading the current date/time
-
Hi want to know how to open a txt file in NotePad.exe using a button in my C++ app and i want to know how can i read the current time/date and put them in a CString Thans
-
Hi want to know how to open a txt file in NotePad.exe using a button in my C++ app and i want to know how can i read the current time/date and put them in a CString Thans
Take a look at ShellExecute() for launching programs.
ShellExecute(NULL, "open", "mytest.txt", NULL, NULL, SW_SHOWDEFAULT);
Look at CTime class for data and time functions. An example of how you could use it:
CTime curtime = CTime::GetCurrentTime(); CString s = curtime.Format("%m/%d/%y %H:%M:%S p");
Mark -- modified at 17:40 Tuesday 13th June, 2006
-
Hi want to know how to open a txt file in NotePad.exe using a button in my C++ app and i want to know how can i read the current time/date and put them in a CString Thans
-
Hi want to know how to open a txt file in NotePad.exe using a button in my C++ app and i want to know how can i read the current time/date and put them in a CString Thans
Mahhouraaaaaa wrote:
Hi want to know how to open a txt file in NotePad.exe using a button in my C++ app and i want to know how can i read the current time/date and put them in a CString
See
CreateProcess(...)
API Knock out 't' from can't, You can if you think you can :cool: