摘要:
使用StringBuilder,举例:C++代码中函数定义如下:PVPOWERFORCASTDLL_API int PVPowerForcast(SForcastInfo &_ForcastInfo,char* DatePtr,char* Dir)C#代码中这样使用: [DllImport("PVPowerForcastDll.dll", EntryPoint = "PVPowerForcast", CallingConvention = CallingConvention.Cdecl)] private static extern int PV 阅读全文