G
Guest
I've created a managed C++ wrapper dll using Microsoft Visual Studio 200
When I try to call functions in the dll from VB.NET I get an error "System.NullReferenceException
I found that if preceded a simple test function with #pragma unmanaged I can then run the function from VB.NE
However, if I remove the #pragma unmanaged statement then the error comes back
I have functions that I want to pass System.Array types to as inputs so I cannot wrap everything with #pragma unmanage
I have no idea what is causing the problem? I would appreciate any suggestions
The source for my simple test function is belo
#using <mscorlib.dll
//#pragma unmanage
EXTERN_C int __declspec(dllexport) aaTest(
return(0)
}
When I try to call functions in the dll from VB.NET I get an error "System.NullReferenceException
I found that if preceded a simple test function with #pragma unmanaged I can then run the function from VB.NE
However, if I remove the #pragma unmanaged statement then the error comes back
I have functions that I want to pass System.Array types to as inputs so I cannot wrap everything with #pragma unmanage
I have no idea what is causing the problem? I would appreciate any suggestions
The source for my simple test function is belo
#using <mscorlib.dll
//#pragma unmanage
EXTERN_C int __declspec(dllexport) aaTest(
return(0)
}