Click here to Skip to main content
16,005,734 members
Home / Discussions / C#
   

C#

 
AnswerRe: CreateThread Pin
leppie7-Jan-06 10:02
leppie7-Jan-06 10:02 
GeneralRe: CreateThread Pin
Bassam Saoud7-Jan-06 10:18
Bassam Saoud7-Jan-06 10:18 
GeneralRe: CreateThread Pin
Dave Kreskowiak7-Jan-06 13:53
mveDave Kreskowiak7-Jan-06 13:53 
GeneralRe: CreateThread Pin
leppie8-Jan-06 0:11
leppie8-Jan-06 0:11 
GeneralRe: CreateThread Pin
Dave Kreskowiak8-Jan-06 2:49
mveDave Kreskowiak8-Jan-06 2:49 
GeneralRe: CreateThread Pin
Bassam Saoud8-Jan-06 8:05
Bassam Saoud8-Jan-06 8:05 
GeneralRe: CreateThread Pin
Bassam Saoud8-Jan-06 8:08
Bassam Saoud8-Jan-06 8:08 
GeneralRe: CreateThread Pin
Dave Kreskowiak8-Jan-06 13:17
mveDave Kreskowiak8-Jan-06 13:17 
Well, it took me looking into your message histroy to see what's you're really trying to do here. Launching multiple instances of VB6-created .DLL, COM based. Hmmmm....interesting since VB6 runtime doesn't support threading, directly anyway.

Creating a seperate .EXE will work, since each launch of the .EXE will, of course, spawn on it's own thread. This will also make any communication with the instance of the .DLL a huge PITA, since now your crossing a Process boundry. I hope this .DLL doesn't do anything useful to the form.

In my opinion, option number 2 is your best bet. Keep manangement of the unmanaged threads in a COM-based component that exposes any interface your .NET app can use to control the launching and shutdown of the VB6 component instances. This COM component can also handle communication to and from the VB6 stuff for your Managed code to.

Why do I say this? Because in your original post, that you didn't tell us anything about, it sounds like this VB6 component could be replaced sometime in the future. By creating a wrapper for the VB6 threads, you can easily replace this interface component with a different interface when the VB6 component is finally replaced by managed code.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: CreateThread Pin
Bassam Saoud8-Jan-06 21:23
Bassam Saoud8-Jan-06 21:23 
GeneralRe: CreateThread Pin
Dave Kreskowiak9-Jan-06 2:15
mveDave Kreskowiak9-Jan-06 2:15 
GeneralRe: CreateThread Pin
Bassam Saoud9-Jan-06 3:06
Bassam Saoud9-Jan-06 3:06 
GeneralRe: CreateThread Pin
Bassam Saoud9-Jan-06 3:06
Bassam Saoud9-Jan-06 3:06 
QuestionRaising Global Keystrokes Pin
Lieut_Data7-Jan-06 8:06
Lieut_Data7-Jan-06 8:06 
AnswerRe: Raising Global Keystrokes Pin
S. Senthil Kumar8-Jan-06 2:19
S. Senthil Kumar8-Jan-06 2:19 
QuestionOpen .HLP file using Pin
CodyGen7-Jan-06 7:33
CodyGen7-Jan-06 7:33 
AnswerRe: Open .HLP file using Pin
leppie7-Jan-06 10:09
leppie7-Jan-06 10:09 
QuestionHow to get true Font size? Pin
Libor Tinka7-Jan-06 7:30
Libor Tinka7-Jan-06 7:30 
AnswerRe: How to get true Font size? Pin
Guffa7-Jan-06 8:50
Guffa7-Jan-06 8:50 
AnswerRe: How to get true Font size? Pin
Curtis Schlak.8-Jan-06 17:32
Curtis Schlak.8-Jan-06 17:32 
QuestionHow to generate a guid in C#? Pin
bouli7-Jan-06 7:15
bouli7-Jan-06 7:15 
AnswerRe: How to generate a guid in C#? Pin
CodyGen7-Jan-06 7:39
CodyGen7-Jan-06 7:39 
GeneralRe: How to generate a guid in C#? Pin
bouli7-Jan-06 7:42
bouli7-Jan-06 7:42 
JokeRe: How to generate a guid in C#? Pin
User 66587-Jan-06 10:26
User 66587-Jan-06 10:26 
JokeRe: How to do your laundry in C#? Pin
Guffa7-Jan-06 11:34
Guffa7-Jan-06 11:34 
JokeRe: How to generate a guid in C#? Pin
DavidNohejl7-Jan-06 12:27
DavidNohejl7-Jan-06 12:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.