Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

COMSDK with SP4?

105 views
Skip to first unread message

Carlos Rocha

unread,
Apr 24, 2013, 10:29:28 PM4/24/13
to
Hi,

I'm trying COMSDK2816 with SP4 but I cant even make a simple thing like

//---------------------------
LOCAL oComObject AS TS_DelegateDispatchAuto

oComObject := TS_DelegateDispatch{NIL, "MyServer.MyObject"}
//-----------------------------


I get an error stating that '_TS_CoCreateInstance(...)<>S_OK', among a lot more things, like SubCode=>U4'305419896[0x12345678]'

The server exists and is registered (it's a test COM dll made with VB6).

As I don't have Outlook I can't test the provided samples
So, can anyone tell if it's possible to use COMSDK with SP4?

Thanks,
Carlos

Carlos Rocha

unread,
Apr 24, 2013, 10:45:43 PM4/24/13
to
Sorry,
oComObject := TS_DelegateDispatch is a typo, in my code it's
oComObject := TS_DelegateDispatchAuto(...

Jamal

unread,
Apr 25, 2013, 10:59:03 AM4/25/13
to
Hi Carlos,

Please see this thread:

https://groups.google.com/forum/?fromgroups#!searchin/comp.lang.clipper.visual-objects/
COMSDK%7Csort:relevance/comp.lang.clipper.visual-objects/bSHsmHuIWjM/JPuyu9NGnAsJ

(put URL on one line; my newsgroup would allow long lines!)


Related post:
>> " We recently contacted Frans with the same question and he said the
COMSDK would not work on VO 2.8 and that the OLE code in 2.8 has
improved so much that there was no longer the need to use the COMSDK
(in this case for OLE automation to Open Office).

We indeed solved it without the COMSDK.

Dick "
<<<

Jamal

"Carlos Rocha" wrote in message
news:9bc307e7-6eae-476f...@googlegroups.com...

Carlos Rocha

unread,
Apr 25, 2013, 11:41:14 AM4/25/13
to
>
> >> " We recently contacted Frans with the same question and he said the
> COMSDK would not work on VO 2.8 and that the OLE code in 2.8 has
> improved so much that there was no longer the need to use the COMSDK
> (in this case for OLE automation to Open Office).
>

Thanks Jamal

I'm aware of that thread (actually I posted there), but the way I read it is that COMSDK is not needed anymore to automate OpenOffice.

My problem is with COM Automation Events, Variant parameters, and ByteArrays.
In fact I can do everything I need using VB6, but I would like to give COMSDK a shot to not depend on any Visual Studio.

Thanks,
Carlos

Jamal

unread,
Apr 25, 2013, 12:28:18 PM4/25/13
to
Carlos,

I thought that VO COM generated code handles those types.

Personally I never needed COMSDK and I've dealt many with COM objects. The
fact that COMSDK is no longer developed, I would suggest that you do not
waste your time trying to figure it out (unless the developers jump in and
try to help).

Have you tried generating the COM object code in VO and use it?
What sort of results are you getting?

Jamal

"Carlos Rocha" wrote in message
news:ca7a4634-631b-403b...@googlegroups.com...

Carlos Rocha

unread,
Apr 25, 2013, 1:58:53 PM4/25/13
to
Jamal,

> I thought that VO COM generated code handles those types.

More or less, but with a few limitations. The more importants are:

1. one can't change a variant value passed by ref, what makes impossible e.g. Cancel an operation from an event (it works if the parameter is a boolean).

2. The only way to receive byte arrays is by changing it to a string (there's a function for that, thanks to Robert), but there's no way to pass a byte array to a COM object.

> Personally I never needed COMSDK and I've dealt many with COM objects. The
> fact that COMSDK is no longer developed, I would suggest that you do not
> waste your time trying to figure it out (unless the developers jump in and
> try to help).

Well, the code is there (except for CPU2800) and if it works I could give it a try. I think I will install 2.7 again and see what happens. My stubbornness is stronger than me :)

> Have you tried generating the COM object code in VO and use it?

Yes, and almost everything works fine. I need to change the generated code sometimes tho, but that's easy when one learn where to touch.
But the fact is that I still depend on VB6 to make everything work (there are even some tricky COM dlls to whom VO generates no code at all).

Carlos

Jamal

unread,
Apr 29, 2013, 3:47:40 PM4/29/13
to
Carols,

I always admired VB6 even though it's old technology now that it could
handle COM objects very elegantly and VO's way lacked the same ease of use.
Sorry I could not help in this case.

Jamal

"Carlos Rocha" wrote in message
news:c0e7a04a-67f2-4c8b...@googlegroups.com...
0 new messages