As I said, you're using dotNet.
Redo your projects with Win32.
And header files... well, you should know how to code C, shouldn't you? Otherwise you may have to get a book. C isn't exactly trivial.