Topic: C ++ vs C#

How statically to cause function written on With ++ (in library) from # extern "C" {__ declspec (dllexport) void* / * __ stdcall*/bignStdParams128 ()//if  __ stdcall that  function {... return 0;} __ declspec (dllexport) void __ stdcall bignStdParamsClose (void* p) {free ((void *) p);}} [cs]//all tried but if CallingConvention. StdCall to replace with other call (and in with ++ too) that swears on a stack [DllImport ("Bee2.dll",/*EntryPoint = "bignStdParams128", CharSet = CharSet. Unicode, */CallingConvention = CallingConvention. StdCall)] public static extern int bignStdParams128 (); [DllImport ("Bee2.dll", CallingConvention = CallingConvention. StdCall)] public static extern void bignStdParamsClose (long p); [/cs] in what a jamb?


Re: C ++ vs C#

Hello, VVVa, you wrote:... This technology is named P/Invoke (from "Platform Invoke"). Here the useful resources on the given subject: https://www.pinvoke.net https://msdn.microsoft.com/en-us/library/55d3thsc.aspx https://stackoverflow.com/questions/936 … in-c-sharp https://www.codeproject.com/Articles/40 … asics-Part