Snap-in resources
-
Hello, I am looking for a way to add menu items and toolbar bitmaps through registration of a COM object and using component categories. I have seen the "WordPad snap-in" sample in MSDN and the interfaces defined here pass HMODULE's to the main application so it can load directly from the dlls resources (specically bitmaps/strings and menus) I have a problem and a question. 1.) I get error on MIDL(MIDL2139) compiler because HMODULE is of type void or void*... 2.) Should COM objects do this sort of thing? or should all resource items be stored in a main application - this kindof defeats the object of me designing my app + "snap-ins" to make adding functionality a question of simply registering a dll..... If anyone can show me an example of how this sort of thing can be done or any pointers you can give me that would be great. thanks :confused: