Need help in Including/converting C files in C++ project



Hello,

I've a few C files in hand containing functions that can be used to
convert a string into MD5 hash string. When I tried to include the c sources
and header files to the project, a lot of errors and warnings comes out.

The c files can be compiled and run successfully when placed in a
standalone project. (with "Project Properties"->"Advanced"->"Compile to" set
to "C executables" of course, and compile option "-DMD=5" to specify the MD
marco)
So I think the sources are Okay.

Would anyone please give me a pointer on how to "include the files in
C++ project"/"convert these C files to C++ sources"?

A second question is: If I included the files, would it be right to just
specify the "-DMD=5" in the project properties, or I should specify it
elsewhere?

Thanks a lot.

Regards,
Lau Lei Cheong

--
If you want to mail to me, please replace all instance of "e" to "a" in my
email address. Thank you.
Sorry for any inconvience caused, but there's many spam-mailers.


.