Click here to Skip to main content
15,913,773 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Subclassing CEdit, OnChar Pin
Lilith.C14-Jan-06 3:54
Lilith.C14-Jan-06 3:54 
QuestionPrevent endtask the application Pin
leenmie13-Jan-06 16:09
leenmie13-Jan-06 16:09 
AnswerRe: Prevent endtask the application Pin
Stephen Hewitt13-Jan-06 21:45
Stephen Hewitt13-Jan-06 21:45 
GeneralRe: Prevent endtask the application Pin
John Simon14-Jan-06 13:47
John Simon14-Jan-06 13:47 
QuestionStarting another process Pin
Polymorpher13-Jan-06 14:40
Polymorpher13-Jan-06 14:40 
AnswerRe: Starting another process Pin
Stephen Hewitt13-Jan-06 15:10
Stephen Hewitt13-Jan-06 15:10 
QuestionHow to call Mircosoft Word from with a program with the ".doc" name being loaded already Pin
Larry Mills Sr13-Jan-06 14:32
Larry Mills Sr13-Jan-06 14:32 
AnswerRe: How to call Mircosoft Word from with a program with the ".doc" name being loaded already Pin
KellyR13-Jan-06 14:45
KellyR13-Jan-06 14:45 
You can call a ShellExecute on the filename of the doc you want to open.

SHELLEXECUTEINFO sei;
ZeroMemory(&sei, sizeof(SHELLEXECUTEINFO));
sei.cbSize = sizeof (SHELLEXECUTEINFO);
sei.lpVerb = "open";
sei.lpFile = curPath;
sei.nShow = SW_SHOW;
sei.hInstApp = NULL;
sei.lpDirectory = strPath;
sei.fMask = SEE_MASK_DOENVSUBST|SEE_MASK_NOCLOSEPROCESS;
sei.lpParameters = NULL;
ShellExecuteEx (&sei);

Where curPath is the filename (including path) and strPath is the name of the working directory.

This will call the default program for the specified filetype to open with that file. If the user has a different program defaulted for opening up .doc files (like wordperfect or something), then this will not open word.

Kelly Ryan
AnswerRe: How to call Mircosoft Word from with a program with the ".doc" name being loaded already Pin
FarPointer14-Jan-06 0:04
FarPointer14-Jan-06 0:04 
QuestionHow to send a shortcut from a program to the desktop Pin
Larry Mills Sr13-Jan-06 14:26
Larry Mills Sr13-Jan-06 14:26 
AnswerRe: How to send a shortcut from a program to the desktop Pin
KellyR13-Jan-06 14:51
KellyR13-Jan-06 14:51 
QuestionAccessing MFC classes in VB Pin
mohanrajh13-Jan-06 14:14
mohanrajh13-Jan-06 14:14 
AnswerRe: Accessing MFC classes in VB Pin
includeh1013-Jan-06 18:02
includeh1013-Jan-06 18:02 
GeneralRe: Accessing MFC classes in VB Pin
mohanrajh14-Jan-06 0:13
mohanrajh14-Jan-06 0:13 
QuestionVS2005 Dialog Editor -> Add Variable - Control Id field is blank Pin
Yak7713-Jan-06 12:47
Yak7713-Jan-06 12:47 
QuestionQuestion when writing an Assert function Pin
Nacho Chip13-Jan-06 12:30
Nacho Chip13-Jan-06 12:30 
AnswerRe: Question when writing an Assert function Pin
Stephen Hewitt13-Jan-06 18:58
Stephen Hewitt13-Jan-06 18:58 
AnswerRe: Question when writing an Assert function Pin
Gary R. Wheeler15-Jan-06 5:24
Gary R. Wheeler15-Jan-06 5:24 
GeneralRe: Question when writing an Assert function Pin
Harold Bamford16-Jan-06 11:52
Harold Bamford16-Jan-06 11:52 
GeneralRe: Question when writing an Assert function Pin
Gary R. Wheeler17-Jan-06 16:13
Gary R. Wheeler17-Jan-06 16:13 
GeneralRe: Question when writing an Assert function Pin
Harold Bamford19-Jan-06 4:40
Harold Bamford19-Jan-06 4:40 
QuestionLAN API Pin
Allad13-Jan-06 11:52
Allad13-Jan-06 11:52 
AnswerRe: LAN API Pin
zubair_ahmed13-Jan-06 19:46
zubair_ahmed13-Jan-06 19:46 
GeneralRe: LAN API Pin
ThatsAlok15-Jan-06 19:12
ThatsAlok15-Jan-06 19:12 
AnswerRe: LAN API Pin
ThatsAlok15-Jan-06 19:10
ThatsAlok15-Jan-06 19:10 

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.