Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

running a procedure who's memory address and prototype are known

Status
Not open for further replies.

samirss56

Programmer
Aug 21, 2012
9
0
0
SA
Hi,
I have come across a situation where an MS procedure could be loaded using a standard call to a win32 dll and returning the memory address of the specified procedure. Is it possible to call the specified procedure using its memory address and prototype. Here is the equivalent in C:
void main()
{
// the procedure is defined as a typedef.
typedef func(param1,param2);

func lpfunc;

// the following call retrieves the memory address of func.
retriever(&lpfunc); //

// now I use lpfunc to process the two parameters as if I am using func.
lpfunc(param1,param2);

// it is presumed that repetitive calls using lpfunc are preferred to repetitive call of the func to achieve more performance.

Any idea how this scenario can be done in Clarion. A example would be most welcome. I am sure one Clarioner could do it.

Thanks.

Sameer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top