I am trying to call a C DLL from C#, but I\'m not having any joy. The documentation for the DLL provides an example function delaration for VB that looks like;
Try changing string sGridFile to StringBuilder sGridFile
string sGridFile
StringBuilder sGridFile
C++ has so many different kinds of strings that marshaling strings between manage and unmanaged code can be tricky.