Help Me...to solve this prob...

Posts 1–3 of 3 · Page 1 of 1
Help Me...to solve this prob...
hello bro,
i wanna ask to anyone, can u help me to solve my prob about this D3d code base?
thx for ur replay.....
i just a beginner want to learn
Credits to Dom1n1c
Code:
bool bCompare(const BYTE* pData, const BYTE* bMask, const char* szMask)
{
    for(;*szMask;++szMask,++pData,++bMask)
        if(*szMask=='x' && *pData!=*bMask)  
            return 0;
    return (*szMask) == NULL;
}

DWORD FindPattern(DWORD dwAddress,DWORD dwLen,BYTE *bMask,char * szMask)
{
    for(DWORD i=0; i<dwLen; i++)
        if (bCompare((BYTE*)(dwAddress+i),bMask,szMask))  
            return (DWORD)(dwAddress+i);
    return 0;
}
iam already put that code, but after i build there some error again, like this
: error C2664: 'FindPattern' : cannot convert parameter 1 from 'HINSTANCE' to 'DWORD'
1> There is no context in which this conversion is possible
Thx 4ur replay....
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us