Advertisement

putting c in a .cpp

Started by January 23, 2002 04:40 PM
2 comments, last by Lugie 22 years, 9 months ago
is it possible to put C code into a .cpp? if so could somebody fill me in on how or what to search for on MSDN?
War is how Americans learn geography.
Yes, but you can''t do it the other way around. C++ is an extension of C.
Advertisement
Yup.
  extern "C" {// C declarations and C code}  

You''re going to want to do this for the function declarations (in the .h) and the functions themselves (in the .cpp)

thanks
War is how Americans learn geography.

This topic is closed to new replies.

Advertisement