I am working on a procedure that uses another companies dll to return information from their web-based database. The information is related to software licensing and activation.
Here is some base information regarding the procedure.
Sample procedure Calls for
VBasic
Code: Select all
Public Function DNA_Param(ByVal param As String, ByRef value As String, ByVal value_size As
Integer) As Integer
Code: Select all
int __stdcall DNA_Param(char *param,char *value,int value_size);
For all other programming environments, <value> should be a buffer of 256 bytes or greater. <value_size> should
indicate the size of buffer allocated.
If DNA_Param returns “0”, then <value> will contain the value of the <param> from the CDM.
If DNA_Param returns “1”, then a problem occurred with the DNA.DLL.
I am assuming that we fall under the "All other programming environments" and have come up with this for the procedure
Code: Select all
Procedure DNA_Param(Param.s, returnval.s, size.i)
Result=CallFunction(DNAdll, "DNA_PARAM", @Param, @returnval, @size)
ProcedureReturn @Result
EndProcedure
Can anyone provide me with a clue as to how to get the actual string and return it. I know I will change the line
Code: Select all
Procedure DNA_Param(Param.s, returnval.s, size.i)
Code: Select all
Procedure.s DNA_Param(Param.s, returnval.s, size.i)
Thanks
Slyvnr