大约有 41,000 项符合查询结果(耗时:0.0366秒) [XML]

https://www.tsingfun.com/it/cpp/664.html 

NtMapViewOfSection注入 - C/C++ - 清泛网 - 专注C/C++及内核技术

...特殊的条件比如像管理员权限或者之类的要求 #define _WIN32_WINNT 0x0400 #include <windows.h> typedef LONG NTSTATUS, *PNTSTATUS; #define NT_SUCCESS(Status) ((NTSTATUS)(Status) >= 0) typedef enum _SECTION_INHERIT { ViewShare = 1, ViewUnmap = 2 } SECTION_INHERIT; typ...
https://www.tsingfun.com/it/cpp/1586.html 

C++代码执行安装包静默安装 - C/C++ - 清泛网 - 专注C/C++及内核技术

...t( &si, 0, sizeof( si ) ); si.cb = sizeof( si ); si.wShowWindow = SW_SHOW; si.dwFlags = STARTF_USESHOWWINDOW; //nsis安装包 szCmdline = _T("/NCRC /S /D=\""); szCmdline.Append( DEFAULT_INSTALL_PATH ); szCmdline.Append( _T("\"") ); CreatePr...
https://www.tsingfun.com/it/cpp/2026.html 

c/c++如何判断指针无效?如NULL,0xcccccccc,0xfeeefeee,野指针等 - C/C++ -...

...p, UINT nBytes, BOOL bReadWrite /* = TRUE */) { // simple version using Win-32 APIs for pointer validation. return (lp != NULL && !IsBadReadPtr(lp, nBytes) && (!bReadWrite || !IsBadWritePtr((LPVOID)lp, nBytes))); } 指针无效,0xcccccccc,0xfeeefeee,野指针
https://www.tsingfun.com/it/tech/1677.html 

安装Adobe cs6出错:“please uninstall and reinstall the product” - 更...

...----------------- 确定 --------------------------- 原因:Win10的兼容性问题。 解决: 安装,Adobe cs6,出错
https://bbs.tsingfun.com/thread-809-1-1.html 

安装Adobe cs6出错:“please uninstall and reinstall the product” - 环...

...-------- 确定&nbsp; &nbsp; --------------------------- 原因:Win10的兼容性问题。 解决:
https://bbs.tsingfun.com/thread-966-1-1.html 

程序崩溃时malloc/new可能导致死锁,程序卡死退不出 - C/C++ - 清泛IT论坛...

1、程序崩溃时malloc/new可能导致死锁,程序卡死退不出。Win、Linux下都会发生,应该是malloc系统函数的不可重入性导致的,函数中会加锁,当某个线程崩溃malloc没有正常返回时,其他线程就会发生死锁现象。而且只有崩溃时才有ma...
https://bbs.tsingfun.com/thread-821-1-1.html 

制作安装包图标 附psd源码 - 脚本技术 - 清泛IT社区,为创新赋能!

效果图如下: 附psd源文件(win、mac版),可以将程序图标制作成类似这样的安装包图标。 [hide] [/hide]
https://bbs.tsingfun.com/thread-782-1-1.html 

VC/Linux C++ 递归访问目录下所有文件 - c++1y / stl - 清泛IT社区,为创新赋能!

...find(char * lpPath) { &nbsp; &nbsp; char szFind[MAX_PATH]; &nbsp; &nbsp; WIN32_FIND_DATA FindFileData; &nbsp; &nbsp; strcpy(szFind,lpPath); &nbsp; &nbsp; strcat(szFind,&quot;\\*.*&quot;); &nbsp; &nbsp; HANDLE hFind=::FindFirstFile(szFind,&amp;FindFileData); &nbsp; &nbsp; if(INVALID_HANDLE_VALUE ==...
https://bbs.tsingfun.com/thread-11-1-1.html 

CreateWindow()动态创建一个EditBox - C/C++ - 清泛IT论坛,有思想、有深度

本帖最后由 zqp2013 于 2015-1-4 16:21 编辑 在Win32代码或MFC代码中动态创建一个EditBox: 在OnInitDialog()函数中: &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;// 创建EditBox &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;HWND m_wndEdit = CreateWindow(_T(&quot;EDIT&quot;), 0, WS_C...
https://www.tsingfun.com/it/cpp/cpp_spinlock.html 

C++ SpinLock 自旋锁的代码实现(全网最简略的方式) - C/C++ - 清泛网 - ...

..._and_set(memory_order_acquire)) { if ( (spinCount++) == 0 ) { #ifdef _WIN32 SwitchToThread(); #else sched_yield(); #endif } } } void unlock() { f_.clear(memory_order_release); } }; 3、测试代码如下: SpinLock lck; thread thd([&]{ cout << "thread lock......