Solved

Create OLE control in thread.

Posted on 1998-09-12
2
287 Views
Last Modified: 2010-04-15
I am create application with OLE control and function
CreateControl work in the different threads. According help one calling
 of the function OleInitialize is enough for
all application. But in this case CreateControl is not
success. Only if I call OleInitialize in the each thread
functionCreateControl is successful ended.
Where is a mistake. Why I need to call OleInitialize for
every thread where I call CreateControl.
My platform is Windows 95(or NT)
0
Comment
Question by:atkach
2 Comments
 

Author Comment

by:atkach
ID: 1252691
Edited text of question
0
 
LVL 2

Accepted Solution

by:
rayb earned 100 total points
ID: 1252692
Hmm...
I think you got a hold of some bad documentation, atkach.  You WILL need to initialize OLE or COM for each thread of execution within your process.  Just as importantly, don't for get to uninitialize either of these libraries for each thread.
-Ray
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question