S
shatol
Hi All,
I have a C# assembly registered with regasm.exe in the system. I need
to use this assembly via COM interop in a console application written
on Turbo C++ for Win32.
I added the TLB file and got the TLH and TLI files generated by the
Turbo C++.
So far so good, but when I tried to initialize the COM object as I
used to do in VC6 I got an error that I cannot overcome.
So there is line of code that works fine in VC6 but doesn't in Turbo C+
+:
_CutEnginePtr Calculator(__uuidof(CutEngine));
I receive the following error message:
[C++ Error] gncTestTurboCPP.cpp(20): E2108 Improper use of typedef
'_CutEnginePtr'
I would appreciate if anybody points out the way to fix the problem.
Thank you,
Oleg.
I have a C# assembly registered with regasm.exe in the system. I need
to use this assembly via COM interop in a console application written
on Turbo C++ for Win32.
I added the TLB file and got the TLH and TLI files generated by the
Turbo C++.
So far so good, but when I tried to initialize the COM object as I
used to do in VC6 I got an error that I cannot overcome.
So there is line of code that works fine in VC6 but doesn't in Turbo C+
+:
_CutEnginePtr Calculator(__uuidof(CutEngine));
I receive the following error message:
[C++ Error] gncTestTurboCPP.cpp(20): E2108 Improper use of typedef
'_CutEnginePtr'
I would appreciate if anybody points out the way to fix the problem.
Thank you,
Oleg.