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?