Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1333
  • Last Modified:

Get an EOleSysError, CoInitialize has not been called.

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
jhordies
Asked:
jhordies
1 Solution
 
ziolkoCommented:
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now