![]() |
CoCreateInstance in DLL
i have created one dll to connect to the com object of one application and call a method of the com. Its working fine. but with one issue. Every time dll is access it keeps creating new instance, so i to avoid this i created global variables, but seems its now working.
connectApi - this function to be called only once to create com instance sendOrder - this function will be called repeatably as need be which shud use the com object pointer created by the connectApi function. here is the code: Code:
IPlusapi *pNestApp; |
Re: CoCreateInstance in DLL
Can anyone please help ??
|
Re: CoCreateInstance in DLL
Call ConnectApi from DllMain
|
| All times are GMT +5.5. The time now is 12:46. |