Click to See Complete Forum and Search --> : Automation and thread


Pit Gal
May 13th, 1999, 02:23 AM
my server programm is ole automation server.
my client logon with attachdispatch.
when i call a function from a worker thread like
myserver.doanything i receive an error.
did anybody no why and how i have to prgramm this
function call.

renga
May 13th, 1999, 12:23 PM
Hi,
Are you initializing Ole within your worker thread? You may need to call OleInitialize or AfxOleInit() from your thread if you are not doing so. Can you tell us the error message you are getting?

Regards,
Renga.

Pit Gal
May 14th, 1999, 02:08 AM
thanks Renga
can you send me a piece of code in which you initialize Ole in the thread function.