How to dial-up a modem using powerbuilder 11.5

Dear all,
I want to dial a modem to connect to the internet from powerbuilder 11.5, Is 
it posible to do this with powerbuilder.
TIA 


0
ekologi
2/23/2010 5:35:43 AM
sybase.powerbuilder.general 62418 articles. 18 followers. Follow

4 Replies
733 Views

Similar Articles

[PageSpeed] 54

I found http://www.rgagnon.com/pbdetails/pb-0021.html but it's pretty 
sparse - you'd have to look up that module in the Microsoft web site to 
figure out how to set up the "YourConnection".

http://www.pbdr.com/software/comp/rasdial.zip sounds interesting but I 
haven't looked inside it.

-- 
Report Bugs to Sybase:  http://case-express.sybase.com/cx/welcome.do
Product Enhancement Requests: 
http://my.isug.com/cgi-bin/1/c/submit_enhancement


"ekologi" <ebaskom@gmail.com> wrote in message news:4b83692f@forums-1-dub...
> Dear all,
> I want to dial a modem to connect to the internet from powerbuilder 11.5, 
> Is it posible to do this with powerbuilder.
> TIA
> 


0
Jerry
2/23/2010 4:44:32 PM
We use the attached userobject which uses the wininet.dll and 
rasapi32.dll

It allows you to dial an entry that you have set in your phonebook 
settings on the PC.

We use it like this:

String ls_rasentry
n_cst_wininet_ras lras

ls_rasentry      = 'AT&T Connection Service' //Name of the entry in 
the phonebook

//connect
lras.of_connect( ls_rasentry )

//Do stuff via the dialup connection (in our case it is send an e-mail 
via SMTP)

//disconnect
lras.of_disconnect( )


It has worked decently for some of the things we do where we need an 
external dialup internet connection.

Doug Porter
DailyAccess Corporation


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> wrote in 
message news:4b8405f0@forums-1-dub...
>I found http://www.rgagnon.com/pbdetails/pb-0021.html but it's pretty
> sparse - you'd have to look up that module in the Microsoft web site 
> to
> figure out how to set up the "YourConnection".
>
> http://www.pbdr.com/software/comp/rasdial.zip sounds interesting but 
> I
> haven't looked inside it.
>
> -- 
> Report Bugs to Sybase:  http://case-express.sybase.com/cx/welcome.do
> Product Enhancement Requests:
> http://my.isug.com/cgi-bin/1/c/submit_enhancement
>
>
> "ekologi" <ebaskom@gmail.com> wrote in message 
> news:4b83692f@forums-1-dub...
>> Dear all,
>> I want to dial a modem to connect to the internet from powerbuilder 
>> 11.5,
>> Is it posible to do this with powerbuilder.
>> TIA
>>
>
> 


begin 666 n_cst_wininet_ras.sru
M)%!"17AP;W)T2&5A9&5R)&Y?8W-T7W=I;FEN971?<F%S+G-R=0T*)%!"17AP
M;W)T0V]M;65N=',D5VEN,S(@4F%S(%-E<G9I8V4@17AT96YS:6]N+@T*9F]R
M=V%R9 T*9VQO8F%L('1Y<&4@;E]C<W1?=VEN:6YE=%]R87,@9G)O;2!N;VYV
M:7-U86QO8FIE8W0-"F5N9"!T>7!E#0IE;F0@9F]R=V%R9 T*#0IG;&]B86P@
M='EP92!N7V-S=%]W:6YI;F5T7W)A<R!F<F]M(&YO;G9I<W5A;&]B:F5C="!A
M=71O:6YS=&%N=&EA=&4-"F5N9"!T>7!E#0H-"G1Y<&4@<')O=&]T>7!E<PT*
M1E5.0U1)3TX@=6QO;F<@26YT97)N971$:6%L*"!U;&]N9R!H=VYD4&%R96YT
M+"!S=')I;F<@<WI#;VYN96-T260L('5L;VYG(&1W1FQA9W,L(%)%1B!U;&]N
M9R!D=T-O;FYE8W1I;VXL('5L;VYG(&1W4F5S97)V960@*2!,24)205)9(")W
M:6YI;F5T+F1L;"(@86QI87,@9F]R("));G1E<FYE=$1I86P[06YS:2(-"D95
M3D-424].('5L;VYG($EN=&5R;F5T2&%N9W5P*"!U;&]N9R!D=T-O;FYE8W1I
M;VXL('5L;VYG(&1W4F5S97)V960@*2!,24)205)9(")W:6YI;F5T+F1L;"(-
M"D9U;F-T:6]N('5L;VYG(%)A<TAA;F=5<$$H('5L;VYG(&A#;VYN("D@3&EB
M<F%R>2 B4D%305!),S(N1$Q,(@T*#0HO+R!H96QP97(@9G5N8W1I;VYS#0I&
M54Y#5$E/3B!U;&]N9R!'971,87-T17)R;W(H*2!,24)205)9(")K97)N96PS
M,BYD;&PB#0H-"F5N9"!P<F]T;W1Y<&5S#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1$E!3%]53D%45$5.1$5$#0H-"@T*+R\@25-3544@5$A%
M($1)04P@0T]-34%.1 T*;&E?<F,@/2!);G1E<FYE=$1I86PH($AA;F1L92@@
M9VYV7V%P<"YO9E]G971F<F%M92@I("DL(&%S7W!H;VYE8F]O:U]E;G1R>2P@
M;'5L7V9L86=S+"!I=6Q?8V]N;F5C=&EO;BP@," I#0H-"DE&(&QI7W)C(#T@
M,"!42$5.#0H)4D5455).*# I#0I%3%-%#0H)4D5455).*"TQ*0T*14Y$($E&
M#0H-"F5N9"!F=6YC=&EO;@T*#0IP=6)L:6,@9G5N8W1I;VX@:6YT96=E<B!O
M9E]D:7-C;VYN96-T("@I.VEN=&5G97(@;&E?<F5T=7)N#0H-"FQI7W)E='5R
M;B ](%)A<TAA;F=5<$$H:75L7V-O;FYE8W1I;VXI#0H-"DE&(&QI7W)E='5R
M;B ](# @5$A%3@T*"5)%5%523B@P*0T*14Q310T*"5)%5%523B@M,2D-"D5.
M1"!)1@T*96YD(&9U;F-T:6]N#0H-"F]N(&Y?8W-T7W=I;FEN971?<F%S+F-R
M96%T90T*5')I9V=E<D5V96YT*"!T:&ES+" B8V]N<W1R=6-T;W(B("D-"F5N
M9"!O;@T*#0IO;B!N7V-S=%]W:6YI;F5T7W)A<RYD97-T<F]Y#0I4<FEG9V5R
G179E;G0H('1H:7,L(")D97-T<G5C=&]R(B I#0IE;F0@;VX-"@T*
`
end

0
Doug
2/24/2010 3:35:33 PM
Is it posible not to use phone book to dialup to a specific number ?
Thanks

"Doug Porter" <doug_porterATdailyaccessDOTnospamDOTcom> wrote in message 
news:4b854745@forums-1-dub...
> We use the attached userobject which uses the wininet.dll and rasapi32.dll
>
> It allows you to dial an entry that you have set in your phonebook 
> settings on the PC.
>
> We use it like this:
>
> String ls_rasentry
> n_cst_wininet_ras lras
>
> ls_rasentry      = 'AT&T Connection Service' //Name of the entry in the 
> phonebook
>
> //connect
> lras.of_connect( ls_rasentry )
>
> //Do stuff via the dialup connection (in our case it is send an e-mail via 
> SMTP)
>
> //disconnect
> lras.of_disconnect( )
>
>
> It has worked decently for some of the things we do where we need an 
> external dialup internet connection.
>
> Doug Porter
> DailyAccess Corporation
>
>
> "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> wrote in message 
> news:4b8405f0@forums-1-dub...
>>I found http://www.rgagnon.com/pbdetails/pb-0021.html but it's pretty
>> sparse - you'd have to look up that module in the Microsoft web site to
>> figure out how to set up the "YourConnection".
>>
>> http://www.pbdr.com/software/comp/rasdial.zip sounds interesting but I
>> haven't looked inside it.
>>
>> -- 
>> Report Bugs to Sybase:  http://case-express.sybase.com/cx/welcome.do
>> Product Enhancement Requests:
>> http://my.isug.com/cgi-bin/1/c/submit_enhancement
>>
>>
>> "ekologi" <ebaskom@gmail.com> wrote in message 
>> news:4b83692f@forums-1-dub...
>>> Dear all,
>>> I want to dial a modem to connect to the internet from powerbuilder 
>>> 11.5,
>>> Is it posible to do this with powerbuilder.
>>> TIA
>>>
>>
>>
>
>
> 
0
ekologi
2/24/2010 4:47:06 PM
A modem is merely a "serial device" so any method that allows sending and 
receiving data via COMx: port will work.  Now, the real question is what 
kind of data do you want to transfer over the modem.

For VPN connections  (Dial up to internet) you should set the connection up 
normally and use RASDIAL to establish and disconnect the connection via a 
shell command (run).

USAGE:
        rasdial entryname [username [password|*]] [/DOMAIN:domain]
                [/PHONE:phonenumber] [/CALLBACK:callbacknumber]
                [/PHONEBOOK:phonebookfile] [/PREFIXSUFFIX]

        rasdial [entryname] /DISCONNECT

        rasdial

        For Online Privacy Information please refer to
        'http://go.microsoft.com/fwlink/?LinkId=104288'



"ekologi" <ebaskom@gmail.com> wrote in message news:4b85580a@forums-1-dub...
> Is it posible not to use phone book to dialup to a specific number ?
> Thanks
>
> "Doug Porter" <doug_porterATdailyaccessDOTnospamDOTcom> wrote in message 
> news:4b854745@forums-1-dub...
>> We use the attached userobject which uses the wininet.dll and 
>> rasapi32.dll
>>
>> It allows you to dial an entry that you have set in your phonebook 
>> settings on the PC.
>>
>> We use it like this:
>>
>> String ls_rasentry
>> n_cst_wininet_ras lras
>>
>> ls_rasentry      = 'AT&T Connection Service' //Name of the entry in the 
>> phonebook
>>
>> //connect
>> lras.of_connect( ls_rasentry )
>>
>> //Do stuff via the dialup connection (in our case it is send an e-mail 
>> via SMTP)
>>
>> //disconnect
>> lras.of_disconnect( )
>>
>>
>> It has worked decently for some of the things we do where we need an 
>> external dialup internet connection.
>>
>> Doug Porter
>> DailyAccess Corporation
>>
>>
>> "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> wrote in message 
>> news:4b8405f0@forums-1-dub...
>>>I found http://www.rgagnon.com/pbdetails/pb-0021.html but it's pretty
>>> sparse - you'd have to look up that module in the Microsoft web site to
>>> figure out how to set up the "YourConnection".
>>>
>>> http://www.pbdr.com/software/comp/rasdial.zip sounds interesting but I
>>> haven't looked inside it.
>>>
>>> -- 
>>> Report Bugs to Sybase:  http://case-express.sybase.com/cx/welcome.do
>>> Product Enhancement Requests:
>>> http://my.isug.com/cgi-bin/1/c/submit_enhancement
>>>
>>>
>>> "ekologi" <ebaskom@gmail.com> wrote in message 
>>> news:4b83692f@forums-1-dub...
>>>> Dear all,
>>>> I want to dial a modem to connect to the internet from powerbuilder 
>>>> 11.5,
>>>> Is it posible to do this with powerbuilder.
>>>> TIA
>>>>
>>>
>>>
>>
>>
>> 
0
Tyler
2/27/2010 10:11:27 PM
Reply: