C语言
PETER327447
这个作者很懒,什么都没留下…
展开
-
C语言回调函数
回调函数,在C++中类似的实现的方法为虚拟方法或者仿函数;思想:(1)函数名作为形参传递使用时,和变量没什么区别,只不过变量是传递的具体值,而函数是一个变动的值实现场景: (1) 普通函数:你所写的函数调用系统函数,你只管调用,不管实现。 (2)回调函数:系统调用你所写的函数,你只管实现,不管调用。#include type原创 2017-04-28 11:28:21 · 262 阅读 · 0 评论 -
string与wstring转换
BOOL StringToWString(const std::string &str,std::wstring &wstr) 2 { 3 int nLen = (int)str.length(); 4 wstr.resize(nLen,L' '); 5 6 int nResult = MultiByteToWideChar(CP_AC转载 2017-05-08 18:46:13 · 328 阅读 · 0 评论 -
欢迎使用CSDN-markdown编辑器
C中System执行失败的原因*配置VS:工程上右键,属性->Linker->Manifest File->UAC Execution Leve改为requireAdministrator *原创 2017-10-17 13:10:06 · 267 阅读 · 0 评论