Lint Analysis Results Report for UsingDLL.cpp |
| Implementation file: | D:\Projects\AddIns\Visual Lint\Test Solutions\VS2008\UltimateToolbox93_samples\Ultimate Toolbox\samples\GettingStarted\UsingDLL\UsingDLL.cpp |
|---|---|
| Project: | UsingDLL |
| Solution: | usingdll.dsw [configuration: Win32 Debug] |
| Analysis Status: | Complete |
| Last Analysed: | Monday, January 05, 2009, 14:29:25 |
| Analysis Time: | 00 hours 00 minutes 04 seconds |
| Total Issues: | 9 |
| Elective Notes: | 4 (44.44%) |
| Informational: | 3 (33.33%) |
| Warnings: | 2 (22.22%) |
| Errors: | 0 (0.00%) |
| Internal Errors: | 0 (0.00%) |
| Fatal Errors: | 0 (0.00%) |
| User: | Anna |
| Computer: | GABRIELLE |
Issue count by category ![]() Issue count by message number ![]() |
| Order | Category | Severity | Issue No. | Source File | Line No. | Issue Text |
|---|---|---|---|---|---|---|
| 1 | Elective Note | 1 | 1931 | UsingDLLDlg.h | 20 | Constructor 'CUsingDLLDlg::CUsingDLLDlg(CWnd *)' can be used for implicit conversions -- More Effective C++ #5 |
| 2 | Elective Note | 1 | 1925 | UsingDLLDlg.h | 25 | Symbol 'CUsingDLLDlg::m_HyperLink' is a public data member -- Effective C++ #20 & Eff. C++ 3rd Ed. item 22 |
| 3 | Information | 2 | 1768 | UsingDLLDlg.h | 40 | Virtual function 'CUsingDLLDlg::OnInitDialog(void)' has an access (protected) different from the access (public) in the base class (CDialog) |
| 4 | Elective Note | 1 | 1928 | UsingDLL.cpp | 29 | Symbol 'CWinApp' did not appear in the constructor initializer list -- Effective C++ #12 |
| 5 | Warning | 3 | 534 | UsingDLL.cpp | 52 | Ignoring return value of function 'CWinApp::Enable3dControls(void)' (compare with line 4369, file C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afxwin.h) |
| 6 | Information | 2 | 830 | C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afxwin.h | 4369 | Location cited in prior message |
| 7 | Warning | 3 | 1414 | UsingDLL.cpp | 58 | Assigning address of auto variable 'dlg' to member of this |
| 8 | Elective Note | 1 | 953 | UsingDLL.cpp | 74 | Variable 'nResponse' (line 59) could be declared as const --- Eff. C++ 3rd Ed. item 3 |
| 9 | Information | 2 | 830 | UsingDLL.cpp | 59 | Location cited in prior message |
--- Module: UsingDLL.cpp (C++)
WINVER not defined. Defaulting to 0x0501 (Windows XP and Windows .NET Server)
Automatically linking with UTD.lib - please make sure this file is built.
CUsingDLLDlg(CWnd* pParent = NULL); // standard constructor
UsingDLLDlg.h(20): error 1931: (Note -- Constructor 'CUsingDLLDlg::CUsingDLLDlg(CWnd *)' can be used for implicit conversions -- More Effective C++ #5)
COXStaticHyperLink m_HyperLink;
UsingDLLDlg.h(25): error 1925: (Note -- Symbol 'CUsingDLLDlg::m_HyperLink' is a public data member -- Effective C++ #20 & Eff. C++ 3rd Ed. item 22)
virtual BOOL OnInitDialog();
UsingDLLDlg.h(40): error 1768: (Info -- Virtual function 'CUsingDLLDlg::OnInitDialog(void)' has an access (protected) different from the access (public) in the base class (CDialog))
{
UsingDLL.cpp(29): error 1928: (Note -- Symbol 'CWinApp' did not appear in the constructor initializer list -- Effective C++ #12)
Enable3dControls(); // Call this when using MFC in a shared DLL
UsingDLL.cpp(52): error 534: (Warning -- Ignoring return value of function 'CWinApp::Enable3dControls(void)' (compare with line 4369, file C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afxwin.h))
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afxwin.h(4369): error 830: (Info -- Location cited in prior message)
m_pMainWnd = &dlg;
UsingDLL.cpp(58): error 1414: (Warning -- Assigning address of auto variable 'dlg' to member of this)
}
UsingDLL.cpp(74): error 953: (Note -- Variable 'nResponse' (line 59) could be declared as const --- Eff. C++ 3rd Ed. item 3)
UsingDLL.cpp(59): error 830: (Info -- Location cited in prior message)
--- Global Wrap-up
error 900: (Note -- Successful completion, 9 messages produced)