S
Stephen Engle
I am attempting to write a C# program that accesses a C++ library. The
library has functions that return CStrings. So far I have not been able to
find a way to declare the function prototype in C# such that it will work.
For instance, I have tried declaring the function as a string type but when
I call the function, it errors out with the following:
An unhandled exception of type 'System.NullReferenceException' occurred in
TestDLM.exe
Additional information: Object reference not set to an instance of an
object.
I have tried a couple other declarations with no better results.
Does anyone have any advice?
Thanks.
library has functions that return CStrings. So far I have not been able to
find a way to declare the function prototype in C# such that it will work.
For instance, I have tried declaring the function as a string type but when
I call the function, it errors out with the following:
An unhandled exception of type 'System.NullReferenceException' occurred in
TestDLM.exe
Additional information: Object reference not set to an instance of an
object.
I have tried a couple other declarations with no better results.
Does anyone have any advice?
Thanks.