Link Errors: PLEASE HELP!

font.obj : error LNK2005: “struct HDC__ * hDC” (?hDC@@3PAUHDC__@@A) already defined in main.obj

anyone know how to fix this? I’ve been trying for nearly 2 hours.

wire

It appears that you are trying to use a global HDC hDC, and defining it in two different files. Put something like this in a common header…

extern HDC hDC;

Then in only ONE of the source files you use for your project do this…

HDC hDC;