Hello, I would like that users be able to launch my application from the Shell "Open with" menu. Can somebody explain how to achieve that? Thanks
User 2299399
Posts
-
Handling shell command line -
CTreeView FormOne solution : - Add a pointer to your main view in the App class - Then in the CTreeView constructor you initialize the pointer with the local this pointer. You can access the pointer member variable using "theApp" object. It is the current instance of your application and it is availabe since you include your app header (for instance "myApp.h") -You can access that pointer member everywhere provided that you include the header("myApp.h")
-
CListCtrl hook errorHello, I am using a list control in my MFC Application. I need to add items to the list control. So I use CListCtrl::InsertItem member method. And my app compile without any problem. But at runtime, after adding 17 items to the control, the programm ends with a MessageBox displaying "Invalid Hook Descriptor". I've tried several times and it always ends after the 17th item added. I don't use any hook in my app.I don't even know what a hook is. Can somebody helps me?:( Thanks