>HI!
>
>Concerning Multithreaded DLL's
>
>here's what I would like to do...
>Send a print command to my DLL and continue program execution.
>I implies (to me) the ability to spawn a thread and return to the prgram....
>
>Do you think it would be possible to do this????
Probably it is not a real answer to your problem but i have made a workaround for this.
I just send the command and start a timer.
Program execution will directly return to your main program
In the timer event you can run the real print command after 10 milliseconds for example.
You can setup a interface to accept the commands and even let the return values of the command fire an event. (Not shown in code below)
some simple code:
Function DoInBackground
LParameter tcCommand
Public oTimer
oTimer = CreateObject('BackgroundTimer')
oTimer.Tag = tcCommand
EndFunc
oTimer.Timer event:
Local lcCommand
This.Enabled = .F.
lcCommand = this.Tag
&lcCommand
Release oTimer
this.Release
Probably it may help you