Foros del Web » Programación para mayores de 30 ;) » C/C++ »

Haber si podeis ayudarme

Estas en el tema de Haber si podeis ayudarme en el foro de C/C++ en Foros del Web. Yo trabajo mas con vb6 pero este codigo tengo que compilarlo en c++, para ello estoy con Dev C++ pero me da unos errores que ...
  #1 (permalink)  
Antiguo 28/05/2008, 02:27
 
Fecha de Ingreso: mayo-2008
Mensajes: 31
Antigüedad: 16 años
Puntos: 0
Haber si podeis ayudarme

Yo trabajo mas con vb6 pero este codigo tengo que compilarlo en c++, para ello estoy con Dev C++ pero me da unos errores que tengo la cabeza tan liada que nada, aver si podeis ayudarme a compilarlo pls.

El codigo es este:
Código:
typedef int ( *PBPerformCheck_t )( int iArg1, int iArg2, int iArg3 );
PBPerformCheck_t pPBPerformCheck = 0;

char *pszCheckString;

int _PBPerformCheck( int iArg1, int iArg2, int iArg3 )
{
    // _asm mov pszCheckString, edi;
    _asm mov pszCheckString, esi;

    // if the pszCheckString's first char is |: Files white list check
    // if the pszCheckString's first char is B: Cvar check
    // if the pszCheckString's first char is N: MD5 check
    // if the pszCheckString's first char is E: Key bind check

    // Remove modifications

    int iReturn = pPBPerformCheck( iArg1 , iArg2, iArg3 );

    // Apply modifications

    return iReturn;
}

pPBPerformCheck = ( PBPerformCheck_t )DetourFunction( ( PBYTE )( g_dwPbclBase + 0x250E0 ), ( PBYTE )_PBPerformCheck );
y este otro tamb me da problemas

Código:
bool g_bSafeScreen = true;

int _PBScreenshotSetup( int iArg1 , int iArg2, int iArg3, int iArg4, unsigned int uiArg5 )
{
    g_bSafeScreen = false;

    static int iRequest = 0;

    iRequest++;

    int iReturn;

    if( iRequest <= 1 )
        iReturn = 2;
    else
    {
        iReturn = 2;
        
        if( iRequest % 16 == 1 )
        {
            iReturn = pPBScreenshotSetup( iArg1 , iArg2, iArg3, iArg4, uiArg5 );

            g_bSafeScreen = true;

            iRequest = 0;
        }
    }

    return iReturn;
} 

pPBScreenshotSetup = ( PBScreenshotSetup_t )DetourFunction( ( PBYTE )( g_dwPbclBase + 0xE030 ), ( PBYTE )_PBScreenshotSetup ); 

// Usage
if( g_bSafeScreen )
{
    // Apply your visual modifications
}
  #2 (permalink)  
Antiguo 30/05/2008, 12:02
 
Fecha de Ingreso: mayo-2008
Ubicación: Caracas
Mensajes: 35
Antigüedad: 16 años
Puntos: 1
Respuesta: Haber si podeis ayudarme

Hola,

pPBScreenshotSetup y pszCheckString no han sido declarados en ninguna parte
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 16:01.