Problem calling Delphi COM DLL from VB
$30-100 USD
Bezahlt bei Lieferung
I've a COM DLL function created in Delphi that can't i can't figure how to "call" from VB correctly.
I've uploaded the COM DLL (plus dependency dlls) and VB demo used to test the DLL to [url removed, login to view] The function in question is COMPOSE.PAS.
Here's the list:
COM DLL - [url removed, login to view] (run [url removed, login to view] to register the dll, ensure that the other 5 dependency dlls are in the same folder).
VB Demo - [url removed, login to view] (click on compose function, that's the problem area - the compose function isn't "called" correct from this VB demo.
Delphi Demo - [url removed, login to view] (this is the equivalent for the VB Demo, but works perfectly with [url removed, login to view]).
The purpose of this COM DLL is to generate a SMIL document, the SMIL doc generated by the VB has corrupted filenames.
This is the TLB for [url removed, login to view]:
[
uuid(836B6746-A007-4BB0-880B-E7E902BBBBE5),
version(1.0),
helpstring("Dispatch interface for Compose Object"),
dual,
oleautomation
]
interface ICompose: IDispatch
{
[
id(0x000000C9)
]
HRESULT _stdcall ComposeSMIL([in] BSTR FileName, [in] long FrameCount, [in] long FrameData );
[
propget,
id(0x000000CA)
]
HRESULT _stdcall ErrorCode([out, retval] long * Value );
[
propget,
id(0x000000CB)
]
HRESULT _stdcall ErrorString([out, retval] BSTR * Value );
};
Projekt-ID: #25363