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. Visual Basic
  4. Windows API Error

Windows API Error

Scheduled Pinned Locked Moved Visual Basic
csharpjsonhelp
2 Posts 2 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.
  • P Offline
    P Offline
    Parikshith Reddy Moola
    wrote on last edited by
    #1

    :confused:Hi, I am getting the following error when trying to call a Windows API function from Visual Basic.NET An unhandled exception of type 'System.NullReferenceException' occurred in WindowsApplication5.exe Additional information: Object reference not set to an instance of an object. The code that I wrote is : Declare Function RFVB_New Lib "RF2VB.DLL" (ByVal lObjectType As Long, ByVal pObject As Long) As Long Dim lerror As Long Dim lFI10Obj As Long Public Const RFO_FAXINFO_10 = &H10000 lerror = RFVB_New(RFO_FAXINFO_10, lFI10Obj) The error is occuring on the last line. Please suggest the cause of the error. Thanks

    V 1 Reply Last reply
    0
    • P Parikshith Reddy Moola

      :confused:Hi, I am getting the following error when trying to call a Windows API function from Visual Basic.NET An unhandled exception of type 'System.NullReferenceException' occurred in WindowsApplication5.exe Additional information: Object reference not set to an instance of an object. The code that I wrote is : Declare Function RFVB_New Lib "RF2VB.DLL" (ByVal lObjectType As Long, ByVal pObject As Long) As Long Dim lerror As Long Dim lFI10Obj As Long Public Const RFO_FAXINFO_10 = &H10000 lerror = RFVB_New(RFO_FAXINFO_10, lFI10Obj) The error is occuring on the last line. Please suggest the cause of the error. Thanks

      V Offline
      V Offline
      vasuonline
      wrote on last edited by
      #2

      Refer to the following articles and see it helps: http://www.devx.com/dotnet/articles/mh062702/Part1/mh062702-1.asp http://www.devx.com/dotnet/articles/mh062702/Part2/mh062702-1.asp cheers vasu

      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