Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

First of all, cool forum. I like it a bunch. Second, thanks for letting me join.

 

Here is my problem. In my VB6 project the following piece of code worked just fine:

 

BAS Module:

Declare Function WFGetQueueNames Lib "WFAPI32" (ByVal hSession As Long, sQueues() As String) As Long

 

Form Code:

 

public function blablabla() as boolean

Dim strQueues() As String

.

. Do some stuff

.

 

ret = WFGetQueueNames(lSession, strQueues)

 

end function

 

The call to WFGetQueueNames is a third party API that works just fine in VB6. When I try to call this in VB.NET I get the following error message:

 

"An unhandled exceptionof type 'System.NulLReferenceException' occurred in ACTS.exe

 

Additional information: Object reference not set to an instance of an object."

 

Basically what the API does is take a blank, unitialized array, allocates memory and returns a fully usable VB6 array that I can then to a UBound on, etc...

 

I have searched everywhere and cannot find any answers to this question. Anyone who can help would be my new hero. Thanks in advance.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...