首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏C++

    Windows核心编程:第2章 字符和字符串处理

    // #include "stdafx.h" #include "第2章 字符和字符串处理.h" #include "StrSafe.h" int APIENTRY wWinMain(_In_ HINSTANCE 加上字符串结尾,所以>=1) //截断拷贝 HRESULT hres = StringCchCatEx(str2, _countof(str2), str, &pend, &left, STRSAFE_FILL_BEHIND_NULL

    59840发布于 2018-06-22
  • 来自专栏ccf19881030的博客

    VS2005中关于char[]转换成LPCWSTR的问题

    seed=824864853&r=60494553#r_60494553 代码如下: #include <windows.h> #include <atlstr.h> #define STRSAFE_NO_DEPRECATE #include <strsafe.h>            // for String... functions #include <crtdbg.h>                // for

    1.8K20发布于 2019-04-29
  • 来自专栏全栈程序员必看

    windows安装opencv(opencv安装不了)

    ,解决办法是在sources/modules/videoio/src/cap_dshow.cpp添加宏定义#define STRSAFE_NO_DEPRECATE (官网教程是添加#define NO_DSHOW_STRSAFE

    1.8K20编辑于 2022-07-29
  • 来自专栏方亮

    Windows客户端C/C++编程规范“建议”——函数

    解决方案:         如果是因为我们使用strsafe.h导致VC库或者可信的第三方库(比如boost)报该warning。 则我们可以调整strsafe.h的包含位置等方法去除。         其他场景出现该warning,应该使用安全函数替代。这些函数的安全版本一般是在原函数后面增加_s。

    1.7K10发布于 2019-01-16
  • 来自专栏程序员互动联盟

    【编程基础】Win32窗口下调试输出

    用这个函数格式化后直接用printf输出,在窗口程序下结合上面的OutputDebugString函数,也能方面的知道错误描述了,完整的函数如下: #include <windows.h> #include <strsafe.h

    2.1K80发布于 2018-03-13
  • 来自专栏方亮

    进程间通信:同步双工管道

    服务端 #include "stdafx.h" #include "PipeServerInstance.h" #include <string> #include <strsafe.h> CPipeServerInstance TCHAR); }         客户端 #include "stdafx.h" #include "PipeClientInstance.h" #include <string> #include <strsafe.h

    1.8K30发布于 2019-01-16
  • 来自专栏jiajia_deng

    重载 new、delete 检测内存泄露

    实现代码 #include <tchar.h> #include <windows.h> #include <strsafe.h> #define H_ALLOC(sz) HeapAlloc

    61540编辑于 2023-10-21
  • 来自专栏一个程序员的修炼之路

    让应用程序同时只启动一次

    <windows核心编程>> #include<windows.h> #include <Sddl.h> #include<stdio.h> #include<string.h> #include <strsafe.h

    1.2K20发布于 2021-08-06
  • 来自专栏全栈程序员必看

    Windows进程间通信—命名管道

    、关闭连接:DisconnectNamedPipe 6、关闭管道:CloseHandle #include "stdafx.h" #include <windows.h> #include <strsafe.h

    1.7K10编辑于 2022-07-18
  • 来自专栏MasiMaro 的技术博文

    windows错误处理

    下面是一个具体的例子: #include <windows.h> #include <tchar.h> #include <stdio.h> #include <strsafe.h> #define

    1.2K20发布于 2018-08-31
  • 来自专栏黑白天安全团队

    Antimalware Scan Interface Provider for Persistence

    2.需要向 COM 注册 HKLM\SOFTWARE\Classes\CLSID 微软文档中的注册方法: #include <strsafe.h>...HRESULT SetKeyStringValue

    1.1K10发布于 2021-07-16
  • 来自专栏全栈程序员必看

    进程间通信之CreatePipe

    //parent.cpp #include <windows.h> #include <tchar.h> #include <stdio.h> #include <strsafe.h> #define

    1.2K10编辑于 2022-09-17
  • 来自专栏方亮

    分析两种Dump(崩溃日志)文件生成的方法及比较

            我们先看一种标准的Dump生成方案: #include "CreateDump.h" #include <atlbase.h> #include <atlstr.h> #include <strsafe.h

    2.2K20发布于 2019-01-16
  • 来自专栏MasiMaro 的技术博文

    windows 多任务与进程

    下面是一个简单的例子: #include <Windows.h> #include <tchar.h> #include <strsafe.h> #define PRINTF(...) \ { StringCchPrintf(szBuf, sizeof(szBuf), __VA_ARGS__);\ size_t nStrLen = 0;\ StringCchLength(szBuf, STRSAFE_MAX_CCH

    1.5K40发布于 2018-08-31
  • 来自专栏MasiMaro 的技术博文

    OLEDB数据源

    IDBInitialize接口 这种方式一般调用CoCreateInstance函数创建,下面是具体的代码 #include <tchar.h> #include <windows.h> #include <strsafe.h

    1.1K20发布于 2018-08-31
领券