Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multitreaded EXE
Message
 
To
29/08/2000 06:17:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00368147
Message ID:
00410155
Views:
24
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform