Hello,
I am loading type library in C++/CLI. In C# its loading successfully but it's giving again and again following exception in managed C++/CLI.
exception occured at LoadTypeLibEx System.ArgumentException: Value does not fall within the expected range
at LoadTypeLib(String strTypeLibName, ITypeLi b typeLib)
Here's a PInvoke Signature:
[DllImport("oleaut32.dll", CharSet = CharSet::Unicode, PreserveSig = false)] static void LoadTypeLib(String^ strTypeLibName,[MarshalAs(UnmanagedType::Interface)] [Out] System::Runtime::InteropServices::ComTypes::ITypeLib^ typeLib);
ITypeLib^ oTypeLib; and call LoadtypeLib(TLB,oTypeLib);
I am stuck here..kindly give me way around to get rid of this exception
Regards Usman