Click here to Skip to main content
15,885,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Summation of Floating-point values. Best accuracy. Pin
dmivlad12-Feb-06 19:00
dmivlad12-Feb-06 19:00 
QuestionRead Data from file to CString Pin
anilksingh9-Feb-06 19:58
anilksingh9-Feb-06 19:58 
AnswerRe: Read Data from file to CString Pin
ThatsAlok10-Feb-06 0:02
ThatsAlok10-Feb-06 0:02 
QuestionMac Os Installation Problem Pin
Girish6019-Feb-06 19:39
Girish6019-Feb-06 19:39 
AnswerRe: Mac Os Installation Problem Pin
ThatsAlok10-Feb-06 0:41
ThatsAlok10-Feb-06 0:41 
QuestionOpening other application from our own application Pin
Katamneni9-Feb-06 18:42
Katamneni9-Feb-06 18:42 
AnswerRe: Opening other application from our own application Pin
Cool Ju9-Feb-06 19:30
Cool Ju9-Feb-06 19:30 
AnswerRe: Opening other application from our own application Pin
csc9-Feb-06 20:38
csc9-Feb-06 20:38 
Try this :


CString csCommand = "C:\\WINDOWS\\system32\\mspaint.exe c:\somewhere\sample.bmp";
DoExecCommand( csCommand, TRUE );



BOOL CMyDialog::DoExecCommand( CString csCommand, BOOL bWait )
{
STARTUPINFO si;
::ZeroMemory(&si, sizeof si);

PROCESS_INFORMATION pi;
::ZeroMemory(&pi, sizeof pi);

char* pszCmd = csCommand.GetBuffer(0);
BOOL bResult = CreateProcess( NULL, // pointer to name of executable module
pszCmd, // pointer to command line string
NULL, // process security attributes
NULL, // thread security attributes
FALSE, // handle inheritance flag
NORMAL_PRIORITY_CLASS, // creation flags
NULL, // pointer to new environment block
NULL, // pointer to current directory name
&si, // pointer to STARTUPINFO
&pi // pointer to PROCESS_INFORMATION
);
if(bResult)
{
if(bWait)
{
DWORD dwResult = WaitForSingleObject( pi.hProcess, INFINITE );
}
CloseHandle( pi.hProcess );
}
return( bResult );
}

QuestionDifference between Typedef and #define? Pin
Link26009-Feb-06 18:23
Link26009-Feb-06 18:23 
AnswerRe: Difference between Typedef and #define? Pin
QuickDeveloper9-Feb-06 18:51
QuickDeveloper9-Feb-06 18:51 
AnswerRe: Difference between Typedef and #define? Pin
Rage9-Feb-06 21:20
professionalRage9-Feb-06 21:20 
GeneralRe: Difference between Typedef and #define? Pin
BadKarma9-Feb-06 22:07
BadKarma9-Feb-06 22:07 
GeneralRe: Difference between Typedef and #define? Pin
Rage10-Feb-06 1:25
professionalRage10-Feb-06 1:25 
GeneralRe: Difference between Typedef and #define? Pin
BadKarma10-Feb-06 2:15
BadKarma10-Feb-06 2:15 
GeneralRe: Difference between Typedef and #define? Pin
Rage10-Feb-06 2:55
professionalRage10-Feb-06 2:55 
GeneralRe: Difference between Typedef and #define? Pin
Ryan Binns10-Feb-06 11:58
Ryan Binns10-Feb-06 11:58 
GeneralRe: Difference between Typedef and #define? Pin
normanS12-Feb-06 20:14
normanS12-Feb-06 20:14 
AnswerRe: Difference between Typedef and #define? Pin
Ryan Binns9-Feb-06 21:41
Ryan Binns9-Feb-06 21:41 
GeneralRe: Difference between Typedef and #define? Pin
jhwurmbach10-Feb-06 3:09
jhwurmbach10-Feb-06 3:09 
GeneralRe: Difference between Typedef and #define? Pin
Blake Miller10-Feb-06 4:13
Blake Miller10-Feb-06 4:13 
GeneralRe: Difference between Typedef and #define? Pin
jhwurmbach10-Feb-06 4:23
jhwurmbach10-Feb-06 4:23 
GeneralRe: Difference between Typedef and #define? Pin
Blake Miller10-Feb-06 4:28
Blake Miller10-Feb-06 4:28 
GeneralRe: Difference between Typedef and #define? Pin
jhwurmbach10-Feb-06 4:34
jhwurmbach10-Feb-06 4:34 
GeneralRe: Difference between Typedef and #define? Pin
Blake Miller10-Feb-06 4:41
Blake Miller10-Feb-06 4:41 
GeneralRe: Difference between Typedef and #define? Pin
BadKarma10-Feb-06 4:38
BadKarma10-Feb-06 4:38 

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.