Click here to Skip to main content
15,899,937 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Create a ENv variable-Help Pin
RaajaOfSelf28-Apr-03 21:01
RaajaOfSelf28-Apr-03 21:01 
GeneralRe: Create a ENv variable-Help Pin
basementman29-Apr-03 6:47
basementman29-Apr-03 6:47 
GeneralPrepend a letter to a char array using ASCII Pin
Brent Lamborn28-Apr-03 19:17
Brent Lamborn28-Apr-03 19:17 
GeneralRe: Prepend a letter to a char array using ASCII Pin
HJo29-Apr-03 0:35
HJo29-Apr-03 0:35 
GeneralRe: Prepend a letter to a char array using ASCII Pin
David Crow29-Apr-03 3:57
David Crow29-Apr-03 3:57 
Generalwinpcap giving the problem in sending packet Pin
summo28-Apr-03 19:10
summo28-Apr-03 19:10 
GeneralTo Open logfile in a notepad !!!!!!!!!!!!! Pin
summo28-Apr-03 18:48
summo28-Apr-03 18:48 
GeneralRe: To Open logfile in a notepad !!!!!!!!!!!!! Pin
Hans Dietrich28-Apr-03 19:04
mentorHans Dietrich28-Apr-03 19:04 
summo wrote:
I am using WinExec("C:\\logfile.txt",SW_SHOW) to open my file in a notepad

According to MSDN, the first parameter of WinExec is "Pointer to a null-terminated character string that contains the command line (file name plus optional parameters) for the application to be executed". In other words, first parameter must include name of program you want to execute. WinExec is not shell-oriented, i.e., it does not "associate" file types with applications. What you want is ShellExecute, which is shell-oriented:
ShellExecute(NULL, "open", "C:\\logfile.txt", NULL, NULL, SW_SHOW);


Best wishes,
Hans
GeneralRe: To Open logfile in a notepad !!!!!!!!!!!!! Pin
Toni7828-Apr-03 19:23
Toni7828-Apr-03 19:23 
GeneralRe: To Open logfile in a notepad !!!!!!!!!!!!! Pin
Anonymous28-Apr-03 20:58
Anonymous28-Apr-03 20:58 
GeneralRe: To Open logfile in a notepad !!!!!!!!!!!!! Pin
Toni7828-Apr-03 21:14
Toni7828-Apr-03 21:14 
Generaltwips to pixels Pin
Anonymous28-Apr-03 17:25
Anonymous28-Apr-03 17:25 
GeneralRe: twips to pixels Pin
Ernest Laurentin28-Apr-03 18:45
Ernest Laurentin28-Apr-03 18:45 
GeneralThank you Pin
Toni7828-Apr-03 19:37
Toni7828-Apr-03 19:37 
GeneralRe: twips to pixels Pin
Anonymous29-Apr-03 5:21
Anonymous29-Apr-03 5:21 
GeneralSearch a code MFC Pin
anaya28-Apr-03 16:59
anaya28-Apr-03 16:59 
GeneralRe: Search a code MFC Pin
David Crow29-Apr-03 3:54
David Crow29-Apr-03 3:54 
GeneralRe: Search a code MFC Pin
anaya29-Apr-03 14:38
anaya29-Apr-03 14:38 
GeneralRe: Search a code MFC Pin
David Crow30-Apr-03 2:42
David Crow30-Apr-03 2:42 
GeneralRe: Search a code MFC Pin
anaya30-Apr-03 6:06
anaya30-Apr-03 6:06 
GeneralRe: Search a code MFC Pin
David Crow30-Apr-03 6:24
David Crow30-Apr-03 6:24 
GeneralRe: Search a code MFC Pin
anaya30-Apr-03 6:28
anaya30-Apr-03 6:28 
GeneralRe: Search a code MFC Pin
David Crow30-Apr-03 8:01
David Crow30-Apr-03 8:01 
Generaldialog box as a main window. Pin
sathyashrayan28-Apr-03 16:57
sathyashrayan28-Apr-03 16:57 
GeneralRe: dialog box as a main window. Pin
Ernest Laurentin28-Apr-03 18:29
Ernest Laurentin28-Apr-03 18:29 

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.