Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Rasapi32.lib

Rasapi32.lib

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BlackSmith
    wrote on last edited by
    #1

    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 added Rasapi32.lib to the linker, also included Ras.h I also use in my code RasEnumConnections() - 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.

    A T 2 Replies Last reply
    0
    • B BlackSmith

      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 added Rasapi32.lib to the linker, also included Ras.h I also use in my code RasEnumConnections() - 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.

      A Offline
      A Offline
      Abbas_Riazi
      wrote on last edited by
      #2

      RasConnectionNotification was defined in Ras.h also RasEnumConnections. There is no need to write function declaration manually! A. Riazi

      B 1 Reply Last reply
      0
      • B BlackSmith

        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 added Rasapi32.lib to the linker, also included Ras.h I also use in my code RasEnumConnections() - 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.

        T Offline
        T Offline
        Ted Ferenc
        wrote on last edited by
        #3

        Are you using the "correct" version of Windows? Ras.h has this line in it before RasConnectionNotification #if (WINVER >= 0x401)


        If I have seen further it is by standing on the shoulders of Giants. - Isaac Newton 1676

        B 1 Reply Last reply
        0
        • T Ted Ferenc

          Are you using the "correct" version of Windows? Ras.h has this line in it before RasConnectionNotification #if (WINVER >= 0x401)


          If I have seen further it is by standing on the shoulders of Giants. - Isaac Newton 1676

          B Offline
          B Offline
          BlackSmith
          wrote on last edited by
          #4

          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.

          T 1 Reply Last reply
          0
          • A Abbas_Riazi

            RasConnectionNotification was defined in Ras.h also RasEnumConnections. There is no need to write function declaration manually! A. Riazi

            B Offline
            B Offline
            BlackSmith
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • B BlackSmith

              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.

              T Offline
              T Offline
              Ted Ferenc
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups