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

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

error LNK2019: 无法解析的外部符号_socket,该符号在函数 中被引用 - C/C+...

error LNK2019: 无法解析的外部符号_socket,该符号在函数 中被引用1>NetClient.obj : error LNK2019: 无法解析的外部符号 _closesocket@4,该符号在函数 _main 中被引用1>NetClient.obj : error L...1>NetClient.obj : error LNK2019: 无法解析的外部符号 _closesocket@...
https://www.tsingfun.com/it/cpp/1523.html 

C++程序结果出现1.#inf 1.#IO - C/C++ - 清泛网 - 专注C/C++及内核技术

...值了),1.#IO是%lf格式化出来的字符串。极可能原因:除0了,也就是f1 = f2 0。做任何除法...表象原因:浮点数越界了(超过FLT_MAX最大值了),1.#IO是 %lf 格式化出来的字符串。 极可能原因:除0了,也就是f1 = f2 / 0。 做任何...
https://www.tsingfun.com/it/cpp/1539.html 

csplitterwnd 窗口不能自适应的解决方法 - C/C++ - 清泛网 - 专注C/C++及内核技术

...tterwnd 窗口不能自适应的解决方法if (!m_wndSplitterH.CreateView(0, 0, RUNTIME_CLASS(CGraphFrame), sizeDummy, pContext)) { TRACE0("Failed to cr...if (!m_wndSplitterH.CreateView(0, 0, RUNTIME_CLASS(CGraphFrame), sizeDummy, pContext)) { TRACE0("Failed to creat...
https://www.tsingfun.com/it/cpp/1544.html 

LOGFONT 和 CFont 区别 - C/C++ - 清泛网 - 专注C/C++及内核技术

... f->CreateFont(13, // nHeight 0, // nWidth 0, // nEscapement 0, // nOrientation 400, // nWeight ...
https://www.tsingfun.com/it/cpp/1572.html 

GetClientRect、GetWindowRect区别 - C/C++ - 清泛网 - 专注C/C++及内核技术

...tClientRect、GetWindowRect区别前者是相对窗口本身的坐标(如0, 0, 400, 300),后者是相对整个屏幕的坐标(假设窗口左上角位置100,100,则窗口Rect:100, 100, 400, 300)。前者是相对窗口本身的坐标(如0, 0, 400, 300),后者是相对整个屏幕...
https://www.tsingfun.com/it/cpp/1574.html 

MFC 多线程编程简单实例 - C/C++ - 清泛网 - 专注C/C++及内核技术

... HANDLE hThread = CreateThread( NULL, 0, ThreadProc, NULL, // 需要传递给回调函数的参数(数据),可为NULL 0, &dwThreadId); printf("ThreadID:%d\n", dwThreadId); ...
https://www.tsingfun.com/it/cpp/2103.html 

/usr/include/c++/4.9/bits/stl_iterator_base_types.h:165:53: error: ‘i...

...n fabs(a-b); } int main() { vector<int> age; age.push_back(10); age.push_back(15); cout << distance(age[0],age[1]); return 0; } 这段代码初看起来并无错误,编译时提示上述错误,原因在于使用std命名空间,而std命名空间中已经有了std::d...
https://www.tsingfun.com/it/cpp/2119.html 

MFC GDI中位图的显示 位图绘制 - C/C++ - 清泛网 - 专注C/C++及内核技术

...pDC)兼容的DC dcCompatible.SelectObject( &bitmap ); pDC->BitBlt( 0, 0, 24, 24, &dcCompatible, 0, 0, SRCCOPY ); //StretchBlt可以按照指定大小实现位图的伸缩和拉伸,用法一样 效果(位置暂未调整): MFC GDI 位图 CBitmap BitBlt
https://www.tsingfun.com/it/cpp/2129.html 

VC中CStatic等控件字体颜色的设置和OnCtlColor的使用 - C/C++ - 清泛网 - ...

...{ if (nCtlColor == CTLCOLOR_STATIC) { pDC->SetTextColor(RGB(0,0,255));//设置字体颜色 pDC->SetBkMode(TRANSPARENT); //设置背景透明 } } 第三个参数OnCtlColor主要有以下的值: CTLCOLOR_BTN 按钮控件 CTLCOLOR_DLG 对话框 CTLCOLOR_EDIT ...
https://www.tsingfun.com/it/cpp/2136.html 

C++ 通过主机名/域名获取IP - C/C++ - 清泛网 - 专注C/C++及内核技术

...正确值,用于下面的加载Winscok库 if ( WSAStartup( MAKEWORD(2,0), &wsaData ) == 0 ) { //加载Winsock库,如果WSAStartup()函数返回值为0,说明加载成功,程序可以继续往下执行 if( gethostname ( name, sizeof(name)) == 0) { //如果成功,将本地主...