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.

'Sybase.PowerBuilder.PBOleObject' - winform error

6 posts in .NET Winform Last posting was on 2008-11-24 20:09:09.0Z
Kumar Posted on 2008-11-24 15:49:50.0Z
Sender: 91c.492acb23.1804289383@sybase.com
From: Kumar
Newsgroups: sybase.public.powerbuilder.net.winform
Subject: 'Sybase.PowerBuilder.PBOleObject' - winform error
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <492acd1e.980.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 24 Nov 2008 07:49:50 -0800
X-Trace: forums-1-dub 1227541790 10.22.241.41 (24 Nov 2008 07:49:50 -0800)
X-Original-Trace: 24 Nov 2008 07:49:50 -0800, 10.22.241.41
Lines: 29
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.net.winform:729
Article PK: 707466

I am trying to convert my PB11.2 application to .net
winform. when deploy/migrate i am getting the following
error messages

Error when compiling generated C# code:
=======================================
n_npfitwsc_manager.destructor(25,95): error CS0117:
'Sybase.PowerBuilder.PBOleObject' does not contain a
definition for 'Value'

For the above error message i have the following code
[Instance Variable]
OLEObject iole_XXXXX

[Function()]
IF not isvalid(iole_XXXX) then
iole_XXXX = create oleobject
li_result = iole_XXXX.ConnectToNewObject(is_XXXXclass)
End If

[destructor]
IF Isvalid(iole_XXXXX) THEN
destroy(iole_XXXXX)
END IF
=========================================
The below error i am not sure on it.
n_cst_platformwin32(131,19): error CS0030: Cannot convert
type 'c__n_cst_platformwin32.c__os_memorystatus_ansi' to
'T0'


Kumar Posted on 2008-11-24 16:09:04.0Z
Sender: 91c.492acb23.1804289383@sybase.com
From: Kumar
Newsgroups: sybase.public.powerbuilder.net.winform
Subject: Add: 'Sybase.PowerBuilder.PBOleObject' - winform error
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <492ad1a0.a65.1681692777@sybase.com>
References: <492acd1e.980.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 24 Nov 2008 08:09:04 -0800
X-Trace: forums-1-dub 1227542944 10.22.241.41 (24 Nov 2008 08:09:04 -0800)
X-Original-Trace: 24 Nov 2008 08:09:04 -0800, 10.22.241.41
Lines: 32
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.net.winform:730
Article PK: 707461


> I am trying to convert my PB11.2 application to .net
> winform. when deploy/migrate i am getting the following
> error messages
>
> Error when compiling generated C# code:
> =======================================
> n_npfitwsc_manager.destructor(25,95): error CS0117:
> 'Sybase.PowerBuilder.PBOleObject' does not contain a
> definition for 'Value'
>
> For the above error message i have the following code
> [Instance Variable]
> OLEObject iole_XXXXX
>
> [Function()]
> IF not isvalid(iole_XXXX) then
> iole_XXXX = create oleobject
> li_result = iole_XXXX.ConnectToNewObject(is_XXXXclass)
> End If
>
> [destructor]
> IF Isvalid(iole_XXXXX) THEN
> destroy(iole_XXXXX)
> END IF
> =========================================
> The below error i am not sure on it.

n_cst_filesrvwin32(27,62): error CS0029: Cannot implicitly
convert type 'T1' to
'c__n_cst_filesrvwin32.c__os_finddata_ansi'
n_cst_filesrvwin32(30,19): error CS0030: Cannot convert type
'c__n_cst_filesrvwin32.c__os_finddata_ansi' to 'T1'


Bruce Armstrong [TeamSybase] Posted on 2008-11-24 16:26:27.0Z
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Newsgroups: sybase.public.powerbuilder.net.winform
References: <492acd1e.980.1681692777@sybase.com> <492ad1a0.a65.1681692777@sybase.com>
Subject: Re: 'Sybase.PowerBuilder.PBOleObject' - winform error
Lines: 45
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <492ad5b3$1@forums-1-dub>
Date: 24 Nov 2008 08:26:27 -0800
X-Trace: forums-1-dub 1227543987 10.22.241.152 (24 Nov 2008 08:26:27 -0800)
X-Original-Trace: 24 Nov 2008 08:26:27 -0800, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.net.winform:731
Article PK: 707469

FWIW, when you respond to your own message you give people the impression
it's been answered already, and they're less inclined to respond to it
themselves.

I can help with the later perhaps. I'd guess that you've got an explicit
attempt to create n_cst_filesrvwin32 someplace. Since PB10 and beyond is
Unicode, you need filesrvunicode. If you use the f_SetFilesrv function, it
would create the appropriate one for you.

<Kumar> wrote in message news:492ad1a0.a65.1681692777@sybase.com...
>> I am trying to convert my PB11.2 application to .net
>> winform. when deploy/migrate i am getting the following
>> error messages
>>
>> Error when compiling generated C# code:
>> =======================================
>> n_npfitwsc_manager.destructor(25,95): error CS0117:
>> 'Sybase.PowerBuilder.PBOleObject' does not contain a
>> definition for 'Value'
>>
>> For the above error message i have the following code
>> [Instance Variable]
>> OLEObject iole_XXXXX
>>
>> [Function()]
>> IF not isvalid(iole_XXXX) then
>> iole_XXXX = create oleobject
>> li_result = iole_XXXX.ConnectToNewObject(is_XXXXclass)
>> End If
>>
>> [destructor]
>> IF Isvalid(iole_XXXXX) THEN
>> destroy(iole_XXXXX)
>> END IF
>> =========================================
>> The below error i am not sure on it.
>
> n_cst_filesrvwin32(27,62): error CS0029: Cannot implicitly
> convert type 'T1' to
> 'c__n_cst_filesrvwin32.c__os_finddata_ansi'
> n_cst_filesrvwin32(30,19): error CS0030: Cannot convert type
> 'c__n_cst_filesrvwin32.c__os_finddata_ansi' to 'T1'