Link to home
Start Free TrialLog in
Avatar of wuxie
wuxie

asked on

link error:unresolved external _RasDialA@24

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;
ASKER CERTIFIED SOLUTION
Avatar of nietod
nietod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nietod
nietod

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.
Avatar of wuxie

ASKER

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.
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.
Avatar of wuxie

ASKER

Never mind.thank you
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.



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.