- Home /
Unity3d CharSet.Ansi
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?
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers
reduce size of included dlls? 2 Answers
Why is UnityEngine.dll not signed? 0 Answers
how to load Dll into Unity 2 Answers
Using dll's from C#? 4 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                