Waarom wordt de file niet geladen?

Status
Niet open voor verdere reacties.

e-mail-user

Gebruiker
Lid geworden
24 apr 2007
Berichten
133
Ik heb deze:
Code:
	// load surface from file
	result = D3DXLoadSurfaceFromFile(
			surface,			// destination surface
			NULL,				// destination palette
			NULL,				// destination rectangle
			"someFile.bmp",		// source file name
			NULL,				// source rectangle
			D3DX_DEFAULT,		// control's image filter
			0,					// for transparency, 0 for none
			NULL);				// source image info, usually NULL

	// make sure the file is loaded
	if(result != D3D_OK)
	{
		MessageBox(hWnd, "Error GameInit() LoadSurfaceFromFile", "Caption: ERROR", MB_OK | MB_ICONERROR);
		return 0;
	}
Het bericht is dat er hier een fout optreedt.
Waar precies moet het programma die file vinden.
Hij staan nu dezelfde dir als het exe bestand.
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan