So viel ich gesehen habe, hat Visual Studio diese Call-Convention gar nicht.
(Habe es selbst schon etliche male Probiert... Ohne Erfolg)
Letztendlich kann mann dann wohl nur auf __asm zurückgreifen.
(Keine Ahnung ob man so eine eigene erstellen kann. Glaube aber eher nicht so einfach.)
#define FASTCALL __fastcall
int test;
int __fastcall hallo(int a, int b, int c) {
std::cout << "Hallo" << std::endl;
return 5;
}
int main()
{
hallo(3,2,test);
return 0;
}
The game does not use __fastcall for most things, it's a custom calling method used by Delphi. It's similar to __fastcall but does not use the same registers. Fastcall uses ECX and EDX for the first two parameters, where most of Nostale's calls use EAX, EDX, and ECX instead.
You can create custom 'naked' stubs to call the functions instead and just mimic the parameter movements into the proper registers.
typedef void(__fastcall *tNTConnect)(unsigned long client, char* ip, int port);
Lässt sich problemlos aufrufen... will man aber hier was abfangen, sind die Register verkehrt.
__asm is zwar nicht so schön, scheint aber nicht anders zu gehen...
Hatte die Hoffnung, das es an den Einstellungen von Visual Studio liegt.
Trotzdem danke an alle
Visual Studio Community 2015 FLTK-Installation 01/23/2016 - C/C++ - 0 Replies ich bin buch mit anzeigenmodell und grafikklasen usw aber ich muss FLTK-Installation, aber die Installation im buch ist veralte wie kann ich das den in Visual Studio Community 2015 das Installation machen
Fast Light Toolkit (abgekürzt FLTK)
Visual studio 2015 to 2013 01/09/2016 - 12Sky2 - 1 Replies I cant download visual studio c++ redistriable package 2015 to windows 8.1 and I cant use these dlls http://www.elitepvpers.com/forum/12sky2-hacks-bots -cheats-exploits/3963583-release-wsp-hun-classic-e ngine-2-5-cheat.html in dab's topic can anyone code them in visual studio 2013
[Selling] Verkaufe Microsoft Visual Studio 2015 Professional Key 09/03/2015 - Trading - 4 Replies Ich Verkaufe Produkt Keys für Microsoft Visual Studio 2015 Professional.
Bei Interesse einfach Pn oder mich auf Skype adden :)
lg hzfg.