• Create Account

#ActualTiagoCosta

Posted 14 January 2013 - 10:44 AM

You're trying to create 2 windows:
The first one using the function WindowProc which is both declared and defined.
The second one using the function WndProc which is only declared.

#3TiagoCosta

Posted 14 January 2013 - 10:41 AM

In that code there's a declaration and definition of the function WindowProc.
And only the declaration of the function WndProc.

So this line will cause an error:
wc.lpfnWndProc   = (WNDPROC)d3d::WndProc;
Change it to
wc.lpfnWndProc   = (WNDPROC)d3d::WindowProc

EDIT:
You're creating two windows... one in main.cpp and another in d3dUtility.cpp

#2TiagoCosta

Posted 14 January 2013 - 10:41 AM

In that code there's a declaration and definition of the function WindowProc.
And only the declaration of the function WndProc.

So this line will cause an error:
wc.lpfnWndProc   = (WNDPROC)d3d::WndProc;
Change it to
wc.lpfnWndProc   = (WNDPROC)d3d::WindowProc

EDIT:
You're creating two windows... one in main.cpp and another in d3dUtility.cpp

#1TiagoCosta

Posted 14 January 2013 - 10:38 AM

In that code there's a declaration and definition of the function WindowProc.

And only the declaration of the function WndProc.

So this line will cause an error:

wc.lpfnWndProc   = (WNDPROC)d3d::WndProc;

Change it to

wc.lpfnWndProc   = (WNDPROC)d3d::WindowProc

PARTNERS