Solved

Create OLE control in thread.

Posted on 1998-09-12
2
291 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 how to use strings and some functions related to them in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

691 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