[fpc-pascal] getprocaddress
L505
fpc505 at z505.com
Fri Jul 15 00:03:52 CEST 2005
| The same, just add dynlibs to your uses clause.
|
| This is documented.
|
| Michael.
Actually, I have dynlibs in uses, I just need education on the rules of objfpc
I will create an example for the docs though. I don't think it shows an example,
and I love examples.
An example:
var
myprocedure: procedure;stdcall;
@myprocedure:=
Error: Can't assign values to an address
However I figured something out.. this works:
MyProcedure:=TMyProcedure(GetProcAddress(handle,'MyProcedure'));
So @ doesn't work.. because objfpc assumes assigning to an address is just not
right?
More information about the fpc-pascal
mailing list