1. error 1 error c2440: 'static _ cast': cannot convert from 'void (_ thiscall cmainframe: *) (nmtoolbara *, lresult *) 'To 'void (_ thiscall c0000target: *) (nmhdr *, lresult *) 'd:/job project related/12452121/mainfrm. CPP 33 myimgapp
It should be
Afx_msg void ontoolbardropdown (nmhdr * pnmh, lresult * plres );
Note that nmhdr is the standard parameter of the notify event. For different events, you can perform forced conversions of the corresponding types in the event.
For example:
Nmtoolbar * pnmhtoolbar = (nmtoolbar *) pnmh;
Http://topic.csdn.net/t/20040917/11/3382544.html
Bytes -------------------------------------------------------------------------------------------
2. error c2440: 'static _ cast': cannot convert from 'uint (_ thiscall cstaticlink: *) (cpoint) 'to 'lresult (_ thiscall cwnd ::*) (cpoint )'
If you are updating from vs2003 to vs2005, C ++, you might run against SS an error like this. what it means is that they changes the return types from 2003 to 2005. you just need to change the uint to an lresult and you should be good to go.
Http://blog.stevienova.com/2007/02/28/error-c2440-static_cast-cannot-convert-from-uint-__thiscall-cstaticlink-cpoint-to-lresult-__thiscall-cwnd-cpoint/
Bytes -------------------------------------------------------------------------------------------
3. Warning lnk4076: Invalid incremental Status File
Rebuild all should be okay.
Http://topic.csdn.net/t/20020314/15/575784.html
Bytes -------------------------------------------------------------------------------------------
4. Warning c4996: 'winapp: enable3dcontrols ': cwinapp: enable3dcontrols is no longer needed. You shoshould remove this call.
This is a problem encountered during compilation and use of the MFC code generated by the old wizard. A typical alarm information is output as follows:
Crpfilecrack. cpp
F:/project /..... /crpfilecrack. CPP (52): Warning c4996: 'cwinapp: enable3dcontrols ': cwinapp: enable3dcontrols is no longer needed. you shoshould remove this call.
E:/software/Microsoft Visual Studio 9.0/VC/atlmfc/include/afxwin. H (4818): See Declaration of 'cwinapp: enable3dcontrols'
The code generated by the Wizard is:
# Ifdef _ afxdll
Enable3dcontrols (); // call this when using MFC in a shared DLL
# Else
Enable3dcontrolsstatic (); // call this when linking to MFC statically
# Endif
The two functions are called by the old MFC version to support the features of the new version of the operating system, in the new (at that time the new) on the Windows 95 Platform, you need to call the new windows 3D style control in this way. Otherwise, it is the old windows 3.2 Control. I thought that I liked owl because I felt that its controls were "cool", such as the dialog box with shading, the diamond checkbox, and the "OK" button with icons, seeing the gray interface made by MFC, I felt the soil, but later I knew that the interface made by MFC was also very beautiful, such as what I made ...., stop again. For the new MFC version, you no longer need to call these two functions. refer to the previous method and use _ msc_ver to isolate them:
# If _ msc_ver <= 1200 // MFC 6.0 or earlier
# Ifdef _ afxdll
Enable3dcontrols (); // call this when using MFC in a shared DLL
# Else
Enable3dcontrolsstatic (); // call this when linking to MFC statically
# Endif
# Endif
Http://blog.csdn.net/orbit/archive/2008/11/28/3405309.aspx
------------------------------ The above is a problem encountered when compiling a program that shows JPG format (uploaded online) in MFC ---------------------------
-------------------- The original code is compiled in vc6. The above error occurs in vs2008. After modification, the code is compiled through -------------------
5. Warning c4819: The file contains a character that cannot be represented in the current Code Page (936). Save the file in unicode format to prevent data loss
Http://www.opencv.org.cn/forum/viewtopic.php? F = 1 & t = 2664 reference
Bytes -------------------------------------------------------------------------------------------
6. Error c3861: 'pathfindextension': identifier not found
If you see these errors like this below, do including # include. Good luck.
C:/program files/Microsoft Visual Studio. NET 2003/vc7/atlmfc/include/atlbase. H (5934): Error c3861: 'pathfindextension': identifier not found, even with argument-dependent Lookup
C:/program files/Microsoft Visual Studio. NET 2003/vc7/atlmfc/include/atlbase. H (6239): Error c2061: syntax error: identifier 'dllversioninfo'
C:/program files/Microsoft Visual Studio. NET 2003/vc7/atlmfc/include/atlbase. H (6244): Error c2065: 'dllgetversionproc': Undeclared identifier
C:/program files/Microsoft Visual Studio. NET 2003/vc7/atlmfc/include/atlbase. H (6244): Error c2146: syntax error: Missing '; 'before identifier' pfndllgetversion'
C:/program files/Microsoft Visual Studio. NET 2003/vc7/atlmfc/include/atlbase. H (6244): Error c2065: 'pfndllgetversion': Undeclared identifier
C:/program files/Microsoft Visual Studio. NET 2003/vc7/atlmfc/include/atlbase. H (6244): Error c2143: syntax error: Missing '; 'before' getprocaddress'
C:/program files/Microsoft Visual Studio. NET 2003/vc7/atlmfc/include/atlbase. H (6244): Error c3861: 'dlgetversionproc': identifier not found, even with argument-dependent Lookup
Http://cid-0fe018764d78a562.spaces.live.com/blog/cns! Fe018764d78a133! 134. Entry
This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/dengjiang1999/archive/2009/04/17/4086217.aspx