problem z skompilowaniem dll i dodaniem funkcji

0

witam mam nie jasny problem(tak mysle) kompiluje biblioteke dll mam zero problemow kiedy chce dolaczyc swoja funkcje [code]DWORD dwSnapShot = 0x01D24DB0 ;
void MySnapShot( ) {

__asm call dwSnapShot;

}

g_pEngine->pfnAddCommand( "snapshot", &MySnapShot );

[/code] która jest odpowiedzialna za blokowanie zrobienia screena w czasie gry pojawiaja sie bledy przy kompilacji:[code]--------------------Configuration: kyros base - Win32 Release--------------------
Compiling...
gateways.cpp
C:\Documents and Settings\Administrator.WINXP-B0B8FC74D\Pulpit\Nowy folder\cnhacksource\gateways.cpp(41) : error C2143: syntax error : missing ';' before '->'
C:\Documents and Settings\Administrator.WINXP-B0B8FC74D\Pulpit\Nowy folder\cnhacksource\gateways.cpp(41) : error C2501: 'g_pEngine' : missing storage-class or type specifiers
C:\Documents and Settings\Administrator.WINXP-B0B8FC74D\Pulpit\Nowy folder\cnhacksource\gateways.cpp(41) : error C2143: syntax error : missing ';' before '->'
Error executing cl.exe.

umbrella.dll - 3 error(s), 0 warning(s)

temat pomocny który zaczalem:

[/code] [color=red][URL=http://www.cheat-project.com/board/thread.php?threadid=3003&sid=d6006a2d630957605d5df21fd88b9fc6]http://www.cheat-project.com/board/thread.php?threadid=3003&sid=d6006a2d630957605d5df21fd88b9fc6[/URL][/color]
a na screenie wyglada to tak:
[URL=http://img181.imageshack.us/my.php?image=screenbc7.png][IMG]http://img181.imageshack.us/img181/2480/screenbc7.th.png[/IMG][/URL]

0
DWORD dwSnapShot = 0x01D24DB0 ;
void MySnapShot( ) {

    __asm call dwSnapShot;
}

//a to co? wisi sobie w powietrzu? w jakiej funkcji to jest?
g_pEngine->pfnAddCommand( "snapshot", &MySnapShot );

1 użytkowników online, w tym zalogowanych: 0, gości: 1