Calling C DLL from C#

后端 未结 4 1344
悲哀的现实
悲哀的现实 2020-12-14 23:47

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;



        
4条回答
  •  有刺的猬
    2020-12-15 00:10

    Try changing string sGridFile to StringBuilder sGridFile

    C++ has so many different kinds of strings that marshaling strings between manage and unmanaged code can be tricky.

提交回复
热议问题