Solved

Create OLE control in thread.

Posted on 1998-09-12
2
288 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
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 and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.

829 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