Follow the Microsoft guidelines on how to invoke COM and automation objects.
If you are using the IBM Informix ESQL/C client API, it is recommended that you write the application in C++ and place only the SQL-specific code in the .ec files through embedded C code.
If you are using Visual Basic, you must cast the Informix lvarchar data type to char before you can work with ActiveX value objects.