Sorry, the "Dim did as Integer" should be "Dim did as String"
I believe is DataType issue from VC++.NET (LPSTR) pass to VB.NET (String)
When I try to replace String with IntPtr, it doesn't give me error but the
return value for "did variable" is some numbers.
Plz help! TQ
> Another same issue on "NullReferenceException" :-
> I have an (exe) executable program created in VB.NET 2003 that calls to a
[quoted text clipped - 26 lines]
>
> Michael.
Wild Wind - 18 Sep 2004 13:39 GMT
>> Another same issue on "NullReferenceException" :-
>> I have an (exe) executable program created in VB.NET 2003 that calls
[quoted text clipped - 26 lines]
>>
>> Michael.
Michael,
It looks like you haven't allocated memory to copy the
"hello" to in your strcpy call.
Try putting
b = new CHAR[strlen("hello") + 1];
before your call to strcpy.
--
Akin
aknak at aksoto dot idps dot co dot uk