Rasapi32.lib
-
Iv'e tried to use
RasConnectionNotification()
but I get an error:'undeclared identifier'
Iv'e tried to write a prototype:DWORD APIENTRY RasConnectionNotificationW(HRASCONN, HANDLE, DWORD); DWORD APIENTRY RasConnectionNotificationA(HRASCONN, HANDLE, DWORD); #define RasConnectionNotification RasConnectionNotificationW
got an error:'RasConnectionNotification' - unresoulved external
I've addedRasapi32.lib
to the linker, also includedRas.h
I also use in my codeRasEnumConnections()
- links great(How???, same lib!) What have I done wrong? :confused:**--BlackSmith--
**/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.
-
Iv'e tried to use
RasConnectionNotification()
but I get an error:'undeclared identifier'
Iv'e tried to write a prototype:DWORD APIENTRY RasConnectionNotificationW(HRASCONN, HANDLE, DWORD); DWORD APIENTRY RasConnectionNotificationA(HRASCONN, HANDLE, DWORD); #define RasConnectionNotification RasConnectionNotificationW
got an error:'RasConnectionNotification' - unresoulved external
I've addedRasapi32.lib
to the linker, also includedRas.h
I also use in my codeRasEnumConnections()
- links great(How???, same lib!) What have I done wrong? :confused:**--BlackSmith--
**/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.
RasConnectionNotification was defined in Ras.h also RasEnumConnections. There is no need to write function declaration manually! A. Riazi
-
Iv'e tried to use
RasConnectionNotification()
but I get an error:'undeclared identifier'
Iv'e tried to write a prototype:DWORD APIENTRY RasConnectionNotificationW(HRASCONN, HANDLE, DWORD); DWORD APIENTRY RasConnectionNotificationA(HRASCONN, HANDLE, DWORD); #define RasConnectionNotification RasConnectionNotificationW
got an error:'RasConnectionNotification' - unresoulved external
I've addedRasapi32.lib
to the linker, also includedRas.h
I also use in my codeRasEnumConnections()
- links great(How???, same lib!) What have I done wrong? :confused:**--BlackSmith--
**/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.
Are you using the "correct" version of Windows?
Ras.h
has this line in it beforeRasConnectionNotification #if (WINVER >= 0x401)
If I have seen further it is by standing on the shoulders of Giants. - Isaac Newton 1676
-
Are you using the "correct" version of Windows?
Ras.h
has this line in it beforeRasConnectionNotification #if (WINVER >= 0x401)
If I have seen further it is by standing on the shoulders of Giants. - Isaac Newton 1676
My WINVER is 5 (Win2K). Maybe it's in my project settings symbols. Friends, I need help!**
--BlackSmith--
**/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.
-
RasConnectionNotification was defined in Ras.h also RasEnumConnections. There is no need to write function declaration manually! A. Riazi
At 1st, I didn't declared
RasConnectionNotification
, but I got an error of 'undeclares identifier'. My WINVER is 0x500 (Win2K) and I linked properly to Rasapi32.lib, so I don't find any reason for this not to work. IT DOESN'T WORK!!!**--BlackSmith--
**/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.
-
My WINVER is 5 (Win2K). Maybe it's in my project settings symbols. Friends, I need help!**
--BlackSmith--
**/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.
Just created a simple console app on my PC NT4 Visual C++ 6.0
#include "Windows.h" #include "Ras.h" int main(int argc, char* argv[]) { HRASCONN hrasconn = NULL; // handle to a RAS connection HANDLE hEvent = NULL; // handle to an event object DWORD dwFlags = RASCN_Connection; // type of event to receive notifications for RasConnectionNotification(hrasconn, hEvent, dwFlags); return 0; }
Compiles and links OK I think I am using November 2001 SDK as well, so it looks like your settings!
If I have seen further it is by standing on the shoulders of Giants. - Isaac Newton 1676