2017年9月27日 星期三

[VC6] c (70): error RC2176 : old DIB in res ico; pass it through SDKPAINT

更改VC6圖示發生問題,是因為VC6 ICON只支援8bit 的256色,不支援24bit的True Color或以上。
需下載256 color的icon,通常256的檔案比較小

例如:if_Download_131838.ico

[cid:image001.png@01D337B7.EC977C90]

修改圖示的方法為:
在VC ResourceView->Icon->Import 選擇icon,build成功,表示VC6支援
再將舊icon刪除,並將新icon改id為:IDR_MAINFRAME,即可更換VC6圖示

[cid:image003.png@01D337B8.61A575A0]


[cid:image004.png@01D337B8.F4267EB0]




https://www.iconfinder.com/icons/131838/down_download_downloads_folder_icon#size=32



--------------------Configuration: Sata_Dump_Eventlog - Win32 Debug--------------------
Compiling resources...
D:\3S_PC\sourceCode\SSD\SSD_tools\Sata_Dump_Eventlog\Sata_Dump_Eventlog.rc (70): error RC2176 : old DIB in res\if_1-01_511561.ico; pass it through SDKPAINT
Error executing rc.exe.

Sata_Dump_Eventlog.exe - 1 error(s), 0 warning(s)

[cid:image002.png@01D337B7.EC977C90]

________________________________________ 3S CONFIDENTIALITY NOTICE: This message and all attachments may contain legally privileged and confidential information. Any unauthorized review, use or distribution by anyone other than the intended recipient is strictly prohibited. If you are not the intended recipient, please contact the sender immediately by replying to the message and delete all copies. Thank you.

2017年9月21日 星期四

error C2065: 'DEVICE_NOTIFY_ALL_INTERFACE_CLASSES' : undeclared identifier

Q:
error C2065: 'DEVICE_NOTIFY_ALL_INTERFACE_CLASSES' : undeclared identifier

SOL:
在stdAfx.h 加入即可
#define _WIN32_WINNT 0x0501

[cid:image001.png@01D3330B.E481E050]


[cid:image002.png@01D3330B.E481E050]

________________________________________ 3S CONFIDENTIALITY NOTICE: This message and all attachments may contain legally privileged and confidential information. Any unauthorized review, use or distribution by anyone other than the intended recipient is strictly prohibited. If you are not the intended recipient, please contact the sender immediately by replying to the message and delete all copies. Thank you.

2017年9月20日 星期三

[MFC]error C2065, error C2061, error C2039(wrong platform Toolset)

[cid:image002.png@01D33235.87963520]

12 IntelliSense: identifier "TP_CALLBACK_PRIORITY_NORMAL" is undefined c:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h 19601 41 MFCWLog
10 IntelliSense: identifier "TP_CALLBACK_PRIORITY" is undefined c:\Program Files (x86)\Windows Kits\8.1\Include\um\WinBase.h 7178 13 MFCWLog
11 IntelliSense: identifier "TP_CALLBACK_PRIORITY" is undefined c:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h 19542 5 MFCWLog
13 IntelliSense: identifier "TP_CALLBACK_PRIORITY" is undefined c:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h 19684 13 MFCWLog
Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files (x86)\windows kits\8.1\include\um\winnt.h 19542 1 MFCWLog
Error 1 error C2146: syntax error : missing ';' before identifier 'CallbackPriority' c:\program files (x86)\windows kits\8.1\include\um\winnt.h 19542 1 MFCWLog
Error 4 error C2065: 'TP_CALLBACK_PRIORITY_NORMAL' : undeclared identifier c:\program files (x86)\windows kits\8.1\include\um\winnt.h 19601 1 MFCWLog
Error 7 error C2065: 'Priority' : undeclared identifier c:\program files (x86)\windows kits\8.1\include\um\winnt.h 19687 1 MFCWLog
Error 9 error C2065: 'Priority' : undeclared identifier c:\program files (x86)\windows kits\8.1\include\um\winbase.h 7181 1 MFCWLog
Error 5 error C2061: syntax error : identifier 'TP_CALLBACK_PRIORITY' c:\program files (x86)\windows kits\8.1\include\um\winnt.h 19684 1 MFCWLog
Error 8 error C2061: syntax error : identifier 'TP_CALLBACK_PRIORITY' c:\program files (x86)\windows kits\8.1\include\um\winbase.h 7178 1 MFCWLog
Error 3 error C2039: 'CallbackPriority' : is not a member of '_TP_CALLBACK_ENVIRON_V3' c:\program files (x86)\windows kits\8.1\include\um\winnt.h 19601 1 MFCWLog
Error 6 error C2039: 'CallbackPriority' : is not a member of '_TP_CALLBACK_ENVIRON_V3' c:\program files (x86)\windows kits\8.1\include\um\winnt.h 19687 1 MFCWLog


設錯platform Toolset
[cid:image001.png@01D33234.AE844AB0]


設回來就好
[cid:image003.png@01D33235.CAB10290]
________________________________________ 3S CONFIDENTIALITY NOTICE: This message and all attachments may contain legally privileged and confidential information. Any unauthorized review, use or distribution by anyone other than the intended recipient is strictly prohibited. If you are not the intended recipient, please contact the sender immediately by replying to the message and delete all copies. Thank you.