Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i know what is DWORD..

why we want use that to thread function................
Posted

If you know what a DWORD is, then why would you be surprised if it is used in any particular function?

It is a suitable size of parameter to transfer information, that's all.
 
Share this answer
 
Why do you think we use it in thread function?
 
Share this answer
 
Comments
@BangIndia 24-Jun-11 6:22am    
then tell how to declare the thread function in c..
up i know the thread function wants have DWORD return type...
CPallini 24-Jun-11 6:42am    
Yes, CreateThread has DWORD as return type. That makes it similar to most Win32 API. I don't think we should struggle about its deep philosophical meaning, though.
@BangIndia 24-Jun-11 6:45am    
oh.. do you have any basic coding how to create a process in c under c
CPallini 24-Jun-11 6:52am    
Isn't Google available to your browser? There's a plethora of code samples using CreateProcess in the web.
@BangIndia 24-Jun-11 6:54am    
i can't able to find a simple code..
most of the code not working in MSDEV.

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