Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is CoInitialize an undeclared identifier?

I use UniDac component to connect to PostgreSQL. My Query is running in a separate thread. Now when I use CoInitialize in the thread, I receive this compiler error:

- [DCC Error] QryThread.pas(41): E2003 Undeclared identifier: 'CoInitialize'

Why?

like image 742
Kermia Avatar asked Apr 28 '11 09:04

Kermia


1 Answers

Because ActiveX is missing in the uses list.

like image 96
Matthias Alleweldt Avatar answered Nov 10 '22 00:11

Matthias Alleweldt