Include of file with function

I'm using Visual Studio C++ 2010 on Win XP.

I have created working script to capture screen and save it to png file. I decided to move the function the .h file because I need to use this function in diferent project. So in main main.cpp file I have:

 
#include "filework.h" // GetEncoderClsid 


and in filework.h I have:
 
int GetEncoderClsid(const WCHAR* format, CLSID* pClsid);


I removed the implementation, but
1) where should I place the implementation? Should I move it to filework.cpp?
2) here in the file filework.h I got error:
proccessing_args.cpp
filework.h(1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
filework.h(1): error C2143: syntax error : missing ',' before '*'
Why?
1. See http://www.cplusplus.com/articles/Gw6AC542/

2. Did you tell the compiler what the WCHAR and CLSID are?

Oh, thank you. That helped. I needed include windows.h
Topic archived. No new replies allowed.