parireddy
August 21st, 2002, 12:29 PM
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
:o
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
:o