CallFunctionFast() in C

Fragen zu allen anderen Programmiersprachen.
NetSlayer
Beiträge: 117
Registriert: 21.09.2004 21:18
Kontaktdaten:

CallFunctionFast() in C

Beitrag von NetSlayer »

Joa, wie das Topic schon sagt, ich suche nach einer Äquivalente zu CallFunctionFast() in C, also eine Möglichkeit, eine Funktion mit Hilfe ihrer Adresse aufzurufen (nicht aus einer DLL!).

Vielleicht kann mir ja einer von euch helfen.
...MfG, NetSlayer
"No, I ain't got a problem. It's you with the problem!"
http://netslayer.scpn.net
NetSlayer
Beiträge: 117
Registriert: 21.09.2004 21:18
Kontaktdaten:

Beitrag von NetSlayer »

Hat sich erledigt. Habe mal ein kleines Beispiel gemacht, damit ihr auch draus lernt: ;)

Code: Alles auswählen

typedef void (*pFunc)(); 

int function ()
{
  printf("Hallo!");
  return 0;
}

int main (int argc, char *argv[])
{
  pFunc asd = &function;
  asd();
  system("pause");
  return 0;
}
...MfG, NetSlayer
"No, I ain't got a problem. It's you with the problem!"
http://netslayer.scpn.net
Antworten