Click here to Skip to main content
15,920,603 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Two strange operations with this pointer. Pin
Michael Dunn15-Apr-03 19:36
sitebuilderMichael Dunn15-Apr-03 19:36 
GeneralRe: Two strange operations with this pointer. Pin
George215-Apr-03 19:55
George215-Apr-03 19:55 
GeneralRe: Two strange operations with this pointer. Pin
Michael Dunn15-Apr-03 20:10
sitebuilderMichael Dunn15-Apr-03 20:10 
GeneralRe: Two strange operations with this pointer. Pin
George215-Apr-03 20:11
George215-Apr-03 20:11 
QuestionWill this case cause memory leak? Pin
George215-Apr-03 16:15
George215-Apr-03 16:15 
AnswerRe: Will this case cause memory leak? Pin
Dave Bryant15-Apr-03 16:40
Dave Bryant15-Apr-03 16:40 
GeneralRe: Will this case cause memory leak? Pin
George215-Apr-03 16:53
George215-Apr-03 16:53 
GeneralLooping in C++ Pin
John DeVito15-Apr-03 15:20
John DeVito15-Apr-03 15:20 
Heyas all...Confused | :confused:

I am comming from a Linuc programming background and I'm trying to port a small program to Win32. It's going to be a console app and I have 2 questions on it. Before I go any further I am going to post my program:

#include "iostream.h"

int main(void){
int i;
cout<<"\n\t\t CoxEdgeLauncher Version .98\n";
cout<<"\t\t(c)2003 Digitally Khaotic Solutions, Inc.\n";
cout<<"\nInitializing CoxEdge";
for(i=0;i<5;i++){
cout<<"."<<flush;
sleep(1)
}
cout<<"\nCalibrating delay loop";
for(i=0;i<6;i++){
cout<<"."<<flush;
sleep(1);
}
cout<<"\nLaunching CoxEdge..."<<flush;
sleep(3);
cout<<"\n\n***App Started. This line and DOS box will disappear***\n\n";
return(1);
}

Now, I know I'm missing some headers in there and that's my first question. What header would include a sleep or sleep like function in Win32? On my Linux box I'd use unistd.h but it doesn't seem to exist on Windows. The second question is, how do I call an external program from within my code? i.e. I want notepad to startup right after "Launching CoxEdge..." is displayed.

I'd appreciate any info anyone can provide for me.

Thanks in advance.


Digital Khaos
"Diplomacy is dead. Feel my wrath!"
GeneralRe: Looping in C++ Pin
Taka Muraoka15-Apr-03 15:29
Taka Muraoka15-Apr-03 15:29 
GeneralRe: Looping in C++ Pin
John L. DeVito15-Apr-03 16:10
professionalJohn L. DeVito15-Apr-03 16:10 
GeneralRe: Looping in C++ Pin
Taka Muraoka15-Apr-03 16:12
Taka Muraoka15-Apr-03 16:12 
GeneralRe: Looping in C++ Pin
Michael Dunn15-Apr-03 19:39
sitebuilderMichael Dunn15-Apr-03 19:39 
GeneralRe: Looping in C++ Pin
Toni7816-Apr-03 21:45
Toni7816-Apr-03 21:45 
Questiondouble table[][] vs double** table? Pin
Anonymous15-Apr-03 12:46
Anonymous15-Apr-03 12:46 
AnswerRe: double table[][] vs double** table? Pin
Chris Losinger15-Apr-03 13:02
professionalChris Losinger15-Apr-03 13:02 
GeneralRe: double table[][] vs double** table? Pin
Anonymous15-Apr-03 13:16
Anonymous15-Apr-03 13:16 
AnswerRe: double table[][] vs double** table? Pin
Dave Bryant15-Apr-03 13:04
Dave Bryant15-Apr-03 13:04 
AnswerRe: double table[][] vs double** table? Pin
Michael Dunn15-Apr-03 19:48
sitebuilderMichael Dunn15-Apr-03 19:48 
GeneralMulti-threaded graphics Pin
Iceman15-Apr-03 12:21
Iceman15-Apr-03 12:21 
GeneralRe: Multi-threaded graphics Pin
Iceman15-Apr-03 12:22
Iceman15-Apr-03 12:22 
GeneralRe: Multi-threaded graphics Pin
Joe Woodbury15-Apr-03 13:58
professionalJoe Woodbury15-Apr-03 13:58 
GeneralRe: Multi-threaded graphics Pin
Iceman15-Apr-03 14:06
Iceman15-Apr-03 14:06 
GeneralRe: Multi-threaded graphics Pin
Joe Woodbury15-Apr-03 14:08
professionalJoe Woodbury15-Apr-03 14:08 
GeneralRe: Multi-threaded graphics Pin
Iceman15-Apr-03 14:11
Iceman15-Apr-03 14:11 
GeneralRe: Multi-threaded graphics Pin
Gary R. Wheeler18-Apr-03 5:30
Gary R. Wheeler18-Apr-03 5:30 

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.