|
-
May 25th, 2004, 09:58 AM
#1
Thread Starter
Hyperactive Member
Dragging form / slider etc. stops execution
My code needs to transmit regular packets onto a serial bus, however when the user holds the mouse down on a slider etc. then the transmit function stops until they let go
Is there a clever way to continue processing whilst this is happening?
I am thinking multithreading might be a way around this problem but is there a simpler way?
Cheers
-
May 26th, 2004, 04:28 AM
#2
Thread Starter
Hyperactive Member
-
May 26th, 2004, 04:38 AM
#3
Addicted Member
Kinda a cheap wannabe multithreading idea, as I don't actually know much about it, but, could you put the function that sends the data to the serial port in a seperate dll? That should not be affected by whatever the main app is doing, assuming you don't wait for a callback or anything...
-
May 26th, 2004, 05:16 AM
#4
Thread Starter
Hyperactive Member
I'd wondered about that, or maybe and ocx. I have a few questions about this though,
In my main code I initilise the serial card via a dll (supplied with the card) I then use the dll functions to transmit / recieve, clear the buffer etc.
I will need to access this serial dll in my new dll/ocx. This needs to be independant of my main code (so I can not call functions in the main code) how do I "share" this dll?
Cheers
-
May 26th, 2004, 05:43 AM
#5
Addicted Member
Just call the serial dll from your new dll/ocx. If you put all the functions needed in your new dll/ocx, then you wouldn't need to share it, not that I am sure that the problem with that would be anyway.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|