Thread View: borland.public.cppbuilder.database.multi-tier
2 messages
2 total messages
Started by Fang
Wed, 19 May 1999 00:00
Call Mts Component builded by VC6
Author: Fang
Date: Wed, 19 May 1999 00:00
Date: Wed, 19 May 1999 00:00
21 lines
914 bytes
914 bytes
When I call simple Mts Component ,that have return a value, builded by VC6
in C++Builder,
I meet Access violetion.
but call in vc6 is ok.
follow call source
Variant vResult;
Variant vMTSObject = CreateOleObject("PMTSIDObject.IDServer");
Variant v0,v1;
v0 =2;
vMTSObject.OleProcedure("RetKey",
v0, v1);
v0 is input value.
v1 is return value.
I try use OleFunction or OlePropertyGet,
All fail.
Help
Re: Call Mts Component builded by VC6
Author: Harold Howe [TeamB]
Date: Wed, 19 May 1999 00:00
Date: Wed, 19 May 1999 00:00
21 lines
1127 bytes
1127 bytes
> Variant vResult;
> Variant vMTSObject = CreateOleObject("PMTSIDObject.IDServer");
> Variant v0,v1;
> v0 =2;
> vMTSObject.OleProcedure("RetKey",
> v0, v1);
>
> v0 is input value.
> v1 is return value.
>
> I try use OleFunction or OlePropertyGet,
> All fail.
Does the COM object have a type library that you can import? That way,
you can call the object directly instead of going through IDispatch. How
do you call the MTS object from VC6? With IDispatch, or through the
vtable?
Harold Howe [TeamB]
http://www.bcbdev.com
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads