Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#ActualSteve_Segreto

Posted 14 January 2013 - 12:42 PM

Glad you got it working, but you're going to have trouble in the future if you don't understand that writing this line in your CPP file:


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



and this line in your header file:

<ul class="bbcol decimal">LRESULT CALLBACK WndProc(

HWND hwnd,

UINT msg,

WPARAM wParam,

LPARAM lParam);

Is never going to work unless you also add these lines in your CPP file:

<ul class="bbcol decimal">LRESULT CALLBACK WndProc(

HWND hwnd,

UINT msg,

WPARAM wParam,

LPARAM lParam)

{

return 0;

}

Please see this website for more information about what a WndProc is and why you need it for a Windows game:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms633573(v=vs.85).aspx

#2Steve_Segreto

Posted 14 January 2013 - 12:41 PM

Glad you got it working, but you're going to have trouble in the future if you don't understand that writing this line in your CPP file:


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



and this line in your header file:

<ul class="bbcol decimal">LRESULT CALLBACK WndProc(

HWND hwnd,

UINT msg,

WPARAM wParam,

LPARAM lParam);

Is never going to work unless you also add these lines in your CPP file:

<ul class="bbcol decimal">LRESULT CALLBACK WndProc(

HWND hwnd,

UINT msg,

WPARAM wParam,

LPARAM lParam)

{

return 0;

}

Please see this website for more information about what a WndProc is and why you need it for a Windows game:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms633573(v=vs.85).aspx

#1Steve_Segreto

Posted 14 January 2013 - 12:41 PM

Glad you got it working, but you're going to have trouble in the future if you don't understand that writing this line in your CPP file:

 

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

 

and this line in your header file:

 

 

LRESULT CALLBACK WndProc(
	HWND hwnd,
	UINT msg,
	WPARAM wParam,
	LPARAM lParam);
	

Is never going to work unless you also add these lines:

 

 
LRESULT CALLBACK WndProc(
	HWND hwnd,
	UINT msg,
	WPARAM wParam,
	LPARAM lParam)
	{
	return 0;
	}
	

Please see this website for more information about what a WndProc is and why you need it for a Windows game:

 

http://msdn.microsoft.com/en-us/library/windows/desktop/ms633573(v=vs.85).aspx


PARTNERS