OK this is the complete source code and when i compile it gets errors
i am stumped as to why. not sure if the headers are there or not
can some one please help me fix these errors please -
#define charbody m==char Stridenum[44];
-
unsigned int m_Stride;
-
unsigned int NumVertices;
-
unsigned int primCount;
-
int Stridelogger = false;
-
int stri = 0;
-
int numvert = 0;
-
int primcnt = 0;
-
CD3DFont *pD3DFont;
-
LPDIRECT3DTEXTURE9 texRed;
-
LPDIRECT3DTEXTURE9 texBlue;
-
LPDIRECT3DTEXTURE9 texYellow;
-
LPDIRECT3DTEXTURE9 texGreen;
-
LPDIRECT3DTEXTURE9 texWhite;
-
LPDIRECT3DTEXTURE9 texAqua;
-
//LPDIRECT3DTEXTURE9 texDarkBlue;
-
//LPDIRECT3DTEXTURE9 texPink;
-
//LPDIRECT3DTEXTURE9 texOrange;
-
LPDIRECT3DTEXTURE9 texPurple;
-
const BYTE bRed[60] =
-
{
-
0x42, 0x4D, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-
0x00, 0x36, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00,
-
0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01,
-
0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-
0x00, 0x00, 0x12, 0x0B, 0x00, 0x00, 0x12, 0x0B, 0x00,
-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-
0x00, 0x00, 0xFF, 0x00, 0x00, 0x00
-
};
-
const BYTE bBlue[60] =
-
{
-
0x42, 0x4D, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-
0x00, 0x36, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00,
-
0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01,
-
0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-
0x00, 0x00, 0x12, 0x0B, 0x00, 0x00, 0x12, 0x0B, 0x00,
-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-
0xFF, 0x00, 0x00, 0x00, 0x00, 0x00
-
};
-
-
const BYTE bGreen[60] =
-
{
-
0x42, 0x4D, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-
0x00, 0x36, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00,
-
0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01,
-
0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00,
-
0x00, 0x00, 0x12, 0x0B, 0x00, 0x00, 0x12, 0x0B, 0x00,
-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-
0x00, 0x9E, 0x00, 0x00, 0x00, 0x00
-
};
-
const BYTE bYellow[60] =
-
{
-
0x42, 0x4D, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-
0x00, 0x36, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00,
-
0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01,
-
0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00,
-
0x00, 0x00, 0x12, 0x0B, 0x00, 0x00, 0x12, 0x0B, 0x00,
-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-
0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00
-
};
-
const BYTE bAqua[58] =
-
{
-
0x42, 0x4D, 0x3A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-
0x00, 0x36, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00,
-
0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01,
-
0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00,
-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-
0xFF, 0xFF, 0x00, 0x00
-
};
-
const BYTE bPurple[58] =
-
{
-
0x42, 0x4D, 0x3A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-
0x00, 0x36, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00,
-
0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01,
-
0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00,
-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-
0xFF, 0x00, 0xFF, 0x00
-
};
-
.r{}
-
const BYTE bWhite[58] =
-
{
-
0x42, 0x4D, 0x3A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-
0x00, 0x36, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00,
-
0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01,
-
0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00,
-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-
0xFF, 0xFF, 0xFF, 0x00
-
};
-
#define D3DHOOK_TEXTURES
-
HRESULT CD3DManager::Initialize()
-
{
-
D3DXCreateTextureFromFileInMemory(m_pD3Ddev, (LPCVOID)&bRed, 60, &texRed);
-
D3DXCreateTextureFromFileInMemory(m_pD3Ddev, (LPCVOID)&bBlue, 60, &texBlue);
-
D3DXCreateTextureFromFileInMemory(m_pD3Ddev, (LPCVOID)&bGreen, 60, &texGreen);
-
D3DXCreateTextureFromFileInMemory(m_pD3Ddev, (LPCVOID)&bYellow, 60, &texYellow);
-
D3DXCreateTextureFromFileInMemory(m_pD3Ddev, (LPCVOID)&bWhite, 60, &texWhite);
-
D3DXCreateTextureFromFileInMemory(m_pD3Ddev, (LPCVOID)&bAqua, 60, &texAqua);
-
D3DXCreateTextureFromFileInMemory(m_pD3Ddev, (LPCVOID)&bPurple, 60, &texPurple);
-
-
pD3DFont = new CD3DFont("Comic Sans MS", 12);
-
pD3DFont->InitDeviceObjects(m_pD3Ddev);
-
pD3DFont->RestoreDeviceObjects();
-
return S_OK;
-
}
-
HRESULT CD3DManager::PreReset()
-
{
-
return S_OK;
-
}
-
HRESULT CD3DManager::PostReset()
-
{
-
return S_OK;
-
}
-
HRESULT CD3DManager::Release()
-
{
-
delete pD3DFont;
-
texRed->Release();
-
texBlue->Release();
-
texGreen->Release();
-
texWhite->Release();
-
texAqua->Release();
-
texYellow->Release();
-
texPurple->Release();
-
return S_OK;
-
}
-
in DIP
-
-------
-
if(GetAsyncKeyState(VK_F1)&1)
-
{
-
Stridelogger=!Stridelogger;
-
}
-
if(Stridelogger)
-
{
-
if(GetAsyncKeyState(VK_NUMPAD7)&1)stri ;
-
if(GetAsyncKeyState(VK_NUMPAD1)&1)stri--;
-
if(GetAsyncKeyState(VK_NUMPAD8)&1)numvert ;
-
if(GetAsyncKeyState(VK_NUMPAD2)&1)numvert--;
-
if(GetAsyncKeyState(VK_NUMPAD9)&1)primcnt ;
-
if(GetAsyncKeyState(VK_NUMPAD3)&1)primcnt--;
-
}
-
if(m_Stride == stri)
-
{
-
m_pD3Ddev->SetTexture(0,texRed);
-
return m_pD3Ddev->DrawIndexedPrimitive(Type,BaseVertexIndex,
-
MinVertexIndex, NumVertices, startIndex, primCount);
-
}
-
if(NumVertices == numvert)
-
{
-
m_pD3Ddev->SetTexture(0,texBlue);
-
return m_pD3Ddev->DrawIndexedPrimitive
-
(Type,BaseVertexIndex,MinVertexIndex, NumVertices, startIndex, primCount);
-
}
-
if(primCount == primcnt)
-
{
-
m_pD3Ddev->SetTexture(0,texGreen);
-
return m_pD3Ddev->DrawIndexedPrimitive (Type,BaseVertexIndex,MinVertexIndex, NumVertices, startIndex, primCount);
-
}
-
if(GetAsyncKeyState(VK_NUMPAD0)&1)
-
{
-
stri=0;
-
numvert=0;
-
primcnt=0;
-
}
-
if(GetAsyncKeyState(VK_NUMPAD4)&1)
-
{
-
add_log("Player Stride:%i",stri);
-
}
-
if(GetAsyncKeyState(VK_NUMPAD5)&1)
-
{
-
add_log("Stride:%i",stri);
-
add_log("NumVertices:%i",numvert);
-
add_log("primCount:%i",primcnt);
-
}
-
4 3070 Banfa 9,065
Expert Mod 8TB
There is little point saying that you have got compiler diagnostics (errors or warnings) and asking for help to fix them without actually posting those errors!
Hi i was going to do this but i dident know if it was needed or not. so i'll post it now.
Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Documents and Settings\Ab\My Documents\Untitled1.cpp" -o "C:\Documents and Settings\Ab\My Documents\Untitled1.exe" -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Dev-Cpp\include\c++\3.4.2" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:9: error: expected constructor, destructor, or type conversion before '*' token
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:9: error: expected `,' or `;' before '*' token
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:10: error: expected unqualified-id before string constant
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:10: error: expected `)' before string constant
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:10: error: expected `,' or `;' before string constant
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:11: error: `LPDIRECT3DTEXTURE9' does not name a type
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:12: error: `LPDIRECT3DTEXTURE9' does not name a type
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:13: error: `LPDIRECT3DTEXTURE9' does not name a type
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:14: error: `LPDIRECT3DTEXTURE9' does not name a type
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:15: error: `LPDIRECT3DTEXTURE9' does not name a type
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:19: error: `LPDIRECT3DTEXTURE9' does not name a type
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:20: error: `BYTE' does not name a type
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:30: error: `BYTE' does not name a type
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:41: error: `BYTE' does not name a type
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:51: error: `BYTE' does not name a type
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:61: error: `BYTE' does not name a type
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:71: error: `BYTE' does not name a type
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:81: error: expected unqualified-id before '.' token
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:81: error: expected `,' or `;' before '.' token
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:82: error: `BYTE' does not name a type
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:93: error: `HRESULT' does not name a type
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:108: error: `HRESULT' does not name a type
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:112: error: `HRESULT' does not name a type
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:116: error: `HRESULT' does not name a type
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:128: error: `in' does not name a type
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:134: error: expected unqualified-id before "if"
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:134: error: expected `,' or `;' before "if"
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:143: error: expected unqualified-id before "if"
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:143: error: expected `,' or `;' before "if"
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:149: error: expected unqualified-id before "if"
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:149: error: expected `,' or `;' before "if"
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:155: error: expected unqualified-id before "if"
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:155: error: expected `,' or `;' before "if"
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:160: error: expected unqualified-id before "if"
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:160: error: expected `,' or `;' before "if"
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:166: error: expected unqualified-id before "if"
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:166: error: expected `,' or `;' before "if"
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:170: error: expected unqualified-id before "if"
C:\Documents and Settings\Ab\My Documents\Untitled1.cpp:170: error: expected `,' or `;' before "if"
Execution terminated
hope this help :)
CD3DFont is never defined. It must be defined somewhere in the headers you had to include. Where did you get this code?
it's a code i had laying around from a website. i visit often, but as it is the headers are missing so i'll fix that and see how i get on
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Anand |
last post by:
Hi i am having trouble adding a recordset into the access database,
the code seems to be working fine it passs and parses through all
variables just fine without showing any errors and also when i...
|
by: George |
last post by:
Hi,
I am trying to write a query in Oracle which I have not done before,
and are having some difficulty getting my result.
Please check my query and my results.
select max(note.datetime),...
|
by: KublaiKhan |
last post by:
The main window spawns a daughter window that has no toolbars or
buttons. I right click & choose "view source", yet nothing happens.
What gives?
Thanks.
KK
|
by: Krumble Bunk |
last post by:
Hello!
First things first (but not necessarily in that order), this is a
really great group, and has helped me understand more and more C
everytime I read the postings, so thanks for a great...
|
by: khawar |
last post by:
here is my code that i am using to send the post to
verisign:
using System.Drawing;
using System.Data;
using System.Data.SqlClient;
using System.Data.OleDb;
using System;
using System.Web.UI;...
|
by: I am Sam |
last post by:
The codebehind is as follows:
I have instenced the DataSet dsclub2a
protected System.Data.DataSet dsclub2a;
and I have instanced the DropdownList as follows:
protected...
|
by: Christian Blackburn |
last post by:
Hi Gang,
I don't know what to make of all of this, but I'm having nothing, but
trouble copying data to the clipboard which should be the easiest thing in
the world. The only systems I can get...
|
by: Olivier BESSON |
last post by:
Hello,
I have a web service of my own on a server (vb.net). I must declare it with
SoapRpcMethod to be used with JAVA.
This is a simple exemple method of my vb source :
...
|
by: MLH |
last post by:
Am having trouble with the filter property setting below.
Would like to filter the listing to car makes beginning
with "D". I'm blowing it on the filter spec somehow???
Sub OpenRecordsetX()
...
|
by: tkondal |
last post by:
Hi all.
I just started looking at Python's ctypes lib and I am having trouble
using it for a function.
For starters, here's my Python code:
from ctypes import*;
myStringDLL=...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |