Alaska Software Inc. - DllLoad using function prefix
Username: Password:
AuthorTopic: DllLoad using function prefix
Boris BorzicDllLoad using function prefix
on Tue, 12 Jan 2016 17:53:00 +0100
Class functions defined in an external Xbase++ DLL and loaded using DllLoad 
with a function prefix cannot be accessed using the function prefix (the 
prefix is not honoured). Example:

 MyDll.PRG

FUNCTION T1()
   ? "function T1()"
   Return nil

CLASS T2
EXPORTED:
   INLINE CLASS METHOD m1()
   ? "T2:m1()"
   Return nil

   INLINE CLASS METHOD m2()
   ? "T2:m2()"
   Return nil
ENDCLASS


 test program:

DllLoad("MyDll.DLL", "_X_")
? isFunction("_X_T1"), ;
  isFunction("_X_T2",FUNC_CLASS), ;
  isFunction("T2", FUNC_CLASS)

 output: Y, N, Y


Best regards,
Boris Borzic

http://xb2.net
http://sqlexpress.net
industrial strength Xbase++ development tools