Invoking C++ dll in Blazor client webassembly

↘锁芯ラ 提交于 2020-08-10 18:56:26

问题


I am trying to invoke C++ DLL in my client webassembly blazor application . However, I am not able to succeed in this.

I am using the following syntax to invoke the dll , however receiving error .

Can anyone help me is Blazor webassembly is supporting invocation of C++ native dll in the client C# code or NO .

I am using the following syntax to call dll from app.

   [DllImport("SampleDll.dll", CallingConvention = CallingConvention.Cdecl)]

   public static extern int Add(int a, int b);

Thanks in advance !!

来源:https://stackoverflow.com/questions/62671049/invoking-c-dll-in-blazor-client-webassembly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!