Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

OCXs in PB and Jag.

5 posts in General Discussion (old) Last posting was on 2000-03-02 23:57:34.0Z
Aaron Wollerton Posted on 2000-02-25 17:02:18.0Z
Newsgroups: sybase.public.easerver
From: "Aaron Wollerton" <aaron_wollerton@hotmail.com>
Subject: OCXs in PB and Jag.
Date: Fri, 25 Feb 2000 12:02:18 -0500
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: c206.135.nauticom.net 209.195.135.206
Message-ID: <347_WDPcTJ7f$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27802
Article PK: 159153

Hi Everyone,

I've got a quandry on my hands.

I have an OCX that we use to generate all our charts for our app. (The OCX
is TideStone's FirstImpression) I would like to create an NVO in PB that
creates an instance of the OCX, draws whatever chart I need, saves it to
disk, then passes back the path to the file. The idea is, then I can deploy
the NVO to Jag and generate the same charts for our Web-Client users as for
our traditional client users.

But, I'm running into a couple of roadblocks. The first, and most serious
is, if, on my NVO, I have an instance variable of type oleobject or anything
decended from it, I can't deploy that NVO to Jag. The project begins its
incremental rebuild, then simply stops before generating any IDLs, PBDs or
anything. And I don't get any error messages either. It just stops without
explanation. If I remove the problem NVO from the deploy list, the build
completes successfully. If I comment out all references to the oleobject
instance variable, the NVO also deploys just fine. It's gotta be the
oleobject instance variable....

Second, I've tried creating an object in package for the OCX by right
clicking on the package and selecting "Install Component." I choose an
ActiveX and point it to the OCX file (it doesn't have a tlb) Then I get the
error "ERROR: unable to retrieve ProgID for the COCLASS with the CLSID of
(2334D2B2-713E-11CF-8AE5-00AA00C00905). HRESULT is 0x80040154."

Am I trying the impossible here, am I missing something, or am I simply on
the wrong path?

-Aaron Wollerton
Aliah, Inc.


Reed Shilts Posted on 2000-03-02 23:57:34.0Z
Newsgroups: sybase.public.easerver
Date: Thu, 02 Mar 2000 18:57:34 -0500
From: Reed Shilts <nospam@sybase.com>
Organization: PowerBuilder & PowerJ Kernel Group
X-Mailer: Mozilla 4.5 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: OCXs in PB and Jag.
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 48
NNTP-Posting-Host: bigreed.sybase.com 199.93.181.155
Message-ID: <347_38BEFFEE.EB065B1A@sybase.com>
References: <347_WDPcTJ7f$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27277
Article PK: 154516

I really have my doubts a _visual_ control, like an OCX, will ever
work in a server environment...
Regards,
Reed Shilts
PowerBuilder / PowerJ Kernel Group
***Nothing I Say Is Official***

Aaron Wollerton wrote:

> Hi Everyone,
>
> I've got a quandry on my hands.
>
> I have an OCX that we use to generate all our charts for our app. (The OCX
> is TideStone's FirstImpression) I would like to create an NVO in PB that
> creates an instance of the OCX, draws whatever chart I need, saves it to
> disk, then passes back the path to the file. The idea is, then I can deploy
> the NVO to Jag and generate the same charts for our Web-Client users as for
> our traditional client users.
>
> But, I'm running into a couple of roadblocks. The first, and most serious
> is, if, on my NVO, I have an instance variable of type oleobject or anything
> decended from it, I can't deploy that NVO to Jag. The project begins its
> incremental rebuild, then simply stops before generating any IDLs, PBDs or
> anything. And I don't get any error messages either. It just stops without
> explanation. If I remove the problem NVO from the deploy list, the build
> completes successfully. If I comment out all references to the oleobject
> instance variable, the NVO also deploys just fine. It's gotta be the
> oleobject instance variable....
>
> Second, I've tried creating an object in package for the OCX by right
> clicking on the package and selecting "Install Component." I choose an
> ActiveX and point it to the OCX file (it doesn't have a tlb) Then I get the
> error "ERROR: unable to retrieve ProgID for the COCLASS with the CLSID of
> (2334D2B2-713E-11CF-8AE5-00AA00C00905). HRESULT is 0x80040154."
>
> Am I trying the impossible here, am I missing something, or am I simply on
> the wrong path?
>
> -Aaron Wollerton
> Aliah, Inc.


Jim O'Neil [Sybase] Posted on 2000-02-25 18:07:57.0Z
Newsgroups: sybase.public.easerver
Date: Fri, 25 Feb 2000 13:07:57 -0500
From: "Jim O'Neil [Sybase]" <joneil@sybase.com>
Organization: Sybase, Inc.
X-Mailer: Mozilla 4.7 [en]C-CCK-MCD (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: OCXs in PB and Jag.
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 51
NNTP-Posting-Host: joneil-nt.sybase.com 204.167.42.111
Message-ID: <347_38B6C4FD.CF1DD81@sybase.com>
References: <347_WDPcTJ7f$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27790
Article PK: 154585


Aaron Wollerton wrote:

> Hi Everyone,
>
> I've got a quandry on my hands.
>
> I have an OCX that we use to generate all our charts for our app. (The OCX
> is TideStone's FirstImpression) I would like to create an NVO in PB that
> creates an instance of the OCX, draws whatever chart I need, saves it to
> disk, then passes back the path to the file. The idea is, then I can deploy
> the NVO to Jag and generate the same charts for our Web-Client users as for
> our traditional client users.
>
> But, I'm running into a couple of roadblocks. The first, and most serious
> is, if, on my NVO, I have an instance variable of type oleobject or anything
> decended from it, I can't deploy that NVO to Jag. The project begins its
> incremental rebuild, then simply stops before generating any IDLs, PBDs or
> anything. And I don't get any error messages either. It just stops without
> explanation. If I remove the problem NVO from the deploy list, the build
> completes successfully. If I comment out all references to the oleobject
> instance variable, the NVO also deploys just fine. It's gotta be the
> oleobject instance variable....
>
> Second, I've tried creating an object in package for the OCX by right
> clicking on the package and selecting "Install Component." I choose an
> ActiveX and point it to the OCX file (it doesn't have a tlb) Then I get the
> error "ERROR: unable to retrieve ProgID for the COCLASS with the CLSID of
> (2334D2B2-713E-11CF-8AE5-00AA00C00905). HRESULT is 0x80040154."
>
> Am I trying the impossible here, am I missing something, or am I simply on
> the wrong path?
>
> -Aaron Wollerton
> Aliah, Inc.

With regard to the oleobject instance variable preventing the deployment, have
you scoped it to be private or protected? It definitely won't work if it's
public (the default), but I would have expected you to get an error message
indicating that when trying to deploy.
--
Jim O'Neil
Senior Technical Support Engineer
Sybase, Inc


Aaron Wollerton Posted on 2000-02-25 19:22:15.0Z
Newsgroups: sybase.public.easerver
From: "Aaron Wollerton" <aaron_wollerton@hotmail.com>
Subject: Re: OCXs in PB and Jag.
Date: Fri, 25 Feb 2000 14:22:15 -0500
Lines: 81
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: c206.135.nauticom.net 209.195.135.206
Message-ID: <347_KBqTfX8f$GA.202@forums.sybase.com>
References: <347_WDPcTJ7f$GA.201@forums.sybase.com> <347_38B6C4FD.CF1DD81@sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27782
Article PK: 159138

Jim,

Thanks, that was it. I had it scoped PUBLIC instead of PRIVATE. But there
was no error message. Should I submit that as a bug?

An additional question, if I may. Other than having the OCX installed on
the same machine as the Jaguar Server, will I need to do anything else to
use the OCX within the NVO. In other words, will I have to install the OCX
as a component within Jag, and if so, how? I had no success on my previous
attempt (see below....)

-Aaron Wollerton
Director of Software Engineering
Aliah, Inc.
www.aliah.com

"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
news:38B6C4FD.CF1DD81@sybase.com...
> Aaron Wollerton wrote:
>
> > Hi Everyone,
> >
> > I've got a quandry on my hands.
> >
> > I have an OCX that we use to generate all our charts for our app. (The
OCX
> > is TideStone's FirstImpression) I would like to create an NVO in PB
that
> > creates an instance of the OCX, draws whatever chart I need, saves it to
> > disk, then passes back the path to the file. The idea is, then I can
deploy
> > the NVO to Jag and generate the same charts for our Web-Client users as
for
> > our traditional client users.
> >
> > But, I'm running into a couple of roadblocks. The first, and most
serious
> > is, if, on my NVO, I have an instance variable of type oleobject or
anything
> > decended from it, I can't deploy that NVO to Jag. The project begins
its
> > incremental rebuild, then simply stops before generating any IDLs, PBDs
or
> > anything. And I don't get any error messages either. It just stops
without
> > explanation. If I remove the problem NVO from the deploy list, the build
> > completes successfully. If I comment out all references to the
oleobject
> > instance variable, the NVO also deploys just fine. It's gotta be the
> > oleobject instance variable....
> >
> > Second, I've tried creating an object in package for the OCX by right
> > clicking on the package and selecting "Install Component." I choose an
> > ActiveX and point it to the OCX file (it doesn't have a tlb) Then I get
the
> > error "ERROR: unable to retrieve ProgID for the COCLASS with the CLSID
of
> > (2334D2B2-713E-11CF-8AE5-00AA00C00905). HRESULT is 0x80040154."
> >
> > Am I trying the impossible here, am I missing something, or am I simply
on
> > the wrong path?
> >
> > -Aaron Wollerton
> > Aliah, Inc.
>
> With regard to the oleobject instance variable preventing the deployment,
have
> you scoped it to be private or protected? It definitely won't work if
it's
> public (the default), but I would have expected you to get an error
message
> indicating that when trying to deploy.
> --
> Jim O'Neil
> Senior Technical Support Engineer
> Sybase, Inc
>
>


Jim O'Neil [Sybase] Posted on 2000-02-25 22:29:48.0Z
Newsgroups: sybase.public.easerver
Date: Fri, 25 Feb 2000 17:29:48 -0500
From: "Jim O'Neil [Sybase]" <joneil@sybase.com>
Organization: Sybase, Inc.
X-Mailer: Mozilla 4.7 [en]C-CCK-MCD (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: OCXs in PB and Jag.
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 28
NNTP-Posting-Host: joneil-nt.sybase.com 204.167.42.111
Message-ID: <347_38B7025B.4948E1A@sybase.com>
References: <347_WDPcTJ7f$GA.201@forums.sybase.com> <347_38B6C4FD.CF1DD81@sybase.com> <347_KBqTfX8f$GA.202@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27768
Article PK: 159121


Aaron Wollerton wrote:

> Jim,
>
> Thanks, that was it. I had it scoped PUBLIC instead of PRIVATE. But there
> was no error message. Should I submit that as a bug?
>
> An additional question, if I may. Other than having the OCX installed on
> the same machine as the Jaguar Server, will I need to do anything else to
> use the OCX within the NVO. In other words, will I have to install the OCX
> as a component within Jag, and if so, how? I had no success on my previous
> attempt (see below....)
>
> -Aaron Wollerton
> Director of Software Engineering
> Aliah, Inc.
> www.aliah.com
>

Could be a bug, I suppose - did you have the Jaguar validation flag turned on?
I'm not sure if turning it off would hide the messages or not. Frankly, I would
expect it to be taken with somewhat low priority anyway.

As for the OCX, you would be using it as an OCX just from the PB component,
right? so Jaguar doesn't need to know it exists at all. Just register it on the
Jaguar machine and it should work fine.
--
Jim O'Neil
Senior Technical Support Engineer
Sybase, Inc