RAS Dial Up application

I am a new programmer and knows only initial programming commands. I've asked a question before about RAS, and was able to got hint.

Can someone tell me how can I use RasDial option. Please let me know in detail that do I have to install RAS client and RAS server no different machines. And how can I do that?
Here is a RasDial code

DWORD RasDial(
  LPRASDIALEXTENSIONS lpRasDialExtensions,
                          // pointer to function extensions data
  LPCTSTR lpszPhonebook,  // pointer to full path and filename of
                          // phone-book file
  LPRASDIALPARAMS lpRasDialParams,
                          // pointer to calling parameters data
  DWORD dwNotifierType,   // specifies type of RasDial event handler
  LPVOID lpvNotifier,     // specifies a handler for RasDial events
  LPHRASCONN lphRasConn   // pointer to variable to receive
                          // connection handle
);


Thanks
tparvaizAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
mflamConnect With a Mentor Commented:
OK, if it's connecting from one computer to the other...
And if it's keeping the discussion open...
Let me think of this problem further.

If you wish to make things even clearer:
Instead of asking how to get the RAS working, what exactly do you want to do?
Once the machines are connected, then what do you want to do? Send a message between them and close?
Keep connection open, and use TCP/IP?
Keep connection open, and use PPP?
and then HTTP?


AQRG1 (All Questions aRe Good 1s)
Moshe
0
 
jkrCommented:
See  

http://msdn.microsoft.com/library/devprods/vs6/visualc/vcsample/vcsmprasberry.htm 

On how to use RAS. It aslo demonstrates using the 'RasDial()' API
0
 
tparvaizAuthor Commented:
OK, I've downloaded RASBerry file and installed it in my C:\msdn\samples\sdk_NetDS_RAS_rasberry directory.


Which file should I use to execute. Like which file should I open and after compiling execute.

I will be waiting for the reply.

Thanks for your time
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
tparvaizAuthor Commented:
Hi, while executing rasberry.exe file, I am having an error message that: unable to find rasapi32.dll


What should I do now


Thanks
0
 
chensuCommented:
Install Dial-Up Networking. Control Panel --> Add/Remove Programs --> Windows Setup --> Communications --> Details.
0
 
tparvaizAuthor Commented:
There are only three options

Chat
Hyper Terminal
Phone Dialer.

I am using windows NT as my developing operating systems

 Thanks
0
 
jkrCommented:
You'll have to use the control panel, not the start menu. Then, it should be easy to install RAS...
0
 
tparvaizAuthor Commented:
can we connect two or more client computers to a single server computer using RAS.
0
 
jkrCommented:
>>can we connect two or more client computers to a single
>>server computer using RAS

Well, I never thought of this, but the most obvious problem is that you'd need more than one modem...
0
 
mflamCommented:
It is not necessary for you to make your own server at all!
There are hundreds of Internet Service Providers, some with many different servers attached to same line, some with special hardware (like "Dialogic") for attaching ONE server with many incoming calls on "one number" (and line). etc.
In our country (Israel) we have a public ISV that answers you in any case, and then asks you which ISV you want to use. That's a great test platform!
Search the net for Dialogic...
0
 
jkrCommented:
Interesting 'answer' to this Q...
0
 
tparvaizAuthor Commented:
Main purpose of my desktop-application, visual C++,executable file, is to log
into another machine, just like Windows dial-up-networking application.


jkr suggested me to use RAS, and gave me link to the following URL:

http://msdn.microsoft.com/library/devprods/vs6/visualc/vcsample/vcsmprasberry.htm 

I've tried that link and having some errors because RAS client is not installed in my machine.

OK, after trying above link I will customise RASBERRY(application) to my own needs.


mflam, above explanation is just a brief summary about where we were before you proposed your answer. Let me take a look at your proposed answer and if it is what I am looking for, then I will request you to propose it again and I will accept it. But for the time being, don't block this discussion.

I am not rejecting your answer on the basis of incorrect answer, but to continue discussion, it is better that question should remain open.


Thanks mflam and jkr
0
 
tparvaizAuthor Commented:
I wan't to develop an application just like that of Dial up Networking. It is  going to work exactly as we are trying to connect to ISP.

But instead of Dial up networking window I want to show my customised window(s).

Main Server (Like ISP) will be connected by many clients.

Please advise me that what should I do.

As I told you before, jkr has advised me to use RAS. I am still trying to figure out that how to impliment RAS.

Thanks for your time
0
 
jkrCommented:
tparvaiz, are you still with us?
0
 
tparvaizAuthor Commented:
Yes,
Just waiting for some replies from my employer.

Thanks for your help
0
 
tparvaizAuthor Commented:
Hi,
Sorry for the delay.
Ok, I've found that any dial-up application can be customized according to our needs. At this point, I know that we can only customize client side dial-up application using RAS API.

now, my application have to access serverside data-base to authenticate clients account limit.

what I am trying to do is that: after dialing to ISP's Server, some kind of socket communication should take place. I am not sure if it is possible or not. Any  suggestions please.

Thanks
0
 
chensuCommented:
>now, my application have to access serverside data-base to authenticate clients account limit.

The RAS server should authenticate the user accounts. You should not have to do it yourself.
0
 
tparvaizAuthor Commented:
But how to configure RAS server.

Actually, here are two tasks which I have to perform before client get access to internet.

1. authenticate clients account for sufficient money.


2. update logfiles:
2.a upload clients logfile to server
2.b update clients address book.

Suggestions Please
0
 
tparvaizAuthor Commented:
Hi,
I've requested before that how can we configure ISPs server to upload clients file after authentication.

Is there any way we can call a procedure while password authentication.

thanks.
0
All Courses

From novice to tech pro — start learning today.