FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC MultiThread Suport
Posts: 22
Joined: Tue Dec 26, 2006 12:53 PM
MultiThread Suport
Posted: Mon Aug 04, 2008 06:40 PM

Hi, how i do to compile FWPPC .prg with MultThread functions

StartThread
ThreadSleep
KillAllThreads
Mutex functions ....

Thks.

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
MultiThread Suport
Posted: Tue Aug 05, 2008 04:14 AM

Rodrigo,

You can use Windows API multithreading functions from C level, not from PRG level.

Please review many examples provided in these forums that use #pragma BEGINDUMP ... #pragma ENDDUMP to see how to implement calls to the Windows API functions using the C language.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
MultiThread Suport
Posted: Tue Aug 05, 2008 04:18 AM

Rodrigo,

Here you have the documentation for threads:

Using the Windows API: ( CreateThread() )

http://msdn2.microsoft.com/en-us/library/ms682453(VS.85).aspx

Without using the Windows API:

http://en.wikipedia.org/wiki/Beginthread

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 22
Joined: Tue Dec 26, 2006 12:53 PM
MultiThread Suport
Posted: Tue Aug 05, 2008 11:42 AM

Thks Antonio!!

Continue the discussion