For my xll (Excel addin) i would like to invent a new way to claim memory and destroy it right after the call.
When Excel calls my function, i can not destroy the returned string.
Using a STATIC is an option but not threadsafe.
Using arrays holding memory pointers is an option, i am looking for something different so i tried this (not working):
Unf. the msgbox END is executed before getting the "1234"
Maybe you have an idea similar to this and handy to use?
When Excel calls my function, i can not destroy the returned string.
Using a STATIC is an option but not threadsafe.
Using arrays holding memory pointers is an option, i am looking for something different so i tried this (not working):
Code:
Class Class1 Class Method Destroy MsgBox "END" End Method Interface Interface1: Inherit IUnknown Property Get Value() As String Property = "1234" End Property End Interface End Class Function Test() As String Local oInterface1 As Interface1 oInterface1 = Class "Class1" Function = oInterface1.Value() End Function ' Execute MsgBox Test()
Maybe you have an idea similar to this and handy to use?

Comment