Jump to content


DirectX Problem


2 replies to this topic

#1 Sgt. Rho

    Kerbal Rocket Scientist

  • Project Leader
  • 6870 posts
  • Projects: Scaring Jebediah.

Posted 06 April 2008 - 13:03

So I got a problem, with DirectX and Visual C++ 6.0.

CreateWindowEx(NULL,
							  "Game",
							  "hi",
							  WS_OVERLAPPEDWINDOW | WS_VISIBLE,
							  0,0,
							  800,600,
							  NULL,
							  NULL,
							 hInstance,
							  NULL)) //Line 97
		return(0);


Quote

C:\Program Files\Microsoft Visual Studio\MyProjects\meh\main.cpp(97) : error C2106: '=' : left operand must be l-value


What does that mean?

#2 CodeCat

    It's a trap!

  • Gold Member
  • 6111 posts

Posted 06 April 2008 - 13:56

You forgot the ;

And I strongly recommend you try SDL instead of DirectX.
CodeCat

Posted Image
Posted Image

Go dtiomsaítear do chód gan earráidí, is go gcríochnaítear do chláir go réidh. -Old Irish proverb

#3 Sgt. Rho

    Kerbal Rocket Scientist

  • Project Leader
  • 6870 posts
  • Projects: Scaring Jebediah.

Posted 06 April 2008 - 14:02

No, I forgot 2 parenthesis...and further down in the code, I used a , instead of a .



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users