大约有 59 项符合查询结果(耗时:0.0019秒) [XML]

https://bbs.tsingfun.com/thread-361-1-1.html 

第一个Hello,OS World操作系统源码下载 - c++1y / stl - 清泛IT社区,为创新赋能!

原文参见:《第一个Hello,OS World操作系统》。 原文中代码均已贴上,为了鼓励大家自己动手敲写代码、自行调试运行,加深对代码的理解,此部分工程源码不免费提供下载,需要10F币,希望大家多多理解支持。
https://bbs.tsingfun.com/thread-858-1-1.html 

error LNK2019: 无法解析的外部符号 _Netbios@4,该符号在函数 中被引用 - c...

解决方法如下:Cpp文件include语句之后加上如下代码:#pragma comment(lib,"netapi32.lib")
https://bbs.tsingfun.com/thread-566-1-1.html 

ThreadXxx.cc:100: error: ‘::pthread_kill’ has not been declared - c+...

#include <pthread.h> #include <signal.h> 除了pthread.h外,还要引入signal.h头文件才行,解决。
https://bbs.tsingfun.com/thread-827-1-1.html 

error LNK2019: 无法解析的外部符号 _GetFileVersionInfoSizeW@8,该符号在...

GetFileVersionInfoSize build时出现link2019 链接错误: #pragma comment(lib, "version") 解决。
https://bbs.tsingfun.com/thread-859-1-1.html 

VS工程“生成事件”之文件拷贝 - c++1y / stl - 清泛IT社区,为创新赋能!

... 如果有多个编译版本需要拷贝多份,这样不便于维护(config等配置文件也是如此,最好不要弄多份副本)。 这时我们“在生成事件”中拷贝文件就能解决这个问题,如“预先生成事件”在编译前执行: 拷单文件至Debug/Rel...
https://bbs.tsingfun.com/thread-567-1-1.html 

ThreadXxx.h:100: error: ‘pthread_t’ was not declared in this scope -...

pthread_t在头文件/usr/include/bits/pthreadtypes.h中定义:typedef unsigned long int pthread_t;复制代码它是一个线程的标识符。 #include <pthread.h>   解决。
https://bbs.tsingfun.com/thread-816-1-1.html 

c++读注册表 - c++1y / stl - 清泛IT社区,为创新赋能!

CString key; key.Format(_T("Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\xxx")); HKEY hKey; LONG rc = RegOpenKey(HKEY_LOCAL_MACHINE, key, &hKey); if (ERROR_SUCCESS == rc) {         WCHAR szBuffer[MAX_PATH];        &nbsp...
https://bbs.tsingfun.com/thread-887-1-1.html 

c++编译错误:invalid new-expression of abstract class type - c++1y / s...

...bsp;}  空函数体也是实现。 纯虚函数相当于C#中abstract抽象类。 =0 说明函数是抽象的方法,谁继承它就必须实现它 否则不能new。
https://bbs.tsingfun.com/thread-893-1-1.html 

解决:Successful WSAStartup not yet performed. Error code : 10093. - c...

...没有调用 WSAStartup,或者 WSAStartup 失败。 原因:调用WSASocket等Socket函数之前必须先执行WSAStartup()初始化。 解决方法: BOOL CxxxApp::InitInstance() {         WSADATA wsaData;         int res = WSAStar...
https://bbs.tsingfun.com/thread-812-1-1.html 

C++字符串截断时中文的处理问题(中文被截断怎么处理?) - c++1y / stl - ...

...,不为零则该字节是汉字的第一个字节,否则是普通的ASCII字符。 具体请参考:http://www.tsingfun.com/html/2016/dev_0331/1335.html 当然,还有其他方式就是判断 > 127 或 < 0(即首bit为1,signed时值为负),道理也是一样,不过推荐...