LocutisofBorg Posted November 10, 2003 Posted November 10, 2003 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. Quote
LocutisofBorg Posted November 11, 2003 Author Posted November 11, 2003 bump. If anyone has any ideas please let me know, I'm dead in the water right now... bump. Quote
Administrators PlausiblyDamp Posted November 11, 2003 Administrators Posted November 11, 2003 You could try something like sQueues.Initialize() and see if that helps... Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
LocutisofBorg Posted November 12, 2003 Author Posted November 12, 2003 Tried that and it doesn't work. Thanks though. Anyone else have any ideas? Quote
Recommended Posts