Threads and DLL's

  • Thread starter Thread starter SDecou
  • Start date Start date
S

SDecou

I have written a COM object that I am calling from a separate VB.net project.
I am calling the DLL by using "Call myClass". I need to know when the DLL
has finished processing before it returns to the main project to run more
code. Do I need to use threads? Is there an example that will lead me in
the right direction?
 
The project consists of a COM object and a Word template created using
VB.net. After the Word template loads, I am calling a sub called Main that is
retrieving my Outlook Contacts folder and then will list all the contacts in
that folder. After my COM object finishes it's processing, I would like to
return to my Word template the selected Outlook contact object from the COM.
But right now, when we call the COM object, the code in the COM object runs
at the same time as the code that is running in our word template. We're
unable to control this process. We've looked at threads, but we're not sure
if that's the best approach.

We are not calling a class. We are calling a a sub called "Main" in the COM
object.
 
Back
Top