I've a C++ library (.h and .lib), which I want to use in my C# application. For which, I've written a managed C++ wrapper over this lib, that can be used in the C# app.
One of the functions has a parameter of type LPWSTR.
Eg : SomeFunc(LPWSTR param1)
LPWSTR is a macro defined for WCHAR* and WCHAR is a macro for wchar_t.
How do I call this SomeFunc() from my C# application? What type should I use for the parameter?
Any code snippet will be of great help!!!