putting c in a .cpp

Started by
2 comments, last by Lugie 22 years, 3 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.
Advertisement
Yes, but you can''t do it the other way around. C++ is an extension of C.
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