flat assembler
Message board for the users of flat assembler.

Index > Windows > Some question about CONSOLE-applications

Author
Thread Post new topic Reply to topic
Garthower



Joined: 21 Apr 2006
Posts: 158
Location: Ukraine
Garthower 11 Sep 2006, 15:54
I have one question, there can be someone with such collided. In Windows there are two types of programs of a 3-ring - GUI and CONSOLE. And if the CONSOLE-program runs from other CONSOLE-program the parental program waits while new program will finish the work. Somebody can knows how to make so that the parental program didn't wait for this?
Post 11 Sep 2006, 15:54
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
RedGhost



Joined: 18 May 2005
Posts: 443
Location: BC, Canada
RedGhost 11 Sep 2006, 18:35
I think you want CreateProcess

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createprocess.asp

If you want to create a new console use AllocConsole.

_________________
redghost.ca
Post 11 Sep 2006, 18:35
View user's profile Send private message AIM Address MSN Messenger Reply with quote
Garthower



Joined: 21 Apr 2006
Posts: 158
Location: Ukraine
Garthower 12 Sep 2006, 08:05
2RedGhost: No, you not absolutely have understood me. The matter is that it to operate it is necessary not from parent process, but from child one.
Post 12 Sep 2006, 08:05
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
HyperVista



Joined: 18 Apr 2005
Posts: 691
Location: Virginia, USA
HyperVista 12 Sep 2006, 10:28
Hello Garthower - perhaps you want to read some information about concurrency and threads.

Here is a nice place to start: http://atlas.web.cern.ch/Atlas/GROUPS/DAQTRIG/EF/documents/MTNote.pdf#search=%22multi-thread%20%22

and here, too: http://www.linuxdocs.org/HOWTOs/C++Programming-HOWTO-24.html

Good luck!
Post 12 Sep 2006, 10:28
View user's profile Send private message Visit poster's website Reply with quote
Garthower



Joined: 21 Apr 2006
Posts: 158
Location: Ukraine
Garthower 13 Sep 2006, 07:48
2HyperVista: Thanks, your information is very interesting, but unfortunately, does not answer my question since my question concerns especially of a core of the Windows family, instead of theory of construction of a multithreading and realization of it under xUNIX.
Post 13 Sep 2006, 07:48
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
eskizo



Joined: 22 Nov 2005
Posts: 59
eskizo 19 Sep 2006, 19:24
console programs look like DOS loaded programs, that mean every program loaded by another console will always wait up untill the child program is done (I think). You should remember console are MS-DOS programs...
Post 19 Sep 2006, 19:24
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20343
Location: In your JS exploiting you and your system
revolution 19 Sep 2006, 19:51
eskizo wrote:
You should remember console are MS-DOS programs...
... and win32 programs also.

Garthower: Is this what you want:
Code:
start /separate YourProg    
Post 19 Sep 2006, 19:51
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.