Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shared Handler preprocessor directive in MFC Document templates

I have an application written using MFC doc-View framework. I used the application wizard to create a template for MFC application with document, view, mainframe, etc.

In the document class of my application, I see a piece of code as follows

#ifdef SHARED_HANDLERS

// Lots of code

#endif

What does the SHARED_HANDLERS preprocessor directive stand for?

Currently, the entire block is disabled since nowhere in my code is SHARED_HANDLER #defined. I was thinking of removing the block entirely, but then I was wary of breaking some code in future that #defines SHARED_HANDLER and relies on the block enclosed.

like image 445
Gumbly jr. Avatar asked Jun 17 '26 00:06

Gumbly jr.


1 Answers

According to the link below, the SHARED_HANDLERS is turned on if the project type is ATL DLL:

http://www.codeguru.com/cpp/cpp/cpp_mfc/tutorials/article.php/c16689/Supporting-Windows-Search-with-MFC.htm

like image 189
PaulMcKenzie Avatar answered Jun 21 '26 11:06

PaulMcKenzie



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!