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

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

CListCtrl 扩展风格设置方法:SetExtendedStyle和ModifyStyleEx 区别 - C/C...

...件的扩展风格储存在GWL_EXSTYLE属性中,因为这个属性值为32长的DWORD型,窗口的常规扩展属性即以WS_EX_作为前缀的属性,已经把它占完了,所以对listctrl 的扩展风格,微软只能把它放在其他地方了。 CListCtrl 扩展风格 SetExtendedSty...
https://www.tsingfun.com/it/cpp/1587.html 

应用程序无法正常启动0xc0150002 - C/C++ - 清泛网 - 专注C/C++及内核技术

...CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.762"。 请使用 sxstrace.exe 进行详细诊断。 原来,我使用VS2013引用了VS2005编译出来的Debug版本的dll,而系统缺乏VS2005运行环境,导致程序启动失败。使用Rel...
https://www.tsingfun.com/it/cpp/1612.html 

注册DLL时报错:模块已加载,但对DllRegisterServer的调用失败,错误代码为...

...以管理员身份运行”: cd /d “dll所在的目录” regsvr32.exe /i xxx.dll COM 模块 DllRegisterServer 0x80070005
https://www.tsingfun.com/it/cpp/1614.html 

在ATL无窗口ActiveX 控件中如何使用定时器? - C/C++ - 清泛网 - 专注C/C++及内核技术

...环境下。 对于ATL无窗口的情况,只能使用原始SetTimer Win32 API函数,如下: 回调函数: VOID CALLBACK TimerProc( HWND hwnd, // 定时器消息的窗口句柄 UINT message, // WM_TIMER 消息 INT_PTR idTimer, // 定时器标志 DWORD d...
https://www.tsingfun.com/it/cpp/2026.html 

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

...INT 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/cpp/2107.html 

[完整实例源码]C&C++修改文件只读属性 - C/C++ - 清泛网 - 专注C/C++及内核技术

...h = "d:\\test.txt"; DWORD dwAttrs = GetFileAttributes(strPath); //空32,只读33,隐藏34,只读隐藏35 if (dwAttrs & FILE_ATTRIBUTE_READONLY && (dwAttrs < 34)) { //去掉文件只读属性 dwAttrs &= 0x3E; SetFileAttributes(strPath, dwAttrs); printf("File '%s' readon...
https://www.tsingfun.com/it/cpp/2146.html 

__declspec(dllexport) 导出符号解决链接失败问题 - C/C++ - 清泛网 - 专注C/C++及内核技术

...不可放在class的前面。 再来个跨平台版本: #ifdef WIN32 #ifdef XXX_EXPORTS #define XXX_API __declspace(dllexport) #elif defined USE_LIB #define XXX_API #else #define XXX_API __declspace(dllimport) #endif #define XXX_LOCAL #else #ifdef XXX_EXPORTS ...
https://www.tsingfun.com/it/cpp/2219.html 

rpcndr.h和wtypes.h冲突的解决方法 - C/C++ - 清泛网 - 专注C/C++及内核技术

...es (x86) microsoft sdks windows v7.0a include rpcndr.h(162): error C2632: char后面的in...当编译出现如下错误时: 1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\rpcndr.h(162): error C2632: “char”后面的“int”非法 1>c:\program files (x86)\microsoft sdks\wi...
https://www.tsingfun.com/it/cpp/2496.html 

hidden symbol ... is referenced by DSO 剖析 - C/C++ - 清泛网 - 专注C/C++及内核技术

...用如下代码即可兼容Win/Linux平台的函数导出: #ifdef WIN32 #ifdef XXX_EXPORTS #define XXX_API __declspace(dllexport) #else #define XXX_API __declspace(dllimport) #endif #define XXX_LOCAL #else #ifdef XXX_EXPORTS #define XXX_API __attribute__ ((visibility("defaul...
https://www.tsingfun.com/it/os_kernel/911.html 

Windows启动过程 - 操作系统(内核) - 清泛网 - 专注C/C++及内核技术

...  3 创建页面文件(pagefile.sys):   2 从\Windows\System32\Config\*.*.读取系统注册表   3 最后系统创建两个进程(Client Server Run-Time Subsystem), Winlogon.exe.       1 Csrss.exe负责系统的用户态,并向程序提供windows API接口  ...