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.

PB7 and FTP with wininet.dll

7 posts in Internet Developers Toolkit Last posting was on 2001-07-05 16:29:01.0Z
Alexander Wüst Posted on 2001-07-03 14:20:30.0Z
Newsgroups: sybase.public.powerbuilder.inet-dev-toolkit
From: "Alexander Wüst" <alexander.wuest@bertelsmann.de>
Subject: PB7 and FTP with wininet.dll
Date: Tue, 3 Jul 2001 16:20:30 +0200
Lines: 13
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 145.228.124.236
Message-ID: <388_aF9Jk58ABHA.228@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.inet-dev-toolkit:282
Article PK: 691628

Hi,

is there an example how to download a file via ftp using the
InternetReadFile-
Function. It seems to work fine but the downloaded file is corrupt. I think
it's a
problem with the buffer i use or how i use it.
It works fine with FtpGetFile but i want to show a progress bar...

Thanks
Alex


Bruce Armstrong [TeamSybase] Posted on 2001-07-03 15:58:46.0Z
Newsgroups: sybase.public.powerbuilder.inet-dev-toolkit
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Organization: TeamSybase [12.13.238.137]
X-Newsreader: AspNNTP 1.50 (Advent 2000, Inc.)
Subject: Re: PB7 and FTP with wininet.dll
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Date: Tue, 03 Jul 2001 11:58:46 -0400
Lines: 19
NNTP-Posting-Host: 207.156.232.111
Message-ID: <388_7nvnKk9ABHA.205@forums.sybase.com>
References: <388_aF9Jk58ABHA.228@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.inet-dev-toolkit:281
Article PK: 691621

http://www.pfcguide.com/extensions/ext_0016.asp

On Tue, 3 Jul 2001 16:20:30 +0200,
in powersoft.public.powerbuilder.inet-dev-toolkit

Alexander Wüst <alexander.wuest@bertelsmann.de> wrote:
>Hi,
>
>is there an example how to download a file via ftp using the
>InternetReadFile-
>Function. It seems to work fine but the downloaded file is corrupt. I think
>it's a
>problem with the buffer i use or how i use it.
>It works fine with FtpGetFile but i want to show a progress bar...
>
>Thanks
>Alex
>
>

Bruce Armstrong [TeamSybase]
http://cgi.exp.com/noauth/advisor_profile.cgi?adv_id=510977
http://www.needhim.org

---== Posted via the PFCGuide Web Newsreader ==---
http://www.pfcguide.com/_newsgroups/group_list.asp


bobot Posted on 2001-07-04 01:31:33.0Z
Newsgroups: sybase.public.powerbuilder.inet-dev-toolkit
From: "bobot" <bobot@aspacmanila.com.ph>
Subject: Re: PB7 and FTP with wininet.dll
Date: Wed, 4 Jul 2001 09:31:33 +0800
Lines: 40
X-Newsreader: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
NNTP-Posting-Host: 203.87.133.22
Message-ID: <388_MeFgFvCBBHA.205@forums.sybase.com>
References: <388_aF9Jk58ABHA.228@forums.sybase.com> <388_7nvnKk9ABHA.205@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.inet-dev-toolkit:280
Article PK: 691626

Hi,

I already see this sample and work fine with PFC, Is there any same
functions without using PFC.

Hope you could help with this

Thanks
Robert

Bruce Armstrong [TeamSybase] wrote in message
<7nvnKk9ABHA.205@forums.sybase.com>...
>http://www.pfcguide.com/extensions/ext_0016.asp
>
>On Tue, 3 Jul 2001 16:20:30 +0200,
> in powersoft.public.powerbuilder.inet-dev-toolkit
>Alexander Wüst <alexander.wuest@bertelsmann.de> wrote:
>>Hi,
>>
>>is there an example how to download a file via ftp using the
>>InternetReadFile-
>>Function. It seems to work fine but the downloaded file is corrupt. I
think
>>it's a
>>problem with the buffer i use or how i use it.
>>It works fine with FtpGetFile but i want to show a progress bar...
>>
>>Thanks
>>Alex
>>
>>
>
>Bruce Armstrong [TeamSybase]
>http://cgi.exp.com/noauth/advisor_profile.cgi?adv_id=510977
>http://www.needhim.org
>
>---== Posted via the PFCGuide Web Newsreader ==---
>http://www.pfcguide.com/_newsgroups/group_list.asp


Bruce Armstrong [TeamSybase] Posted on 2001-07-05 15:35:51.0Z
Newsgroups: sybase.public.powerbuilder.inet-dev-toolkit
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Organization: TeamSybase [12.13.238.141]
X-Newsreader: AspNNTP 1.50 (Advent 2000, Inc.)
Subject: Re: PB7 and FTP with wininet.dll
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Date: Thu, 05 Jul 2001 11:35:51 -0400
Lines: 41
NNTP-Posting-Host: 207.156.232.111
Message-ID: <388_gToIsgWBBHA.286@forums.sybase.com>
References: <388_aF9Jk58ABHA.228@forums.sybase.com> <388_7nvnKk9ABHA.205@forums.sybase.com> <388_MeFgFvCBBHA.205@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.inet-dev-toolkit:276
Article PK: 691609

Just take what Roy does there, find out which portions are dependant on the
PFC, and write your own stuff to replace it. Often I do that by 'borrowing'
the PFC functions being called....

On Wed, 4 Jul 2001 09:31:33 +0800,
in powersoft.public.powerbuilder.inet-dev-toolkit

bobot <bobot@aspacmanila.com.ph> wrote:
>Hi,
>
>I already see this sample and work fine with PFC, Is there any same
>functions without using PFC.
>
>Hope you could help with this
>
>Thanks
>Robert
>
>Bruce Armstrong [TeamSybase] wrote in message
><7nvnKk9ABHA.205@forums.sybase.com>...
>>http://www.pfcguide.com/extensions/ext_0016.asp
>>
>>On Tue, 3 Jul 2001 16:20:30 +0200,
>> in powersoft.public.powerbuilder.inet-dev-toolkit
>>Alexander Wüst <alexander.wuest@bertelsmann.de> wrote:
>>>Hi,
>>>
>>>is there an example how to download a file via ftp using the
>>>InternetReadFile-
>>>Function. It seems to work fine but the downloaded file is corrupt. I
>think
>>>it's a
>>>problem with the buffer i use or how i use it.
>>>It works fine with FtpGetFile but i want to show a progress bar...
>>>
>>>Thanks
>>>Alex
>>>
>>>
>>
>>Bruce Armstrong [TeamSybase]
>>http://cgi.exp.com/noauth/advisor_profile.cgi?adv_id=510977
>>http://www.needhim.org
>>
>>---== Posted via the PFCGuide Web Newsreader ==---
>>http://www.pfcguide.com/_newsgroups/group_list.asp
>
>

Bruce Armstrong [TeamSybase]
http://cgi.exp.com/noauth/advisor_profile.cgi?adv_id=510977
http://www.needhim.org

---== Posted via the PFCGuide Web Newsreader ==---
http://www.pfcguide.com/_newsgroups/group_list.asp


Roy Kiesler [TeamSybase] Posted on 2001-07-05 16:29:01.0Z
Newsgroups: sybase.public.powerbuilder.inet-dev-toolkit
From: "Roy Kiesler [TeamSybase]" <SPAM_FREE_roy.kiesler@teamsybase.com>
Subject: Re: PB7 and FTP with wininet.dll
Date: Thu, 5 Jul 2001 12:29:01 -0400
Lines: 71
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2479.0006
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2479.0006
NNTP-Posting-Host: net2host226.percussion.com 38.164.160.226
Message-ID: <388_BN30POXBBHA.259@forums.sybase.com>
References: <388_aF9Jk58ABHA.228@forums.sybase.com> <388_7nvnKk9ABHA.205@forums.sybase.com> <388_MeFgFvCBBHA.205@forums.sybase.com> <388_gToIsgWBBHA.286@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.inet-dev-toolkit:275
Article PK: 691604

If you export the base WININET object and change the inheritence from
"n_base" to "nonvisualobject", redeclare the instance variables for
SUCCESS(1), FAILURE(-1) and NOACTION(0), you should be safe in native PB
land...

--
<hopethishelps />
Roy Kiesler [TeamSybase]
mySybase -- http://my.sybase.com
http://cgi.exp.com/noauth/advisor_profile.cgi?adv_id=512231

"Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>

wrote in message news:gToIsgWBBHA.286@forums.sybase.com...
> Just take what Roy does there, find out which portions are dependant on
the
> PFC, and write your own stuff to replace it. Often I do that by
'borrowing'
> the PFC functions being called....
>
> On Wed, 4 Jul 2001 09:31:33 +0800,
> in powersoft.public.powerbuilder.inet-dev-toolkit
> bobot <bobot@aspacmanila.com.ph> wrote:
> >Hi,
> >
> >I already see this sample and work fine with PFC, Is there any same
> >functions without using PFC.
> >
> >Hope you could help with this
> >
> >Thanks
> >Robert
> >
> >Bruce Armstrong [TeamSybase] wrote in message
> ><7nvnKk9ABHA.205@forums.sybase.com>...
> >>http://www.pfcguide.com/extensions/ext_0016.asp
> >>
> >>On Tue, 3 Jul 2001 16:20:30 +0200,
> >> in powersoft.public.powerbuilder.inet-dev-toolkit
> >>Alexander Wüst <alexander.wuest@bertelsmann.de> wrote:
> >>>Hi,
> >>>
> >>>is there an example how to download a file via ftp using the
> >>>InternetReadFile-
> >>>Function. It seems to work fine but the downloaded file is corrupt. I
> >think
> >>>it's a
> >>>problem with the buffer i use or how i use it.
> >>>It works fine with FtpGetFile but i want to show a progress bar...
> >>>
> >>>Thanks
> >>>Alex
> >>>
> >>>
> >>
> >>Bruce Armstrong [TeamSybase]
> >>http://cgi.exp.com/noauth/advisor_profile.cgi?adv_id=510977
> >>http://www.needhim.org
> >>
> >>---== Posted via the PFCGuide Web Newsreader ==---
> >>http://www.pfcguide.com/_newsgroups/group_list.asp
> >
> >
>
> Bruce Armstrong [TeamSybase]
> http://cgi.exp.com/noauth/advisor_profile.cgi?adv_id=510977
> http://www.needhim.org
>
> ---== Posted via the PFCGuide Web Newsreader ==---
> http://www.pfcguide.com/_newsgroups/group_list.asp


Alexander Wüst Posted on 2001-07-04 07:35:14.0Z
Newsgroups: sybase.public.powerbuilder.inet-dev-toolkit
From: "Alexander Wüst" <alexander.wuest@bertelsmann.de>
Subject: Re: PB7 and FTP with wininet.dll
Date: Wed, 4 Jul 2001 09:35:14 +0200
Lines: 60
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 145.228.124.236
Message-ID: <388_d#syx7FBBHA.260@forums.sybase.com>
References: <388_aF9Jk58ABHA.228@forums.sybase.com> <388_7nvnKk9ABHA.205@forums.sybase.com> <388_MeFgFvCBBHA.205@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.inet-dev-toolkit:279
Article PK: 691611

Hi,

you can use the DLL-Functions direct by declaring external functions:

e.g.
FUNCTION boolean InternetCloseHandle(ulong Internethandle) LIBRARY
"wininet.dll"

The Header-File can be found here
http://msdn.microsoft.com/downloads/samples/internet/libraries/ie5_lib/sampl
e.asp

Hope this helps.

Alex

bobot <bobot@aspacmanila.com.ph> wrote in message
news:MeFgFvCBBHA.205@forums.sybase.com...
> Hi,
>
> I already see this sample and work fine with PFC, Is there any same
> functions without using PFC.
>
> Hope you could help with this
>
> Thanks
> Robert
>
> Bruce Armstrong [TeamSybase] wrote in message
> <7nvnKk9ABHA.205@forums.sybase.com>...
> >http://www.pfcguide.com/extensions/ext_0016.asp
> >
> >On Tue, 3 Jul 2001 16:20:30 +0200,
> > in powersoft.public.powerbuilder.inet-dev-toolkit
> >Alexander Wüst <alexander.wuest@bertelsmann.de> wrote:
> >>Hi,
> >>
> >>is there an example how to download a file via ftp using the
> >>InternetReadFile-
> >>Function. It seems to work fine but the downloaded file is corrupt. I
> think
> >>it's a
> >>problem with the buffer i use or how i use it.
> >>It works fine with FtpGetFile but i want to show a progress bar...
> >>
> >>Thanks
> >>Alex
> >>
> >>
> >
> >Bruce Armstrong [TeamSybase]
> >http://cgi.exp.com/noauth/advisor_profile.cgi?adv_id=510977
> >http://www.needhim.org
> >
> >---== Posted via the PFCGuide Web Newsreader ==---
> >http://www.pfcguide.com/_newsgroups/group_list.asp
>
>


bobot Posted on 2001-07-04 12:40:28.0Z
Newsgroups: sybase.public.powerbuilder.inet-dev-toolkit
From: "bobot" <bobot@aspacmanila.com.ph>
Subject: Re: PB7 and FTP with wininet.dll
Date: Wed, 4 Jul 2001 20:40:28 +0800
Lines: 73
X-Newsreader: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
NNTP-Posting-Host: 203.87.133.22
Message-ID: <388_v3H7zkIBBHA.286@forums.sybase.com>
References: <388_aF9Jk58ABHA.228@forums.sybase.com> <388_7nvnKk9ABHA.205@forums.sybase.com> <388_MeFgFvCBBHA.205@forums.sybase.com> <388_d#syx7FBBHA.260@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.inet-dev-toolkit:277
Article PK: 691608

Hi,

Dont know how to incorporate this with PB7, can you teach us how to do it,
just give us a simple script or sample pbls. This will be a great help.

Thanks

Robert

Alexander Wüst wrote in message ...
>Hi,
>
>you can use the DLL-Functions direct by declaring external functions:
>
>e.g.
>FUNCTION boolean InternetCloseHandle(ulong Internethandle) LIBRARY
>"wininet.dll"
>
>The Header-File can be found here
>http://msdn.microsoft.com/downloads/samples/internet/libraries/ie5_lib/samp
l
>e.asp
>
>Hope this helps.
>
>Alex
>
>bobot <bobot@aspacmanila.com.ph> wrote in message
>news:MeFgFvCBBHA.205@forums.sybase.com...
>> Hi,
>>
>> I already see this sample and work fine with PFC, Is there any same
>> functions without using PFC.
>>
>> Hope you could help with this
>>
>> Thanks
>> Robert
>>
>> Bruce Armstrong [TeamSybase] wrote in message
>> <7nvnKk9ABHA.205@forums.sybase.com>...
>> >http://www.pfcguide.com/extensions/ext_0016.asp
>> >
>> >On Tue, 3 Jul 2001 16:20:30 +0200,
>> > in powersoft.public.powerbuilder.inet-dev-toolkit
>> >Alexander Wüst <alexander.wuest@bertelsmann.de> wrote:
>> >>Hi,
>> >>
>> >>is there an example how to download a file via ftp using the
>> >>InternetReadFile-
>> >>Function. It seems to work fine but the downloaded file is corrupt. I
>> think
>> >>it's a
>> >>problem with the buffer i use or how i use it.
>> >>It works fine with FtpGetFile but i want to show a progress bar...
>> >>
>> >>Thanks
>> >>Alex
>> >>
>> >>
>> >
>> >Bruce Armstrong [TeamSybase]
>> >http://cgi.exp.com/noauth/advisor_profile.cgi?adv_id=510977
>> >http://www.needhim.org
>> >
>> >---== Posted via the PFCGuide Web Newsreader ==---
>> >http://www.pfcguide.com/_newsgroups/group_list.asp
>>
>>
>
>