Solved

Create OLE control in thread.

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now