Quote:
Originally Posted by grandfenrirstooth
Compiling...
wallhacka.cpp
c:\documents and settings\pc9\my documents\visual studio 2008\projects\wallhacka\wallhacka\wallhacka.cpp(6) : fatal error C1083: Cannot open include file: 'd3d8.h': No such file or directory
Build log was saved at "file://c:\Documents and Settings\pc9\My Documents\Visual Studio 2008\Projects\wallhacka\wallhacka\Debug\BuildLog.h tm"
wallhacka - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
|
having also the same problem as this one...
i dont know what went wrong but i carefully follow the instrctions said...
and this is the code i use.. any one can tell if i am wrong..
// WF2.cpp : Defines the exported functions for the DLL application.
//
#include "stdafx.h"
#include <d3d8.h>
#include <windows.h>
#pragma comment(lib, "d3d8.lib")
int m_Stride;
int WireFrame;
int nNumVertices; // to define wireframe or the player
int nPrimitiveCount; // to define also wireframe or the player
LPDIRECT3DTEXTURE8 texRed;
LPDIRECT3DTEXTURE8 texYellow;
LPDIRECT3DTEXTURE8 texGreen;
LPDIRECT3DTEXTURE8 texBlue;
LPDIRECT3DTEXTURE8 texPurple;
LPDIRECT3DTEXTURE8 texOrange;
LPDIRECT3DTEXTURE8 texPink;
//==========================Colored WireFramez by elitehack========================================= =============================================
typedef HRESULT ( WINAPI* oDrawIndexedPrimitive ) ( LPDIRECT3DDEVICE8 pDevice, D3DPRIMITIVETYPE pType, UINT nMinIndex, UINT nNumVertices, UINT nStartIndex, UINT nPrimitiveCount );
oDrawIndexedPrimitive pDrawIndexedPrimitive, OriginalDrawIndexedPrimitive;
HRESULT WINAPI myDrawIndexedPrimitive(LPDIRECT3DDEVICE8 pDevice, D3DPRIMITIVETYPE pType, UINT nMinIndex, UINT nNumVertices, UINT nStartIndex, UINT nPrimitiveCount)
{
if(wireframe) // if wireframe on
{
if (m_Stride==40) // worldwireframe
{
DWORD dwZEnable = D3DZB_TRUE;
pDevice->SetTexture(0, texGreen);// color of back chams
pDevice->SetRenderState(D3DRS_FILLMODE, D3DFILL_WIREFRAME);
pDevice->GetRenderState(D3DRS_ZENABLE, &dwZEnable);
pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
pDevice->DrawIndexedPrimitive(Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
pDevice->SetRenderState(D3DRS_ZENABLE, dwZEnable);
pDevice->SetTexture(0, texYellow);} // color of front chams
else{
m_pD3Ddev->SetRenderState( D3DRS_FILLMODE, D3DFILL_SOLID );
}
}
if (GetAsyncKeyState(VK_F1)&1) // If you press F1
{ //ThEn
wireframe = !wireframe; //wireframe = on
} // 3nd 0f Th3N :D im a jejemon XD
if (GetAsyncKeyState(VK_F2)&1) // if you press f2
{ // the
PlayerWireFrame = !PlayerWireFrame; // player wireframe on
} //end