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.

R0032: Name not found Error at line 11

4 posts in Objects Last posting was on 2007-02-23 14:39:44.0Z
TRAX Posted on 2007-02-21 21:32:53.0Z
Sender: b5f.45dcb866.1804289383@sybase.com
From: TRAX
Newsgroups: sybase.public.powerbuilder.objects
Subject: R0032: Name not found Error at line 11
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <45dcba85.c15.1681692777@sybase.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="-=_forums-1-dub45dcba85"
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 21 Feb 2007 13:32:53 -0800
X-Trace: forums-1-dub 1172093573 10.22.241.41 (21 Feb 2007 13:32:53 -0800)
X-Original-Trace: 21 Feb 2007 13:32:53 -0800, 10.22.241.41
Lines: 4265
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9241
Article PK: 736431

Does anybody know what this error means and how to fix it.
See attach.

pdfobj = create oleobject

li_rc = pdfobj.ConnectToNewObject("CDIntfNet.CDintfDll")
MessageBox("Connect", String(li_rc))

pdfobj.DriverInit(PrinterName)<--Line 11
pdfobj.EnablePrinter(LicensedTo, ActivationCode)

pdfobj.GetLastErrorMsg()
pdfobj.SetDefaultPrinter

pdfobj.DefaultFileName = OutputFile
pdfobj.FileNameOptionsEx = NoPrompt + UseFileName +
Linearize

pdfobj.EnablePrinter(LicensedTo, ActivationCode)
dw_main.print()

pdfobj.RestoreDefaultPrinter
pdfobj.FileNameOptions = 0

Destroy pdfobj

R0032.bmp

Brad Wery[TeamSybase] Posted on 2007-02-23 14:39:44.0Z
From: "Brad Wery[TeamSybase]" <bradweryatagricoreunited.com>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: R0032: Name not found Error at line 11
References: <45dcba85.c15.1681692777@sybase.com>
In-Reply-To: <45dcba85.c15.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: ugg10.unitedgrain.ca
X-Original-NNTP-Posting-Host: ugg10.unitedgrain.ca
Message-ID: <45defcb0$1@forums-1-dub>
Date: 23 Feb 2007 06:39:44 -0800
X-Trace: forums-1-dub 1172241584 165.23.247.49 (23 Feb 2007 06:39:44 -0800)
X-Original-Trace: 23 Feb 2007 06:39:44 -0800, ugg10.unitedgrain.ca
Lines: 42
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9245
Article PK: 736403

What it's saying is that it can't find DriverInit in
CDIntfNet.CDintfDll. Make sure that function exists in the object you're
using.

Brad

TRAX wrote:
> Does anybody know what this error means and how to fix it.
> See attach.
>
> pdfobj = create oleobject
>
> li_rc = pdfobj.ConnectToNewObject("CDIntfNet.CDintfDll")
> MessageBox("Connect", String(li_rc))
>
> pdfobj.DriverInit(PrinterName)<--Line 11
> pdfobj.EnablePrinter(LicensedTo, ActivationCode)
>
> pdfobj.GetLastErrorMsg()
> pdfobj.SetDefaultPrinter
>
> pdfobj.DefaultFileName = OutputFile
> pdfobj.FileNameOptionsEx = NoPrompt + UseFileName +
> Linearize
>
> pdfobj.EnablePrinter(LicensedTo, ActivationCode)
> dw_main.print()
>
> pdfobj.RestoreDefaultPrinter
> pdfobj.FileNameOptions = 0
>
> Destroy pdfobj
>
>
> ------------------------------------------------------------------------
>

--

Join the Advanced GUI Development project on CodeXchange
https://advanced-gui-development.codexchange.sybase.com/


Chris Werner Posted on 2007-02-22 09:27:33.0Z
From: "Chris Werner" <cwAT{PleaseNoSpam}f-s.de>
Newsgroups: sybase.public.powerbuilder.objects
References: <45dcba85.c15.1681692777@sybase.com>
Subject: Re: R0032: Name not found Error at line 11
Lines: 48
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 62.8.156.42
X-Original-NNTP-Posting-Host: 62.8.156.42
Message-ID: <45dd6205@forums-1-dub>
Date: 22 Feb 2007 01:27:33 -0800
X-Trace: forums-1-dub 1172136453 62.8.156.42 (22 Feb 2007 01:27:33 -0800)
X-Original-Trace: 22 Feb 2007 01:27:33 -0800, 62.8.156.42
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9242
Article PK: 736405

Hi,

the error message simply states that the method DriverInit(s) is
onknown for the oleObject.

What shows the messageBox after ConnectToNewObject? Should
be 0. Otherwise: Is the DLL registered using regsvr32.exe? Are you
sure that the ADC version and control name fitting together? I believe
in newer ADC versions the control is renamed to CDIntfEX.

If that is correct and the problem remains I'd try to use the ActiveX
as a control placing it on a window rather than creating it in a
olecontainer.

HTH

Chris Werner


<TRAX> schrieb im Newsbeitrag news:45dcba85.c15.1681692777@sybase.com...

> Does anybody know what this error means and how to fix it.
> See attach.
>
> pdfobj = create oleobject
>
> li_rc = pdfobj.ConnectToNewObject("CDIntfNet.CDintfDll")
> MessageBox("Connect", String(li_rc))
>
> pdfobj.DriverInit(PrinterName)<--Line 11
> pdfobj.EnablePrinter(LicensedTo, ActivationCode)
>
> pdfobj.GetLastErrorMsg()
> pdfobj.SetDefaultPrinter
>
> pdfobj.DefaultFileName = OutputFile
> pdfobj.FileNameOptionsEx = NoPrompt + UseFileName +
> Linearize
>
> pdfobj.EnablePrinter(LicensedTo, ActivationCode)
> dw_main.print()
>
> pdfobj.RestoreDefaultPrinter
> pdfobj.FileNameOptions = 0
>
> Destroy pdfobj
>