I have an class in dll: For example:
namespace foo {
public class baa {
/* ... */
}
}
how can I imports the baa
class from dll? it is possible?
[DllImport(DllName)]
public extern ?? foo() ??
Thanks in advance.
That's not going to work. Unmanaged DLLs export a C
interface, not a C++
one. And for managed DLLs (C# or C++/CLI) you simply don't need DllImport.
Only functions that are imported into a static class I'm afraid.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With