You mention "realbasic" 3 times, and never mention C.
Are you in the right forum?
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
try this example DLL: I compiled it but didn't test it
#include <windows.h>
#include <stdio.h>
static DWORD WINAPI myThreadProc(void* parmeter)
{
while(true)
{
printf("Hello world!!!\n");
Sleep(1000);
}
return 0;
}
__declspec( dllexport ) int WINAPI HelloWorld()
{
CreateThread(0, 0, myThreadProc, 0, 0, 0);
return 0;
}
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
I'm confused -- do you want the threads in RealBasic (whatever that is) or in the DLL? The code I posted will create the threads in the DLL and will work regardless of the language that calls it.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343