Help за OLE Automation
2 отговора
0 прегледа
Help за OLE Automation
Delphi 5, SP1, Excell 2000, Windows2000
Искам да прехвърля данни от таблица в Excell и да го отворя. Разгледах примерите назад във форума и ги пробвах.
При всички ми дава следната EOLESysError:
CoInitialize has not been called.
Къде е прoблемът ?
10x
Искам да прехвърля данни от таблица в Excell и да го отворя. Разгледах примерите назад във форума и ги пробвах.
При всички ми дава следната EOLESysError:
CoInitialize has not been called.
Къде е прoблемът ?
10x
Проблемът е
HRESULT CoInitialize(
LPVOID pvReserved
);
Initializes the COM library on the current thread and identifies the concurrency model as single-thread apartment (STA). Applications must initialize the COM library before they can call COM library functions other than CoGetMalloc and memory allocation functions.
New applications should call CoInitializeEx instead of CoInitialize.
--------------------------------------------------------------------------------------------------------
Нямам време да преглеждам примерите назад, но TADOConnection няма ли да ти свърши работа?
LPVOID pvReserved
);
Initializes the COM library on the current thread and identifies the concurrency model as single-thread apartment (STA). Applications must initialize the COM library before they can call COM library functions other than CoGetMalloc and memory allocation functions.
New applications should call CoInitializeEx instead of CoInitialize.
--------------------------------------------------------------------------------------------------------
Нямам време да преглеждам примерите назад, но TADOConnection няма ли да ти свърши работа?