Oh, and... a few months ago I asked about it on MSDN and Jon Skeet said he'd ask whether or not an enum constraint might be in the future, he later reported... "maybe". I suspect there are a lot more important things concerning them.
I had a third party dll on which COM interoperability was not built in. I wrote my own C# dll which provided the wrappers for the functions inside the third party dll and in my dll, I added COM interop. My C# dll works fine if I use it in a C# application but whenever I call it from C++ using COM pointers, then no statement in the function is executed if that function uses any component inside third party dll.
In the following code, not even the messagebox will pop up which means as if the function is not even called. But if I remove, the last two lines of code, then messagebox will properly pop up.
public void MyDllFunc()<br />
MessageBox.Show("Inside MyDllfFunc");<br />
ThirdPartyDllClass service = new ThirdPartyDllClass ();<br />
It seems that if I am using a main dll which internaly uses some other dll, then both dlls should support COM interop if i want to make the main dll COMVisible.
For COM interop, I am generating a tlb using regasm and then importing that tlb in my C++ application. Is there any other way through which I can achieve calling the third party dll from my C++ application?
the fruits of your success will be in direct ratio to the honesty and sincerity of your own efforts in keeping your own records, doing your own thinking and, reaching your own conclusions.
..surviving in autumn..in love with spring..
I developed a web application project in C# involving a method, named run(), being called when a button, named "Go", is clicked.
The "run()" method takes some time to be executed. So I want to use a "PLEASE WAIT" swf file, named "PleaseWait.swf" while processing.
It is binded by a flash control dll, named "flcontrol" The Code belonging "Go" button looks like this: