Click here to Skip to main content
16,005,552 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Fetching machine usernames using VB.NET Pin
Lasse24-Aug-02 11:33
Lasse24-Aug-02 11:33 
GeneralRe: Fetching machine usernames using VB.NET Pin
Gautam Panemangalore28-Aug-02 21:15
Gautam Panemangalore28-Aug-02 21:15 
Generaldelete path.. Pin
pnpfriend22-Aug-02 7:58
pnpfriend22-Aug-02 7:58 
GeneralRe: delete path.. ( i goty it) Pin
pnpfriend22-Aug-02 8:55
pnpfriend22-Aug-02 8:55 
GeneralVertical text with VB 6 Pin
Jerome Conus21-Aug-02 22:07
Jerome Conus21-Aug-02 22:07 
GeneralRe: Vertical text with VB 6 Pin
Jason McBurney22-Aug-02 6:35
Jason McBurney22-Aug-02 6:35 
GeneralRe: Vertical text with VB 6 Pin
vasuonline26-Aug-02 16:59
vasuonline26-Aug-02 16:59 
GeneralWindows API Error Pin
Parikshith Reddy Moola21-Aug-02 6:42
Parikshith Reddy Moola21-Aug-02 6:42 
Confused | :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

GeneralRe: Windows API Error Pin
vasuonline26-Aug-02 17:05
vasuonline26-Aug-02 17:05 
GeneralNT Authentication and VB Pin
Dave Wilson20-Aug-02 11:58
Dave Wilson20-Aug-02 11:58 
GeneralRe: NT Authentication and VB Pin
Nick Parker24-Aug-02 18:35
protectorNick Parker24-Aug-02 18:35 
QuestionString Literal in VB.NET? Pin
afronaut20-Aug-02 11:16
afronaut20-Aug-02 11:16 
AnswerRe: String Literal in VB.NET? Pin
Paul Riley20-Aug-02 14:07
Paul Riley20-Aug-02 14:07 
GeneralRe: String Literal in VB.NET? Pin
afronaut20-Aug-02 17:46
afronaut20-Aug-02 17:46 
Generalcreate directory Pin
pnpfriend20-Aug-02 8:51
pnpfriend20-Aug-02 8:51 
GeneralRe: create directory Pin
Paul Riley20-Aug-02 14:39
Paul Riley20-Aug-02 14:39 
GeneralRe: create directory Pin
Carlos Antollini21-Aug-02 7:29
Carlos Antollini21-Aug-02 7:29 
GeneralANN: Release of DeKlarit Version 1.2 for Visual Studio .NET Pin
Maria Jose Serres20-Aug-02 8:04
Maria Jose Serres20-Aug-02 8:04 
GeneralRe: Please, sell me one! Pin
Daniel Turini20-Aug-02 8:34
Daniel Turini20-Aug-02 8:34 
GeneralRe: ANN: Release of DeKlarit Version 1.2 for Visual Studio .NET Pin
Bruce Duncan20-Aug-02 20:10
Bruce Duncan20-Aug-02 20:10 
Generalhelp to Convert this VBA into a vbscript Pin
SPGV19-Aug-02 21:24
SPGV19-Aug-02 21:24 
GeneralRe: help to Convert this VBA into a vbscript Pin
Ernest Laurentin22-Aug-02 9:31
Ernest Laurentin22-Aug-02 9:31 
QuestionCan some one tell difference between 2 lines of code? Pin
Eric_Franz19-Aug-02 19:31
Eric_Franz19-Aug-02 19:31 
Generalsimple question: Streams Pin
devvvy18-Aug-02 7:47
devvvy18-Aug-02 7:47 
Generalfrom MSDN Pin
devvvy18-Aug-02 7:59
devvvy18-Aug-02 7:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.