I was working on a scheme where all my functions would return if an error occurred rather than each function return the results of the function (like a string) so I moved things that the parameter of the function was also a reply after the function.
Parameter as reply
which works great that the reults of the function are returned, and if I want to know the string returned I just read it. But then testing in another language, for a string my only options are pointers to strings which does not work with a parameter, but if I go back to my old way
Reply as Reply
then the reply is correct
My only thoughts are that if I am forced to use a language then I need a different function for how the string is passed by that language? Unless someone has an idea for matching them all and not really care if it is a string, a pointer to a string, a string handle, or an asciiz or something else???
Unfortunately the other languages I have tested with do not know about pointers to strings, or asciiz (or blatantly hide it from me)
Parameter as reply
Code:
FUNCTION GetClassNameId ALIAS "GetClassNameId"(ClassNameId AS string)EXPORT AS LONG ClassNameId = PROGID$($CLASS_GUID) + $nul msgbox ClassNameId FUNCTION = %FALSE END FUNCTION
Reply as Reply
Code:
FUNCTION GetClassNameId ALIAS "GetClassNameId"()EXPORT AS STRING LOCAL ClassNameId AS STRING ClassNameId = PROGID$($CLASS_GUID) MSGBOX ClassNameId FUNCTION = ClassNameId END FUNCTION
My only thoughts are that if I am forced to use a language then I need a different function for how the string is passed by that language? Unless someone has an idea for matching them all and not really care if it is a string, a pointer to a string, a string handle, or an asciiz or something else???
Unfortunately the other languages I have tested with do not know about pointers to strings, or asciiz (or blatantly hide it from me)
Comment