Windows API Error
-
: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
-
: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
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