Click here to Skip to main content
15,909,741 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
I don't know how to create a process using C.
Can you help me?
Posted
Updated 21-Jun-11 21:09pm
v2
Comments
Sergey Alexandrovich Kryukov 22-Jun-11 4:22am    
Platform, please.
--SA

If you are using Windows then try CreateProcess.
 
Share this answer
 
Comments
Guyverthree 22-Jun-11 5:45am    
http://msdn.microsoft.com/en-us/library/ms682425%28v=vs.85%29.aspx

this will also help

5 from me.
@BangIndia 24-Jun-11 6:44am    
for creating process.. can u send the code.
Fork could be an option.

I think you will find this helpful
http://www.gnu.org/s/hello/manual/libc/Creating-a-Process.html[^]
 
Share this answer
 
Comments
@BangIndia 22-Jun-11 3:16am    
i want to create in child process under windows platform.......
Prerak Patel 22-Jun-11 3:18am    
This seems to be solved by now. Use CreateProcess
You may use the system[^] function.
If system doesn't fit your needs (i.e. you need more control on the created process) then you should study the API provided by your OS and then call the appropriate function (e.g. CreateProcess or ShellExecute on Windows).
 
Share this answer
 
Comments
@BangIndia 22-Jun-11 4:55am    
can u send any materials for that
CPallini 22-Jun-11 4:57am    
What 'materials'?
@BangIndia 22-Jun-11 4:59am    
about the child process creation ...
CPallini 22-Jun-11 5:09am    
The posted link features an example of the system call.
If you need instead CreateProcess, then check out the related documentation or Google for code samples,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900