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
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