Q:

Is it possible to use DllImport to access namespaces?

I just created an unmanaged C++ DLL and am trying to use DllImport in my C# app to access the function calls. However, each function belongs to its own namespace (there are multiple header files, multiple namespaces, multiple class files). When I try calling the function DllImport it says the entry point can't be found, and I can't help but feel it has to do with namespaces. How do I call my functions using their unique namespaces? Thanks.

A:

If you want to check the exported names of your functions you can use:
dumpbin /exports my_native_lib.dll

If it does not display any exports, there is something wrong with the way the functions are exported and we'll need more code.

