Postelextro d3d error

Posts 1–15 of 19 · Page 1 of 2
elextro d3d error
im getting error 1>.\Base.cpp(26) : error C2660: 'D3D9Menu::AddFolder' : function does not take 3 arguments
with this line Bl4ck->AddFolder("Hacks",folder, CH_folder1);
You either have too many arguments for the function, or what I think, you missed adding some of the required arguments.

I suggest you Learn C++ some more since based on the looks it seems simple.
Here you go
Code:
Bl4ck->AddFolder("Hacks",folder, &CH_folder1);
you missed out the "&" before CH_folder
error
Quote Originally Posted by .Joker View Post
Here you go
Code:
Bl4ck->AddFolder("Hacks",folder, &CH_folder1);
you missed out the "&" before CH_folder
still have error
Bl4ck->AddFolder("Hacks",folder,&CH_folder1,2);

so shuld work oO
@~ExoduS~* i cant send pm but heres the source code:
#include <d3d9.h>
#include <d3dx9.h>
#include "Quelle.h"
#include "color.h"
#include "detour.h"
#include "int.h"
#include "Hacks.h"
#include "d3dmenu.h"
#include <iostream>
#include <iomanip>
#pragma comment(lib, "d3d9.lib")
#pragma comment(lib, "D3DX9.LIB")


D3D9Menu *Bl4ck = NULL;
CD3DFont* pFont;

bool Color = true;
bool Create;

char *folder[] = {"[+]", "[-]"};
char *onoff[] = {"[OFF]", "[ON]"};
void RebuildMenu(void)
{
Bl4ck->AddFolder("Hacks",folder, &folder1);
;if (folder1)
{
Bl4ck->AddItem (" NFD",onoff, &CH_NFD,2);
}
{
Bl4ck->AddItem (" SuperJump",onoff, &CH_Superjump,2);
}
}

typedef HRESULT ( WINAPI* oPresent ) ( LPDIRECT3DDEVICE9 pDevice, CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion);
oPresent pPresent;

HRESULT WINAPI myPresent ( LPDIRECT3DDEVICE9 pDevice, CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion)
{
pFont = new CD3DFont("Trebuchet MS", 8, D3DFONT_BOLD);
pFont->InitDeviceObjects(pDevice);
pFont->RestoreDeviceObjects();

if(Bl4ck == NULL)
{
Bl4ck = new D3D9Menu("Addmeasfd1/Khaine914 D3D");
}else{
Bl4ck->MenuShow(12,10,pFont,pDevice);
if(Bl4ck->Mmax==0) RebuildMenu();
Bl4ck->MenuNav();

}

Hacks();

delete pFont;

return pPresent(pDevice, pSourceRect, pDestRect, hDestWindowOverride, pDirtyRegion);
}

DWORD dwDrawindexedprimitive_ret;

HRESULT WINAPI myDrawIndexedPrimitive(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE Type, UINT BaseVertexIndex, UINT MinVertexIndex, UINT NumVertices, UINT startIndex, UINT primCount)
{
LPDIRECT3DVERTEXBUFFER9 Stream_Data;
UINT Offset = 0;
UINT m_Stride = 0;


if(pDevice->GetStreamSource(0, &Stream_Data, &Offset, &m_Stride) == D3D_OK)
Stream_Data->Release();

//D3D Funcs
__asm
{
popad
jmp dwDrawindexedprimitive_ret;

}
}

int D3D(void)
{
HINSTANCE hD3D;
DWORD vTable[105];
hD3D=0;
do {
hD3D = GetModuleHandle("d3d9.dll");
if (!hD3D) Sleep(10);
} while(!hD3D);

if (D3Ddiscover((void *)&vTable[0],420)==0) return 0;
{

pPresent = (oPresent)DetourCreate((DWORD)vTable[17], (DWORD)myPresent,12);


Sleep(100);
}

return 0;
}


BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
if (dwReason == DLL_PROCESS_ATTACH)
{ HideModule(hDll);
EraseHeaders(hDll);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)D3D, NULL, NULL, NULL);
}
return TRUE;
}





error:
1>.\Base.cpp(25) : error C2660: 'D3D9Menu::AddFolder' : function does not take 3 arguments
;if (folder1) //remove;...

void RebuildMenu(void)
{
Bl4ck->AddFolder("Hacks",folder, &folder1,2);
if (folder1)
{
Bl4ck->AddItem (" NFD",onoff, &CH_NFD,2);
Bl4ck->AddItem (" SuperJump",onoff, &CH_Superjump,2);
}
}
when i join game the player screen flickers
The problem is that you want to know to much to early
You can't just assume that you can use a copy-pasted base and all that and just own a game, it doesn't work that way.

On topic: you are probably missing some arguments, etc..
Not meaning to be rude
I agree on this
Quote Originally Posted by Alex_Agnew
The problem is that you want to know to much to early
Quote Originally Posted by addmeasfd1 View Post
@AeroMan please help
I can't see the error like this.
Post the exact issue that you now have.
Im going to sleep, cya tomarrow
I agree with Alex Agnew if I were you I will start from nomenu is the best option it doesn't need bypass or detour and you can learn just from looking at the right code and correct the one which are wrong but not always is like that.
i already made a no menu but i have not posted it yet
I write you a pn to give teamviewer but you not write back so i cant help

like Aeroman :you are probably missing some arguments, etc..
Posts 1–15 of 19 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us