Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

calling C# function in C++/CLI environment

I am calling managed code in C++/CLI environment and using the following code to
get the provider count

MList^ myList = MList::Instance;

myList->myPath = gcnew String(L"C:\\MyProjects\\MY MList\\Common");

myList->Initialize();

NameValueCollection^ providers_no = myList->GetTotalProviders(MyDomain::MyType::MyEnum);
int num_providers = providers_no->Count;

And it returns NameValueCollection Object but is empty collection.
The code is working in C# very fine is giving the count, but not in my C++/CLI environment.
I guess i am missing something is that do i need to register in com server or something?
any sugessions appreciated.
[724 byte] By [kirancplus] at [2007-11-11 10:03:42]
# 1 Re: calling C# function in C++/CLI environment
Anybody help me in this case...
kirancplus at 2007-11-11 21:44:56 >
# 2 Re: calling C# function in C++/CLI environment
You may have better chances of getting an answer on the dev-archive .Net forum, which includes C# as well. I'm forwarding your post to the .Net forum.
Danny at 2007-11-11 21:45:57 >