I am getting linker errors as shown below.
demo6_3.obj : error LNK2001: unresolved external symbol _DirectDrawCreateEx@16
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/demo6_3.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
I am using VC++ 6.0 and installed DirectX9 into C:\DXSDK. Dpes anyone know where I can find directions to make sure I am setting the program up right to link properly.
Below is code that is neede too link to DirectDraw but I don't know if its right or not. This is an example from a book. The exe works.
------------------------------------------------------------------------------
LPDIRECTDRAW7 lpdd = NULL; // dd object
LPDIRECTDRAWSURFACE7 lpddsprimary = NULL; // dd primary surface
LPDIRECTDRAWSURFACE7 lpddsback = NULL; // dd back surface
LPDIRECTDRAWPALETTE lpddpal = NULL; // a pointer to the created dd palette
LPDIRECTDRAWCLIPPER lpddclipper = NULL; // dd clipper
PALETTEENTRY palette[256]; // color palette
PALETTEENTRY save_palette[256]; // used to save palettes
DDSURFACEDESC2 ddsd; // a direct draw surface description struct
DDBLTFX ddbltfx; // used to fill
DDSCAPS2 ddscaps; // a direct draw surface capabilities struct
HRESULT ddrval; // result back from dd calls
DWORD start_clock_count = 0; // used for timing