Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

asm to cpp code porting

$
0
0

I am porting assembly code to C++ and I have some problems porting a portion of it.

I have a pointer declared as:

void* function;

and it is pointing to a function call:

void* function = getfunction(lib, fname);

I have a inline assembly code which I have to migrate to C++:

__asm { call function }

How to call this pointer in C++?

Please note that the arguments lib and fname are of type void*.

And void* function points to value returned by "getfunction"


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>