MultiThread Suport

MultiThread Suport

Postby Rodrigo Pavan » Mon Aug 04, 2008 6:40 pm

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

StartThread
ThreadSleep
KillAllThreads
Mutex functions ....

Thks.
User avatar
Rodrigo Pavan
 
Posts: 22
Joined: Tue Dec 26, 2006 12:53 pm

Postby Antonio Linares » Tue Aug 05, 2008 4: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
User avatar
Antonio Linares
Site Admin
 
Posts: 41324
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Tue Aug 05, 2008 4: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
User avatar
Antonio Linares
Site Admin
 
Posts: 41324
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Rodrigo Pavan » Tue Aug 05, 2008 11:42 am

Thks Antonio!!
User avatar
Rodrigo Pavan
 
Posts: 22
Joined: Tue Dec 26, 2006 12:53 pm


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 1 guest