--------------------Configuration: GetDisplayMode - Win32 Debug--------------------
Linking...
dxguid.lib(dxguid.obj) : fatal error LNK1103: debugging information corrupt; recompile module
Error executing link.exe.
GetDisplayMode.exe - 1 error(s), 0 warning(s)
Co moze byc powodem :/?
programik prosciutki:
#pragma comment(lib, "ddraw.lib")
#pragma comment(lib, "dxguid.lib")
#include <Windows.h>
#include <ddraw.h>
#include <iostream.h>
int main(void)
{
LPDIRECTDRAW7 pIDD7 = NULL;
if(FAILED(DirectDrawCreateEx(NULL,
(void**)&pIDD7, IID_IDirectDraw7, NULL))) return 0;
DDSURFACEDESC2 ddsd2 = {0};
ddsd2.dwSize = sizeof(DDSURFACEDESC2);
pIDD7->GetDisplayMode(&ddsd2);
cout << "Szerokosc: " << ddsd2.dwWidth << endl;
cout << "Wysokosc: " << ddsd2.dwHeight << endl;
if(!(ddsd2.ddpfPixelFormat.dwFlags & DDPF_RGB))
cout << "Bity: tryb paletowy" << endl;
else
cout << "Bity: "
<< ddsd2.ddpfPixelFormat.dwRGBBitCount << endl;
pIDD7->Release();
cout << endl << "Wcisnij enter" << endl;
cin.get();
return 0;
} // end main
NATOMIAST w porgramie nr.2 jest jeszcze lepiej:
--------------------Configuration: AVIDD - Win32 Debug-------------------- Linking... AVIDD.OBJ : error LNK2001: unresolved external symbol _DirectDrawCreate@12 AVIDD.OBJ : error LNK2001: unresolved external symbol _ICSendMessage@16 AVIDD.OBJ : error LNK2001: unresolved external symbol _ICLocate@20 AVIDD.OBJ : error LNK2001: unresolved external symbol _AVIStreamInfoA@12 AVIDD.OBJ : error LNK2001: unresolved external symbol _AVIStreamLength@4 AVIDD.OBJ : error LNK2001: unresolved external symbol _AVIFileExit@0 AVIDD.OBJ : error LNK2001: unresolved external symbol _AVIStreamRelease@4 AVIDD.OBJ : error LNK2001: unresolved external symbol _AVIStreamReadFormat@16 AVIDD.OBJ : error LNK2001: unresolved external symbol _AVIStreamOpenFromFileA@24 AVIDD.OBJ : error LNK2001: unresolved external symbol _AVIFileInit@0 AVIDD.OBJ : error LNK2001: unresolved external symbol _ICClose@4 AVIDD.OBJ : error LNK2001: unresolved external symbol _ICDecompress AVIDD.OBJ : error LNK2001: unresolved external symbol _AVIStreamRead@28 LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/AVIDD.exe : fatal error LNK1120: 14 unresolved externals Error executing link.exe.AVIDD.exe - 15 error(s), 0 warning(s)
Pliki naglowkowe i include dodalem do projektu (tools, oprions, directories), co moze byc nie tak? jestem noob jesli chodzi o VISUALA :/...