By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,991 Members | 1,887 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,991 IT Pros & Developers. It's quick & easy.

How to use COM in Borland Turbo C++ Explorer?

P: n/a
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

I would appreciate if anybody points out the way to fix the problem.

Thank you,

Aug 8 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.