1>c:\users\*****\documents\visual studio 2008\projects\ko aio\files\main.cpp(83) : error C2664: 'UseHD' : cannot convert parameter 2 from 'long (__cdecl *)(void)' to 'long'
trying to use with this code.
int HDID = GetPrivateProfileInt("DP", "HDID", 0, "./Settings.ini");
int D_MinValue = GetPrivateProfileInt("DP", "D_MinValue", 0, "./Settings.ini");
void UseHD(DWORD HDID, long getCID)
{
BYTE pPacket[] = {0x31, 0x03, 0, 0, 0, 0x00, 0, 0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
CopyBytes(pPacket + 2, HDID);
CopyBytes(pPacket + 6, getCID);
SendPacket(pPacket, sizeof(pPacket));
}
if(!keyWasPressed)
{
cout << "\nPrevention Enabled" << endl;
keyWasPressed = true;
if (getCurrentD() > 0)
{
if (getCurrentD() <= D_MinValue)
UseHD(HDID, getCID);
}
Sleep(400);
long getCID()
{
return ReadLong(OffsetCID);
}
what am i doing wrong?
This post has been edited by gibson_junk: 02 August 2009 - 04:05 AM

New Topic/Question
Reply



MultiQuote




|