I try to understand how it is possible to return a string from a DLL built by PB to VB6.
I have this code but I haven't VB. Could anybody try to compile it into a DLL and test this function with VB in order to get the string "DLL MESSAGE IS OKAY!" in VB? In the good way, is it possible to post the required VB code?
Thank you!
Code: Select all
ProcedureDLL.I Test()
Protected *AdresseChaine
*AdresseChaine = SysAllocStringByteLen_("DLL MESSAGE IS OKAY!", 20)
ProcedureReturn *AdresseChaine
EndProcedure