Invoking C++ dll in Blazor client webassembly

Viewed 635

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 !!

0 Answers
Related