Hi!
If the user has no LAN connection I have to dialup to the internet
in my application. This works fine, but in some case I'll have to
change the phone number (if the provider changes) and the additional
init string of the modem (for instance if the modem does not detect
the dial tone).
So, how do I do this?
I have not found the appropriate SDK functions (maybe I just use the
wrong search patterns in the help and in Google). Any hints?
Ciao and bye,
(:Clemens:) 3 3010
Clemens,
Instead of doing the dialing yourself, I would use the functions from
the WinInet library to dial up an existing internet connection. Since it
seems that your app requires an internet connection, I think that it is safe
to say that one will be configured already on the machine.
I would use the InternetDial function in the WinInet library to
determine which internet connection to establish.
You could even use the InternetAutoDia l function to use the default
connection that is set up.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Clemens Chiba - Greentube I.E.S. AG" <cc@greentube.c om> wrote in message
news:3F******** *******@greentu be.com... Hi!
If the user has no LAN connection I have to dialup to the internet in my application. This works fine, but in some case I'll have to change the phone number (if the provider changes) and the additional init string of the modem (for instance if the modem does not detect the dial tone).
So, how do I do this?
I have not found the appropriate SDK functions (maybe I just use the wrong search patterns in the help and in Google). Any hints?
Ciao and bye, (:Clemens:)
> Instead of doing the dialing yourself,
I do not dial myself but I use the RasDial function to use an
existing entry to establish the internet connection. I would use the functions from the WinInet library to dial up an existing internet connection. Since it seems that your app requires an internet connection, I think that it is safe to say that one will be configured already on the machine.
So InternetDial from this library does the same as RasDial, except
that I can use a different number in the call but I cannot set
a user and password anymore? But if the provider changes I need
all three values to be changed...
But today I've found out that I just need RasGet/SetEntryPropert ies
for my purposes (it seems, I was blind yesterday ;-) ), and after
some fights with the size of the RasEntry structure (I got errors
603 and 632) my code works fine. :-)
You could even use the InternetAutoDia l function to use the default connection that is set up.
Maybe I should have mentioned that the application is for a
TabletPC and that the users will work outdoors and sometimes
have to connect to the internet. That's why I have to change
the connection parameters if the provider changes. And the
user on the TabletPC must not be required to edit these
settings himself in the control panel.
Ciao and bye,
(:Clemens:)
> But today I've found out that I just need RasGet/SetEntryPropert ies for my purposes (it seems, I was blind yesterday ;-) ), and after some fights with the size of the RasEntry structure (I got errors 603 and 632) my code works fine. :-)
I was even more blind:
I just found out that the RASDIALPARAMS structure has an entry
to overrule the phone number. I used an example from the internet,
so I've overseen this property between the MarshalAs attributes.
Ok, wasted some time, but learned something. ;-)
So the only thing that is left to do is to change the init string
of the modem. Do I also need some Ras functions to do this?
Ciao and bye,
(:Clemens:) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jordanakins |
last post by:
Usenet,
I am currently working on my website and am needing to detect the
connection speed of the client. I would like to do this in PHP and not
use any other languages. This makes it a bit more complicated. I know
it is possiable to do this in PHP but I can't think of how.
All I need to figure out is if they are on dial up or not. It doesn't
have to be 100% accurate but at least 50% accurate. Any help is greatly
appreciated.
|
by: Adam Parkin |
last post by:
Hello all, I need to be able to detect if there is an active available
Internet connection in my VB6 program. In my program I'm using the Internet
Transfer Control to transfer some files by HTTP, but as it stands now,
there's no code to detect if there is in fact a network connection available
before I try sending.
Is there some easy way to do this?
Thanks,
|
by: Linus Nikander |
last post by:
Having recently load-tested the application we are developing I noticed that
one of the most expensive (time-wise) calls was my fetch of a db-connection
from the defined db-pool. At present I fetch my connections using :
private Connection getConnection() throws SQLException {
try {
Context jndiCntx = new InitialContext();
DataSource ds =
(DataSource)
|
by: JWM |
last post by:
I am trying to implement Oracle connection pooling for the following code,
which was written by someone else. Here is my main question -- this java
file creates code that is executed every hour, but once per week, the oracle
server is brought down for backup. At that time, I get an error that looks
like I have the wrong credentials for the database. For every subsequent
attempt to run the hourly process, I am getting a broken pipe error,...
|
by: Frank an der Heiden |
last post by:
Hi folks,
I have a problem with the following example:
######################################################
My Receiver Class
*****************
class UdpReceiver
{
| |
by: yom |
last post by:
Hi all.
I am having some troubles with an application that has to open a
dialup up connection.
I am using the Ras API RasDial to call the remote modem an all works
properly.
I am also able to close the connection by calling the RasHangUp API:
in this case i can redial the number and open a new connection.
The problem comes out when the line is busy or when any other error is
|
by: Lars Netzel |
last post by:
Hi!
Is it possible to start a dial-up connection that is already created on the
computer thru VB.NET, and then after it has dialed up get an idication of
that there's a connection ( I guess ping some server?) and then send a mail
and close the conenction?
I really need some pointers in where to start to look for this!
best regards
|
by: sergiometal |
last post by:
hi, this is not a strictly asp problem but is vscript problem
i'm trying to connect to a divice via modem and dial a number 1 so i have this script to do that
Set comOne = CreateObject("MSCommLib.MSComm")
comOne.CommPort = 5
comOne.Settings = "115200,N,8,1"
comOne.PortOpen = True
comOne.Output = "ATDT1" & vbCr
the connection seem to be established but the modem never responses any nor error.
|
by: John Salerno |
last post by:
Let me see if this question even makes sense...I'm reading Core Python
Programming and I jumped ahead to the more specific topics like network
programming. I plan to follow along with the example in that chapter and
create a socket connection between my desktop and laptop.
However, these two computers are already connected on my home network
(using the Windows Network Setup Wizard), so I was wondering if this
will have any effect on what...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |