Solved

link error:unresolved external _RasDialA@24

Posted on 1998-08-05
7
358 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
  • 3
  • 2
  • 2
7 Comments
 
LVL 22

Accepted Solution

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

Expert Comment

by:nietod
Comment Utility
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
Comment Utility
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 22

Expert Comment

by:nietod
Comment Utility
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
Comment Utility
Never mind.thank you
0
 

Expert Comment

by:alexwen
Comment Utility
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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now