Threads and DLL's

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?
 
S

SDecou

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top