I have a C# application that encapsulate html files via the webbrowser control. For that application to talk to it's html files it quite easy, but to html to talk to the application it's not the same. In that way i've create an Atl Project and add a Atl Control in it(i've choose that solution, to be able to avoid internet explorer messages about security), i've add connection point in that control and add the macro DECLARE_CLASSFACTORY_SINGLETON to be sure i have only one instance of that control. So the goal is that a html instanciate that control and my C# app use delegate on that control to receive messages(Connection Points) from that control. The problem is that i don't receive messages in that way, it will only work in my app, if i create the control, register to delegates and call the Test methods(that fire an CP), with thoses steps, i will receive the CP in my delegate, but it wont work if an other app call the same method because the Template in my control that contains the fire method will say that there's no connections in the m_vec.GetSize().
What's missing in my control or maybe in my app to work it all properly, could you please help me, maybe i can send you the little project?!? You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.