Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ATL Wrapper around C code

Status
Not open for further replies.

urielk

Programmer
Jun 13, 2001
15
CA
Hi,

I have a I/O driver that needs COM automation, I created an ATL wrapper around the original C code.

The linker has problems:
"ATL requires C++ compilation (use a .cpp suffix)"

This seams trivial but if I compile with CPP all the ENUMs and other basic types as unions might not work because of the strong type enforcement.

Any advise?
The question is how to Compile an ATL project that has C code.

 
you should just add your .c files to your project. Do not change any .cpp to .c

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top