摘要:
osql.exe -S %TARGETSERVER% -E -d Northwind -Q"select db_id()" > nulif %errorlevel% == 0 ( @echo. @echo Northwind DB already exists. @echo. goto end)@echo.@echo Creating Northwind DB ...@echo.osql.e... 阅读全文
摘要:
'CString' to 'std::string':std::string cannot always construct from a LPCTSTR i.e. the code will fail for UNICODE builds.So the following conversion will lead to error:CString cs("Hello");std::string ... 阅读全文
摘要:
Original link: http://www.codeguru.com/forum/showthread.php?t=436716A: An easy way is to use FindFirstChangeNotification, FindNextChangeNotification and one of the wait functions in a worker thread. A... 阅读全文
摘要:
1. #ifndef HEADER_BASE_HPP#define HEADER_BASE_HPP class base_class{ // some code};#endif // HEADER_BASE_HPPThe first line checks whether we have not yet defined 'HEADER_BASE_HPP'. If we have not, then... 阅读全文
摘要:
在Windows的shellapi文件中定义了一个名为SHFileOperation()的外壳函数,用它可以实现各种文件操作,如文件的拷贝、删除、移动等,该函数使用起来非常简单,它只有一个指向SHFILEOPSTRUCT结构的参数。使用SHFileOperation()函数时只要填写该专用结构--SHFILEOPSTRUCT,告诉Windows执行什么样的操作,以及其它重要信息就行了。SHFile... 阅读全文