Error MIDL2026 indicates syntax errors in the IDL file being compiled by the MIDL compiler. It is possible that your IDL file has been clobbered or that the CVI ActiveX Server Tool is generating incorrect IDL. If you post your IDL file, I am may be able to look at it and see where the syntax errors are. One way to get more information about MIDL errors is to run the MIDL compiler on your IDL file from a console command line (DOS/Shell Window); but this may not be trivial as you would have to set up the include paths, preprocessor path, and other compiler options correctly from the command line. An example command to invoke the MIDL compiler (assuming that cvi is installed in d:\cvi, and that the idl file is ...\foo.idl) is:
"d:\cvi\sdk\bin\midl.exe" "...\foo.idl" /tlb
"...\foo.tlb" /I"d:\cvi\sdk\include" /cpp_cmd "d:\cvi\bin\preprocessor.exe"
Regards,
Mohan