Solved

link error:unresolved external _RasDialA@24

Posted on 1998-08-05
7
363 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
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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C++ BOOL WINAPI ReadFile fails on windows 10 when reading from USB cable 9 476
Cross compile release version of c++ program for linux 2 136
c++ syntax question 9 52
Outlook 13 45
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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…

821 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