Share resource ID accross projects  
Author Message

PostPosted: Top

MFC >> Share resource ID accross projects


I have an application, which manage 3 kinds of CDocument. 2 of them are
managed in the main project, and the last one in a .DLL.

If the active document is the one managed in .DLL, I want the user to
be able to create an another document managed in my main project.

1 . The first solution is to re-route commands from my .DLL to my
application (by messages or functions).
2 . The second solution is to share command ID between all my .RC

I have implemented the second solution, but, i must take care of the
shared resources ID (added in a Common.h file, included in all .RC

If i was enough clear ;-), what do you think of this method ?


Visual Studio140