Click here to Skip to main content
15,922,894 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with <map> memory allocation Pin
Joaquín M López Muñoz7-Oct-02 21:50
Joaquín M López Muñoz7-Oct-02 21:50 
GeneralRe: Problem with <map> memory allocation Pin
fordge7-Oct-02 21:59
fordge7-Oct-02 21:59 
GeneralRe: Problem with <map> memory allocation Pin
jhwurmbach7-Oct-02 22:34
jhwurmbach7-Oct-02 22:34 
GeneralWrong icons (enabled/disabled) in the command bar! Pin
Daniel Strigl7-Oct-02 20:27
Daniel Strigl7-Oct-02 20:27 
GeneralBatch file (*.BAT) Pin
Jerome Conus7-Oct-02 20:24
Jerome Conus7-Oct-02 20:24 
GeneralRe: Batch file (*.BAT) Pin
jmkhael7-Oct-02 22:38
jmkhael7-Oct-02 22:38 
GeneralRe: Batch file (*.BAT) Pin
Mike Nordell8-Oct-02 4:41
Mike Nordell8-Oct-02 4:41 
GeneralRe: Batch file (*.BAT) Pin
JT Anderson8-Oct-02 12:32
JT Anderson8-Oct-02 12:32 
Are you sure the commands in the .BAT file are starting console applications, and not Windows applications. If you start a Windows application from a .BAT file (or a command prompt) it will detach immediately, and the next command in the batch file will be executed.

For example, the batch file:

notepad file1
notepad file2
notepad file3

will start three copies of notepad that will stay around even after the batch file completes.

On the other hand, the batch file:

ipconfig
netstat
nbtstat -a

will run the three programs in sequence, since they are all console applications.

You can achieve your desired behavior with windows applications by putting "start /wait " in front of the program name:

start /wait notepad file1
start /wait notepad file2
start /wait notepad file3


--------
There are 10 types of people in this world. Those who know binary and those who don't.
GeneralRe: Batch file (*.BAT) Pin
Jerome Conus8-Oct-02 19:10
Jerome Conus8-Oct-02 19:10 
QuestionUpdateResource in Win95/98/ME? Pin
Henry P.7-Oct-02 18:48
Henry P.7-Oct-02 18:48 
AnswerRe: UpdateResource in Win95/98/ME? Pin
Joaquín M López Muñoz7-Oct-02 20:42
Joaquín M López Muñoz7-Oct-02 20:42 
GeneralRe: UpdateResource in Win95/98/ME? Pin
Henry P.8-Oct-02 10:01
Henry P.8-Oct-02 10:01 
GeneralCPropertyPage Help Pin
Richard Lewis7-Oct-02 18:43
Richard Lewis7-Oct-02 18:43 
GeneralRe: CPropertyPage Help Pin
Shog97-Oct-02 19:27
sitebuilderShog97-Oct-02 19:27 
GeneralRe: CPropertyPage Help Pin
Richard Lewis7-Oct-02 23:47
Richard Lewis7-Oct-02 23:47 
GeneralRe: CPropertyPage Help Pin
Shog98-Oct-02 3:32
sitebuilderShog98-Oct-02 3:32 
Questionrest of procedure? Pin
imran_rafique7-Oct-02 17:37
imran_rafique7-Oct-02 17:37 
AnswerRe: rest of procedure? Pin
Jon Hulatt7-Oct-02 22:01
Jon Hulatt7-Oct-02 22:01 
GeneralRe: rest of procedure? Pin
imran_rafique8-Oct-02 14:59
imran_rafique8-Oct-02 14:59 
GeneralRe: rest of procedure? Pin
Jon Hulatt8-Oct-02 21:29
Jon Hulatt8-Oct-02 21:29 
GeneralRe: rest of procedure? Pin
imran_rafique10-Oct-02 15:31
imran_rafique10-Oct-02 15:31 
QuestionHow to bind a CLongBinary object with an image filed of .mdb database? Pin
Wenrich7-Oct-02 17:10
Wenrich7-Oct-02 17:10 
GeneralDevStudio question Pin
johnkeeli7-Oct-02 15:41
johnkeeli7-Oct-02 15:41 
GeneralRe: DevStudio question Pin
Chris Hambleton8-Oct-02 4:39
Chris Hambleton8-Oct-02 4:39 
Questionwindow hwnd ? Pin
imran_rafique7-Oct-02 15:35
imran_rafique7-Oct-02 15:35 

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.