LocutisofBorg
New member
- Joined
- Nov 10, 2003
- Messages
- 3
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.
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.