I'm using CVI Version 6.0 with the Windows SDK installed. When I try to initialize the COM library using CoInitialize(NULL) I receive the following link error:
Undefined symbol ' CoInitialize@4" referenced in "myproject.c"
You would probably need to add ole32.lib from the ..\CVI\sdk\lib folder to the project. You should really call CA_InitActiveXThreadStyleForCurrentThread() instead of CoInitialize(). CVI provides routines for using ActiveX, and this function initializes COM (by calling CoInitialize) and takes care of any other initialization CVI might need (ActiveX callbacks in multiple threads etc..)
Include ole32.lib in your project. If you have the Windows SDK installed and CVI is installed to the default directory this file should be in C:\Program Files\National Instruments\CVI70\sdk\lib Hope that helps, Ryan K. NI