How to create a project from existing code files?

Question:

Good day,

I have a set of .c and .h files. I need to compile and test them in CodeBlocks. I create an empty project, add all these files there, but when compiling it throws it into some header file errors.h (I don't have it in the set), writes an error:

error: unkown type name 'DWORD'

and points to this line in this errors.h :

DWORD WINAPI AMGetErrorTextA(HRESULT,CHAR*,DWORD);

Thanks for answers!

Answer:

Apparently, you need to connect the quartz library and the dshow.h header file. I looked in my mingw folder – all these files are there, which means they should be in codeblocks, there seems to be a mingw compiler too.

Scroll to Top