←  Code Block

Fallout Studios Forums

»

DirectX Problem

Sgt. Rho's Photo Sgt. Rho 06 Apr 2008

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?
Quote

CodeCat's Photo CodeCat 06 Apr 2008

You forgot the ;

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

Sgt. Rho's Photo Sgt. Rho 06 Apr 2008

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