marshall EventWaitHandle reference between .Net COM library and VB6executable

  • Thread starter Thread starter swartzbill2000
  • Start date Start date
S

swartzbill2000

Hello,

I am using a VB.Net COM library to provide multi-threading to an
existing VB6 app. Library functions that start background operations
create an EventWaitHandle to be used to cancel the operation. How can
I return some kind of reference to the EventWaitHandle to the VB6 app
that can be used later in another library function call to cancel the
operation?

Bill
 
I am using a VB.Net COM library to provide multi-threading to an
existing VB6 app. Library functions that start background operations
create an EventWaitHandle to be used to cancel the operation. How can
I return some kind of reference to the EventWaitHandle to the VB6 app
that can be used later in another library function call to cancel the
operation?

Take a look at the overloaded constructor of 'EventWaitHandle'. Some
overloads accept a 'name' parameter which you can use to set the name of a
system-level event wait handle object. You can later use this name to get
access to the object by creating a new instance of the class and passing the
name to the constructor.
 
Take a look at the overloaded constructor of 'EventWaitHandle'. Some
overloads accept a 'name' parameter which you can use to set the name of a
system-level event wait handle object. You can later use this name to get
access to the object by creating a new instance of the class and passing the
name to the constructor.

Herfried,
Thanks
 
Back
Top