?
Solved

Get an EOleSysError, CoInitialize has not been called.

Posted on 2003-02-26
1
Medium Priority
?
1,316 Views
Last Modified: 2012-06-21
Hello,
i'm trying to change a Delphi project into a dll.
The function of the Dll is supposed to wait for a magnetic strip and to give the Track1Data as Result.

When i call the function i get "EOleSysError, CoInitialize has not been called."

Does someone can help me ?

thanks
Jerome
0
Comment
Question by:jhordies
[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
1 Comment
 
LVL 21

Accepted Solution

by:
ziolko earned 150 total points
ID: 8024693
before any call to COM Library call this function:
CoInitializeEx(nil,COINIT_MULTITHREADED);
remember to call CoUnInitialize; after releasing all COMs
ziolko.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Six Sigma Control Plans

765 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