Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #5150 > unrolled thread

COMSDK with SP4?

Started byCarlos Rocha <jazzda1307@gmail.com>
First post2013-04-24 19:29 -0700
Last post2013-04-29 15:47 -0400
Articles 7 — 2 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  COMSDK with SP4? Carlos Rocha <jazzda1307@gmail.com> - 2013-04-24 19:29 -0700
    Re: COMSDK with SP4? Carlos Rocha <jazzda1307@gmail.com> - 2013-04-24 19:45 -0700
    Re: COMSDK with SP4? "Jamal" <jamal@examples.net> - 2013-04-25 10:59 -0400
      Re: COMSDK with SP4? Carlos Rocha <jazzda1307@gmail.com> - 2013-04-25 08:41 -0700
        Re: COMSDK with SP4? "Jamal" <jamal@examples.net> - 2013-04-25 12:28 -0400
          Re: COMSDK with SP4? Carlos Rocha <jazzda1307@gmail.com> - 2013-04-25 10:58 -0700
            Re: COMSDK with SP4? "Jamal" <jamal@examples.net> - 2013-04-29 15:47 -0400

#5150 — COMSDK with SP4?

FromCarlos Rocha <jazzda1307@gmail.com>
Date2013-04-24 19:29 -0700
SubjectCOMSDK with SP4?
Message-ID<9bc307e7-6eae-476f-9491-01ca7a740575@googlegroups.com>
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

[toc] | [next] | [standalone]


#5151

FromCarlos Rocha <jazzda1307@gmail.com>
Date2013-04-24 19:45 -0700
Message-ID<519d130f-39c5-4742-825b-1a4b2cae87a0@googlegroups.com>
In reply to#5150
Sorry, 
oComObject := TS_DelegateDispatch is a typo, in my code it's 
oComObject := TS_DelegateDispatchAuto(...

[toc] | [prev] | [next] | [standalone]


#5152

From"Jamal" <jamal@examples.net>
Date2013-04-25 10:59 -0400
Message-ID<klbgbt$fl$2@speranza.aioe.org>
In reply to#5150
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-9491-01ca7a740575@googlegroups.com...

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 

[toc] | [prev] | [next] | [standalone]


#5153

FromCarlos Rocha <jazzda1307@gmail.com>
Date2013-04-25 08:41 -0700
Message-ID<ca7a4634-631b-403b-8a12-b26fbc398dc4@googlegroups.com>
In reply to#5152
> 
> >> " 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

[toc] | [prev] | [next] | [standalone]


#5154

From"Jamal" <jamal@examples.net>
Date2013-04-25 12:28 -0400
Message-ID<klblj8$fka$1@speranza.aioe.org>
In reply to#5153
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-8a12-b26fbc398dc4@googlegroups.com...

>
> >> " 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 

[toc] | [prev] | [next] | [standalone]


#5155

FromCarlos Rocha <jazzda1307@gmail.com>
Date2013-04-25 10:58 -0700
Message-ID<c0e7a04a-67f2-4c8b-a29b-65ad85bb14a7@googlegroups.com>
In reply to#5154
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

[toc] | [prev] | [next] | [standalone]


#5173

From"Jamal" <jamal@examples.net>
Date2013-04-29 15:47 -0400
Message-ID<klmiot$3m0$1@speranza.aioe.org>
In reply to#5155
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-a29b-65ad85bb14a7@googlegroups.com...

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 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web