随笔分类 -  VC++

摘要:打开visual studio installer卸载,再安装 翻译 搜索 复制 阅读全文
posted @ 2024-11-29 13:34 txwtech 阅读(12) 评论(0) 推荐(0) 编辑
摘要:vs2019项目VC_IncludePath修改 属性-》计算的值,继承的值 参考: https://www.cnblogs.com/YLJ666/p/14642002.html https://blog.csdn.net/z672160230/article/details/128498248 Q 阅读全文
posted @ 2024-11-28 09:51 txwtech 阅读(16) 评论(0) 推荐(0) 编辑
摘要:SAPI 包含sphelper.h编译错误解决方案 在使用Microsoft Speech SDK 5.1开发语音识别程序时,包含了头文件“sphelper.h”和库文件“sapi.lib”。 编译时出错: 1>c:/program files/microsoft speech sdk 5.1/in 阅读全文
posted @ 2021-11-15 19:29 txwtech 阅读(189) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/txwtech/article/details/115696293 按钮触发事件,启动线程: pThread=new CWinThread(); pThread->m_bAutoDelete=false; // m_pMainDlg = ::AfxGetM 阅读全文
posted @ 2021-09-13 10:52 txwtech 阅读(396) 评论(0) 推荐(0) 编辑
摘要:mfc_vc++最小化或者离开当前窗口后在任务栏的消息提醒闪烁功能 https://blog.csdn.net/txwtech/article/details/120250259 阅读全文
posted @ 2021-09-12 14:45 txwtech 阅读(127) 评论(0) 推荐(0) 编辑
摘要:vs2015,放在OnInitDialog()里面this->SetWindowPos(&wndTopMost, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE); 其它方法:设置置顶显示 ::SetWindowPos(hWnd,HWND_TOPMOST,0,0,0,0,SW 阅读全文
posted @ 2021-09-12 11:14 txwtech 阅读(2069) 评论(0) 推荐(0) 编辑
摘要:cnt=m_ListCtrl_Entity.GetItemCount(); CString show_content=L"有请求,请处理"; CString no_show_content=L"无请求"; if(cnt>0) { m_bSendMessage.Attach(IDC_BUTTON_Se 阅读全文
posted @ 2021-09-10 14:29 txwtech 阅读(77) 评论(0) 推荐(0) 编辑
摘要:MFC集成了相应的宏"TRACE"来实现这个功能。示例如下: TRACE("x = %d and y = %x and z = %f\n", 1, 2, 3); 可以直接打印信息,打印出来的东西在"输出窗口"中 Debug模式有效 //MessageBox(L"configIP="+configIP 阅读全文
posted @ 2021-09-10 08:34 txwtech 阅读(1484) 评论(0) 推荐(0) 编辑
摘要:1>正在生成代码...1>正在链接...1>正在嵌入清单...1>正在创建浏览信息文件...1>Microsoft ?????????? Version 8.00.507271>Copyright (C) Microsoft Corporation. All rights reserved.1>BS 阅读全文
posted @ 2021-08-16 11:40 txwtech 阅读(115) 评论(0) 推荐(0) 编辑
摘要:安装Windows SDK version 8.1 Windows SDK version 8.1 下载地址 Windows SDK version 8.1 下载地址 https://go.microsoft.com/fwlink/p/?LinkId=323507 阅读全文
posted @ 2021-08-13 16:04 txwtech 阅读(462) 评论(0) 推荐(0) 编辑
摘要:InterLockedIncrement 与 InterLockedDecrement 属于互锁函数,用在同一进程内,需要对共享的一个变量,做减法的时候, 防止其他线程访问这个变量,是实现线程同步的一种办法(互锁函数) 实现数的原子性加减。什么是原子性的加减呢? 举个例子:如果一个变量 Long v 阅读全文
posted @ 2021-04-14 13:55 txwtech 阅读(248) 评论(3) 推荐(0) 编辑
摘要:/*严重性 代码 说明 项目 文件 行 禁止显示状态错误 C4996 'wcscpy': This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CR 阅读全文
posted @ 2021-03-31 15:58 txwtech 阅读(122) 评论(0) 推荐(0) 编辑
摘要:m_SocketClient.send(str.getbuffer(0),str.GetLength());//vc6.0的用法 MFC CString转char CString就是宽字节,如果项目创建的字符集是Unicode 字符集,那么某些地方就需要转换比如vs2013默认项目,unicode 阅读全文
posted @ 2020-09-19 22:24 txwtech 阅读(652) 评论(1) 推荐(0) 编辑
摘要:// MFCSocketClient.cpp : 定义应用程序的类行为。 // #include "stdafx.h" #include "MFCSocketClient.h" #include "MFCSocketClientDlg.h" #ifdef _DEBUG #define new DEB 阅读全文
posted @ 2020-09-18 00:12 txwtech 阅读(278) 评论(0) 推荐(0) 编辑
摘要:// MFCSocketClient.h : PROJECT_NAME 应用程序的主头文件 // #pragma once #ifndef __AFXWIN_H__ #error "在包含此文件之前包含“stdafx.h”以生成 PCH 文件" #endif #include "resource.h 阅读全文
posted @ 2020-09-18 00:10 txwtech 阅读(345) 评论(0) 推荐(0) 编辑
摘要:// MFCSocketServerSample.cpp : 定义应用程序的类行为。 // #include "stdafx.h" #include "MFCSocketServerSample.h" #include "MFCSocketServerSampleDlg.h" #ifdef _DEB 阅读全文
posted @ 2020-09-18 00:08 txwtech 阅读(228) 评论(0) 推荐(0) 编辑
摘要:// MFCSocketServerSample.h : PROJECT_NAME 应用程序的主头文件 // #pragma once #ifndef __AFXWIN_H__ #error "在包含此文件之前包含“stdafx.h”以生成 PCH 文件" #endif #include "reso 阅读全文
posted @ 2020-09-18 00:05 txwtech 阅读(175) 评论(0) 推荐(0) 编辑
摘要:MFC_vc++_ 控件的位置、大小获取、与控件移动、获取屏幕分辨率,获取对话框窗体大小及其屏幕坐标 用CWnd类的函数MoveWindow()或SetWindowPos()可以改变控件的大小和位置。 void MoveWindow(int x,int y,int nWidth,int nHeigh 阅读全文
posted @ 2020-09-12 16:30 txwtech 阅读(1215) 评论(0) 推荐(0) 编辑
摘要:vs2017VC++_MFC_窗口控件随窗口大小自适应-最大化与还原 vs2017VC++_MFC_窗口控件随窗口大小自适应-最大化与还原 https://blog.csdn.net/txwtech/article/details/108312478 1、首先在OnInitDialog函数中获取窗口 阅读全文
posted @ 2020-08-30 22:51 txwtech 阅读(1337) 评论(0) 推荐(0) 编辑
摘要:vc++0xC0000005:读取位置0x00000014时发生访问冲突reallocate to grow,,xstring定义了一个string vector std::vector<std::string> logfile;logfile[0]="txwtech"; 做法错误,报错。野指针 所 阅读全文
posted @ 2020-08-30 20:09 txwtech 阅读(734) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示