|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (7 bit)
|
threads in VC++6
OK,
I have programmed on linux before. Now i had to transmit one of my programs to windows. And obviously i hit several problems: 1) It writes me it wont recognize the include unistd.h 2) It writes me it wont recognize the include pthread.h - i need it for threads 3) It wont recognize the "Long Long" data type - I used it cuz it has 64 bits. Some one told me to use __int64 instead of Long Long, but i dunno if it will hepl and what it means at all. I have never programmed on windows (XP in my case) Any help would be appritiated... |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Nov 2001
Posts: 1,965
|
For threads, you need to use the Win32 API, which is completely different from programming threads under Linux.
What do you use unistd.h for? It's not a standard header, so you won't find it under Windows. Also, check out Cygwin, with it, there is a chance that you'll be able to compile your app under Windows. Last edited by aym; 11-05-2004 at 02:53 PM. |
|
|
|
|
|
#3 |
|
Member (7 bit)
|
Can you please explain for me a bit about win32 api you talk about? Because i know completely nothing about it...
|
|
|
|
|
|
#4 |
|
Registered User
Join Date: Nov 2001
Posts: 1,965
|
Well the Win32 API is a set of functions that let you access the various features of Windows, with it you can create GUIs, threads, do network programming...
Win32 tutorial: http://www.winprog.org/tutorial/ Threading in Win32: http://www.informit.com/articles/article.asp?p=342886 Pthreads for Windows (never tried it myself): http://sources.redhat.com/pthreads-win32/ |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|