Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 11-05-2004, 12:06 PM   #1
Member (7 bit)
 
Join Date: Jun 2003
Location: Israel
Posts: 92
Send a message via ICQ to M.D.
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...
M.D. is offline   Reply With Quote
Old 11-05-2004, 02:49 PM   #2
aym
Registered User
 
aym's Avatar
 
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.
aym is offline   Reply With Quote
Old 11-05-2004, 03:27 PM   #3
Member (7 bit)
 
Join Date: Jun 2003
Location: Israel
Posts: 92
Send a message via ICQ to M.D.
Can you please explain for me a bit about win32 api you talk about? Because i know completely nothing about it...
M.D. is offline   Reply With Quote
Old 11-06-2004, 02:56 PM   #4
aym
Registered User
 
aym's Avatar
 
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/
aym is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:10 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2