If I include atldlgs.h without instantiating CPrintDialogImpl, CPrintDialogExImpl or CPageSetupDialogImpl, I get the following compiler warning:
warning C4505: 'WTL::_AtlCreateDC' : unreferenced local function has been removed
Perhaps _AtlCreateDC could be marked inline to suppress this warning? The problem with this warning is that it has to be disabled for the entire compilation unit.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This sounds logical, and the description of the warning shows that we
should expect this. However, I can't reproduce this. atldlgs.h is included
in App Wizard generated code and it should, in theory, cause this warning,
but it doesn't. I tried changing many build options but I still can't cause
this warning to appear.
Does this also happen for you if you use App Wizard generated project? How
are build options in your project different than those from App Wizard
generated project?
If I include atldlgs.h without instantiating CPrintDialogImpl,
CPrintDialogExImpl or CPageSetupDialogImpl, I get the following compiler
warning:
warning C4505: 'WTL::_AtlCreateDC' : unreferenced local function has been
removed
Perhaps _AtlCreateDC could be marked inline to suppress this warning? The
problem with this warning is that it has to be disabled for the entire
compilation unit.
This sounds logical, and the description of the warning shows that we
should expect this. However, I can't reproduce this. atldlgs.h is included
in App Wizard generated code and it should, in theory, cause this warning,
but it doesn't. I tried changing many build options but I still can't cause
this warning to appear.
Does this also happen for you if you use App Wizard generated project? How
are build options in your project different than those from App Wizard
generated project?
Cheers,
Nenad
On Wed, Apr 30, 2014 at 4:16 AM, Marcel Raad marcelraad@users.sf.netwrote:
If I include atldlgs.h without instantiating CPrintDialogImpl,
CPrintDialogExImpl or CPageSetupDialogImpl, I get the following compiler
warning:
warning C4505: 'WTL::_AtlCreateDC' : unreferenced local function has been
removed
Perhaps _AtlCreateDC could be marked inline to suppress this warning? The
problem with this warning is that it has to be disabled for the entire
compilation unit.
sorry for the late response. Yes I compile with _ATL_ALL_USER_WARNINGS defined. The other warnings don't appear because I suppress all warnings for external libraries. r582 in RC4 fixes the issue, thank you very much!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
sorry for the late response. Yes I compile with _ATL_ALL_USER_WARNINGS
defined. The other warnings don't appear because I suppress all warnings
for external libraries. r582 in RC4 fixes the issue, thank you very much!
If I include atldlgs.h without instantiating CPrintDialogImpl, CPrintDialogExImpl or CPageSetupDialogImpl, I get the following compiler warning:
warning C4505: 'WTL::_AtlCreateDC' : unreferenced local function has been removed
Perhaps _AtlCreateDC could be marked inline to suppress this warning? The problem with this warning is that it has to be disabled for the entire compilation unit.
Hi Marcel,
This sounds logical, and the description of the warning shows that we
should expect this. However, I can't reproduce this. atldlgs.h is included
in App Wizard generated code and it should, in theory, cause this warning,
but it doesn't. I tried changing many build options but I still can't cause
this warning to appear.
Does this also happen for you if you use App Wizard generated project? How
are build options in your project different than those from App Wizard
generated project?
Cheers,
Nenad
On Wed, Apr 30, 2014 at 4:16 AM, Marcel Raad marcelraad@users.sf.netwrote:
Hi Marcel,
You probably have _ATL_ALL_USER_WARNINGS defined - with that the warning
appears.
There are two other warnings if _ATL_ALL_USER_WARNINGS is defined, I'll see
if I can fix all of them.
Cheers,
Nenad
On Wed, Apr 30, 2014 at 3:44 PM, Nenad Stefanovic nenadstefanovic@users.sf.net wrote:
Hi Nenad,
sorry for the late response. Yes I compile with _ATL_ALL_USER_WARNINGS defined. The other warnings don't appear because I suppress all warnings for external libraries. r582 in RC4 fixes the issue, thank you very much!
Great! Thanks for reporting this issue.
Cheers,
Nenad
On Wed, May 7, 2014 at 3:15 AM, Marcel Raad marcelraad@users.sf.net wrote: