I am trying to call a function that is in a class, through ASM. I have looked at the Assembly Listing Files, and I tried the code. It didn't work. I am programming an engine in SDL, btw. It was something like this (what I got from the listing files):
This code will give me an error that says (something like this):Code:__asm { push 0 mov edx, SDL_SWSURFACE | SDL_ANYFORMAT push edx push 16 push 480 push 640 mov ecx, szTitle push ecx mov eax, DWORD PTR screen mov ebx, g_Engine // 'g_Engine' : My global engine class declaration call SDLWindow // Call 'EngineSDL::SDLWindow' }
'SDLWindow' ... Label not defined
The listing file had some other characters in it, but they weren't part of the code. And it also included some text 'EngineSDL'. At the end, the comment says " EngineSDL::SDLWindow". If anyone can offer me any help on how to call the equality to g_Engine->SDLWindow(...) in ASM, please help me. I would like to figure this out.![]()



LinkBack URL
About LinkBacks



