It took me a while to see what the bug was saying...eeeeek.
Edit: IIRC SplashTextOn was one of the very early pieces of code. But still....
Edited by Jon, 23 May 2011 - 05:55 PM.
Posted 23 May 2011 - 05:57 PM
Posted 23 May 2011 - 05:59 PM
Posted 23 May 2011 - 06:12 PM
Find all "const_cast", Subfolders, Find Results 1, "Entire Solution" C:\Data\My Programs\C++\Autoit\autoit\src\script_inet.cpp(336): // const_cast is used here because the function expects LPVOID. The casts are safe, though. C:\Data\My Programs\C++\Autoit\autoit\src\script_inet.cpp(337): InternetSetOption(hInet, INTERNET_OPTION_PROXY_USERNAME, const_cast<LPTSTR>(sProxyUser.c_str()), static_cast<DWORD>(sProxyUser.length() + 1) ); C:\Data\My Programs\C++\Autoit\autoit\src\script_inet.cpp(338): InternetSetOption(hInet, INTERNET_OPTION_PROXY_PASSWORD, const_cast<LPTSTR>(sProxyPass.c_str()), static_cast<DWORD>(sProxyPass.length() + 1)); C:\Data\My Programs\C++\Autoit\autoit\src\CreateProcessSimple.cpp(206): ProfileInfo.lpUserName = const_cast<LPWSTR>(lpUsername); C:\Data\My Programs\C++\Autoit\autoit\src\script_inet.cpp(336): // const_cast is used here because the function expects LPVOID. The casts are safe, though. C:\Data\My Programs\C++\Autoit\autoit\src\script_inet.cpp(337): InternetSetOption(hInet, INTERNET_OPTION_PROXY_USERNAME, const_cast<LPTSTR>(sProxyUser.c_str()), static_cast<DWORD>(sProxyUser.length() + 1) ); C:\Data\My Programs\C++\Autoit\autoit\src\script_inet.cpp(338): InternetSetOption(hInet, INTERNET_OPTION_PROXY_PASSWORD, const_cast<LPTSTR>(sProxyPass.c_str()), static_cast<DWORD>(sProxyPass.length() + 1)); C:\Data\My Programs\C++\Autoit\autoit\src\CreateProcessSimple.cpp(206): ProfileInfo.lpUserName = const_cast<LPWSTR>(lpUsername); Matching lines: 8 Matching files: 4 Total files searched: 294
Edited by Valik, 23 May 2011 - 06:12 PM.
Posted 23 May 2011 - 07:01 PM
Posted 23 May 2011 - 07:26 PM
LPCTSTR szTemp = _tcstok((LPTSTR)szText, _T("\r\n") );
Posted 23 May 2011 - 09:33 PM
Posted 24 May 2011 - 10:15 AM
Edited by Manadar, 24 May 2011 - 10:20 AM.
Posted 24 May 2011 - 10:35 AM
Func StringGetFirstLine($str) SplashTextOn("", $str, -10, -10, 0, 0, 32 + 1) SplashOff() Return $str EndFunc
Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.
0 members, 0 guests, 0 anonymous users