Quantcast
Channel: Questions in topic: "dll"
Viewing all articles
Browse latest Browse all 706

Unity3d CharSet.Ansi

$
0
0
I use c++ dll in Unity3D progect. It`s important to use **CharSet = CharSet.Ansi** [DllImport("Exchange3D", EntryPoint = "GetElementValue", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)] private static extern double fnGetElementValue(int nType, int nNumber, string strPointName); **strPointName** is sent to dll. But dll receives it in incorrect format. In Unity Project! But I create C# Console Application with the same code and all are working! Any ideas?

Viewing all articles
Browse latest Browse all 706

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>