• ### Announcements

#### Archived

This topic is now archived and is closed to further replies.

# DirectX problem ..

## Recommended Posts

rhide    122
// As simple as it can be ...
DirectDrawCreate(NULL,&lpdd,NULL);

Strange enough I get a linker error saying Linker error: undefined reference to DirectDrawCreate@12' I have included ddraw.lib and ddraw.h from the latest dx SDK 9 ... what could possibly be wrong here ??? Please help me!! EDIT: lpdd is a global LPDIRECTDRAW variable. [edited by - rhide on August 13, 2003 5:52:30 PM]

##### Share on other sites
RenderTarget    398
There is no DirectDrawCreate(). DDraw was removed in DX8.
Sounds like you have an older book.

Direct3DCreate9() is the function to create a D3D9 device. Check the SDK docs for more, and newer books for even more info.

I like pie.