Solved

link error:unresolved external _RasDialA@24

Posted on 1998-08-05
7
364 Views
Last Modified: 2009-03-03
When I use VC++  to program using  RasDial  WinApi  , on linking  an error occured : :unresolved external _RasDialA@24 . Any  Link  Setting is defaulltl; How Can I Do? Any help is appriciated;
0
Comment
Question by:wuxie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 100 total points
ID: 1169468
You need to link to Rasapi32.lib.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1169469
By including the ras.h file you tell the c++ compiler how to call the RasDail() function so the code compiles.  But you must link with the library to actually include the code for the function (actually the code is just a link to the real function that does the work.)

Do you know how to link with the file?   In VC you can just add the file to the project.  I can provide details if necessary.
0
 

Author Comment

by:wuxie
ID: 1169470
thanks,I've solve the problem.there is another problem. In windows NT ,RAS doesn't log the user onto the network really, one need manually log onto it;  Do you know  how  to  really  control the ras to log  onto the network without  interruptting?  I  learn from books  that  windows 95 plus!'s dialup server logs the user onto network;right? and NT let  credential users  logon,what's this mean? Any help is appriciated.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 22

Expert Comment

by:nietod
ID: 1169471
I have no idea!.  I only know a little of windows (core stuff).  I was able to help on the first one because it was really a C++ problem, not a windows problem.  Ask on the windows topic area.
0
 

Author Comment

by:wuxie
ID: 1169472
Never mind.thank you
0
 

Expert Comment

by:alexwen
ID: 1169473
To avoid the logon window, you can use a login script.
There is a param in
  RASENTRY \ szScript specifying the script file.
You can set this param by using RasSetEntryProperties. Then use RasDial with the entry name.
For the format of the script file, I don't have it yet. Maybe it's similiar to those in UNIX.



0
 

Expert Comment

by:alexwen
ID: 1169474
To avoid the logon window, you can use a login script.
There is a param in
  RASENTRY \ szScript specifying the script file.
You can set this param by using RasSetEntryProperties. Then use RasDial with the entry name.
For the format of the script file, I don't have it yet. Maybe it's similiar to those in UNIX.

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question