When I first got started with DirextX I found this site very helpful,
http://www.andypike.com/tutorials/directx8/
c:\documents and settings\owner.root\desktop\dx project 1\main.cpp(1) :
fatal error C1083: Cannot open include file: 'd3d8.h': No such file or
directory
Error executing cl.exe.
When I use DEV C++ I get this error.
[Linker error] undefined reference to `Direct3DCreate8@4'
ld returned 1 exit status
I installed directX and still get this.
#include<ddraw.h>
int WINAPI WinMain(HINSTANCE h1, HINSTANCE h2, PSTR v1, int v2){
LPDIRECTDRAW lpdd = NULL;
DirectDrawCreate(NULL, &lpdd, NULL);
return 0;
}
with VC++ I get:
main.obj : error LNK2001: unresolved external symbol
_DirectDrawCreate@12
Debug/ddraw.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
With DEVC++:
[Linker error] undefined reference to `DirectDrawCreate@12'
How do I overcome these errors I have installed directX.
This site has a good intro tutorial for D3D9.
http://www.ultimategameprogramming.com/demoDownload.php?category=DirectX&page=1