Delphi COM Object
Posted on 2005-05-03
I've written an ActiveX DLL/Com object with various calls. One of the calls is a simple GetVersion which returns a version no. This works in Delphi but when I test it in Access for example (I don't have VB) my whole access crashes. The other functions work fine even when returning integers.
Version = '1.20';
function TMyObject.GetVersion: WideString;
Result := Version;
It's definition in the com class is :
function GetVersion: WideString; stdcall;
Set ao = CreateObject("MyClass.MyObject")
Please help. This should be very easy, I just don't know what I'm missing.