Once time ago I was using dynamic dll linking ,
Here you obtain a function pointer by name,
You should also typedef this pointer but I was
lazy (those typedefs can be complex ) so i tried
to call it without typedef, something like
FARPROC SomeImportedFunction = NULL;
int x = SomeImportedFunction(1,2,3);
Has it (this way of using it) a chance to work?
(I think this is dangerous becouse compiler here has to guess
how to pass arguments and this is not type checked in the case
of some omittions or misaligments, wrong arg sizes), but if doing carefully
has this a chance to work, how to do it?
previously i was even unawara I can do this, I mean this way you can
push any arguments configuration then call the pointer, I am not sure how this is working - does it asume SomeImportedFunction is cdecl or stdcall
or what?
(I am not really sure what FARPROC hides, used it becouse it was
simplest not need to define any function pointedr typedef just using some)