MFC这段程序什么意思呢
-
WDC_PCI_SCAN_RESULT scanResult; WDC_DEVICE_HANDLE m_hDev=NULL; void CPCI_MulitIOVideoCardDlg::OnSearchCard() { // TODO: Add your control notification handler code here m_Card.DevicesScan(0x10B5,0x5201,scanResult); //读取多... WDC_PCI_SCAN_RESULT scanResult; WDC_DEVICE_HANDLE m_hDev=NULL; void CPCI_MulitIOVideoCardDlg::OnSearchCard() { // TODO: Add your control notification handler code here m_Card.DevicesScan(0x10B5,0x5201,scanResult); //读取多功能板信息 CString str,s; m_SelCard.ResetContent(); // for(int i=0;i
全部评论(3条)
-
- kfsdgssdg 2014-08-15 00:00:00
- 扫描并列举多功能功板卡。
-
赞(20)
回复(0)
-
- 5我来自霸都 2014-08-15 00:00:00
- 看到前一个回答忍不住笑了O(∩_∩)O哈哈哈~ 骗分啊这是。我也来骗个分。。虽然好像没有分。。。。 MFC库没有这个类,由类名看得出是某个硬件提供的API接口。具体什么意思就要看这个硬件提供的API文档。 从这部分代码还是可以看出要做什么 WDC_PCI_SCAN_RESULT scanResult; // 用来保存DevicesScan返回的值,应该是保存PCI卡的信息 WDC_DEVICE_HANDLE m_hDev=NULL; // 用来保存环境变量,这里设为空,应该是在其他地方初始化 m_SelCard.ResetContent(); // 看他的成员函数,这个估计是列表控件,根据下面的代码应该是列表控件显示所有的PCI卡的信息 那个for 循环就是将读取到的硬件信息保存到str变量里和列表控件里,信息包括VID、DID、Bus、Slot(供应商ID、设备ID、总线数、插槽数) SetDlgItemText(IDC_SEARCH_TEXT,str); // 在一个静态控件中显示保存在str对象中的信息
-
赞(10)
回复(0)
-
- yzz1223 2014-08-15 00:00:00
- BEGIN_MESSAGE_MAP这段是MFC的灵魂,消息处理,MFC定义了很多消息,如果想在自己的程序中响应各种消息,在这段添加代码是其中一个步骤。 DoDataExchange是控件和变量的绑定,MFC允许控件绑定变量,如果你用过delphi之类的就应该不陌生,通过变量操纵控件,这些变量都是控制型的,另外MFC中有的控件还可以绑定纯变量,比如一个编辑框,可以绑定一个控制变量,比如 c_edit ,同U哦 c_edit可以控制其角点,位置等等,还可以绑定比如int类型的变量,可以通过语句把int值直接反馈到控件上面,也可以反过来赋值。 DoDataExchange中执行DDX_Control(pDx,IDC_EDIT1,c_edit);就可以完成c_edit和IDC_EDIT1的绑定
-
赞(9)
回复(0)
热门问答
- MFC这段程序什么意思呢
- WDC_PCI_SCAN_RESULT scanResult; WDC_DEVICE_HANDLE m_hDev=NULL; void CPCI_MulitIOVideoCardDlg::OnSearchCard() { // TODO: Add your control notification handler code here m_Card.DevicesScan(0x10B5,0x5201,scanResult); //读取多... WDC_PCI_SCAN_RESULT scanResult;
WDC_DEVICE_HANDLE m_hDev=NULL;
void CPCI_MulitIOVideoCardDlg::OnSearchCard()
{
// TODO: Add your control notification handler code here
m_Card.DevicesScan(0x10B5,0x5201,scanResult); //读取多功能板信息
CString str,s;
m_SelCard.ResetContent(); //
for(int i=0;i2014-08-14 04:40:28 375 3
- 单片机频率计的这段程序怎么理解
2017-12-05 00:32:59
465
3
- MFC单文档程序用计时器实现动态画图
- 我现在有一组数据,比如x[i]和y[i],想点击一个按钮后立刻画出(x[0],y[0]),一秒后画出(x[1],y[1]),并和(x[0],y[0])连起来,再一秒后画出(x[2],y[2]),并和(x[1],y[1])连起来,直到所有点都画出。请问用计时器怎么实现?麻烦至少写一些代码,... 我现在有一组数据,比如x[i]和y[i],想点击一个按钮后立刻画出(x[0],y[0]),一秒后画出(x[1],y[1]),并和(x[0],y[0])连起来,再一秒后画出(x[2],y[2]),并和(x[1],y[1])连起来,直到所有点都画出。请问用计时器怎么实现?麻烦至少写一些代码,伪代码也行。 展开
2018-12-08 05:53:41
347
0
- MFC是什么意思?
2009-01-02 01:43:31
432
6
- 学机器视觉,做界面是学mfc呢 还是学qt
2017-07-02 06:03:33
406
1
- 这段韩语怎么翻译
2016-04-07 18:05:24
445
1
- 这是什么意思呢!电焊机
2018-11-22 09:45:37
329
0
- 软件程序怎么控制机械设备呢?
2013-02-26 23:41:38
426
2
- 数控车程序里RetractMove代表什么意思
2018-11-18 17:58:40
392
0
- MFC 用虚拟机测试通信软件
- 我要使用WMware安装虚拟机,需要iso镜像文件.我的系统是win7-64位,我可以下载32位的镜像文件吗?... 我要使用WMware安装虚拟机,需要iso镜像文件. 我的系统是win7-64位,我可以下载32位的镜像文件吗? 展开
2016-12-02 04:45:17
482
1
- 为什么这段时间网络卡
- 以前好的,玩YY啊什么CF。DNF都不卡。但这1个月都很卡,电脑和猫1开就玩5分钟就开始卡了,而且我知道应该是网络卡和电脑没关系,应为电脑还算好电脑,那么为什么卡呢???高手救救我啊,每次玩游戏别人不卡,就我卡。。。。。。。。。。555555555555
2013-11-10 13:53:13
269
1
- real在西门子探头程序里代表什么意思?
2017-02-05 19:16:00
471
1
- 用逻辑分析仪调试时怎样才能跳过延时启动这段时间的无效数据呢?
- 我有一个电源产品,它有个延时启动的过程,它的MCU的I2C信号总是出错,用逻辑分析仪调试的时候,总是会保存延时启动这段时间的无效数据,怎么才能跳过这个过程呢?
2015-06-30 18:49:13
485
1
- 这段Java代码为什么等于1 ??
- 这段Java代码为什么等于1 ??这段Java代码为什么等于1 ??不应该是等于5吗?
2018-06-20 01:25:22
387
3
- 跪求这段单片机信号发生器的英文翻译!
- 马上就要要好急啊我不会哪位大侠能翻译一下谢谢谢谢谢谢近年来,单片微型计算机以其强大的生命力飞速发展,在工业控制、智能仪器仪表、智能化设备和家用电器等领域得到了广泛的应用,... 马上就要要 好急啊 我不会 哪位大侠能翻译一下 谢谢谢谢谢谢 近年来,单片微型计算机以其强大的生命力飞速发展,在工业控制、智能仪器仪表、智能化设备和家用电器等领域得到了广泛的应用,因而引起了各行各业的极大关注,有着广阔的发展前景。论文设计的是一个单片机控制多功能信号发生器。其设计目的是使学生通过这一实践环节,增强单片机扩展接口设计及其实际应用能力。本系统的软件可运行于DOS及Windows系列操作系统平台。完成的主要功能设计有:单片机所需平稳电压的获得,8K字节固化程序存储能力,七段数码显示器,3×4的12位矩阵键盘,波形产生与电压变换功能,具有8位精度的D/A转换功能,时钟电路与复位电路以及完成相关的软件设计。本系统以8031单片机为核心,配置相应的外围接口电路,用汇编语言开发,组成的一个单片机控制多功能信号发生器。硬件电路设计包括三部分内容:一是电源部分设计;二是系统扩展,即单片机内部的功能单元(如ROM、I/O、定时/计数器、中断系统等)容量不能满足应用系统要求时,必须进行片外扩展,选择适当芯片,设计适当电路;三是系统配置,即按照功能要求配置外围设备,如键盘、D/A转换等。系统中的应用软件是根据系统的功能要求而设计的,可靠地实现了系统的各种功能要求。 展开
2008-05-19 00:24:13
775
5
- 鼻中隔修复如何呢?有什么程序吗?
2018-11-16 18:33:22
317
0
- 用VB做了个数据采集的程序,程序很卡,都是有哪些原因呢?
2014-10-26 03:57:44
399
3
- 请翻译一下这段英文1,谢谢
- Materials For the present study, the matrix was ABS supplied by Formosa Co. The reinforcements were polyacrylonitrile based high strength CFs. The properties of materials used were given in Table 1. Carbon fibre surface treatment Carbon fi... Materials For the present study, the matrix was ABS supplied by Formosa Co. The reinforcements were polyacrylonitrile based high strength CFs. The properties of materials used were given in Table 1. Carbon fibre surface treatment Carbon fibres were oxidised by boiling in HNO3 under reflux for 5 h (T5120uC). Afterwards, the nitric acid oxidised fibres were washed with distilled water to neutral pH. Fibre surface composition The fibres were characterised by X-ray photoelectron spectroscopy (ESCA 300, Scienta, Sweden) to determine the level of functionalisation of the modified fibres. An initial survey scan was performed to determine the detectable elements, followed by high resolution scans. The entire X-ray photoelectron spectrum was energy referenced to the C1s peak of graphite (bending energy5284?5 eV). Composite preparation Before processing, ABS pellets and CFs were dried in a vacuum oven for 4 h at 80uC. Composites containing 0, 5, 10, 15, 20, 25 and 30 wt-% SCF were prepared by melt mixing in a co-rotating twin screw extruder (Thermoprism TSE 16 TC, L/D:24). The ABS pellets and CFs were fed from the main and side feeders respectively. The molten composite obtained from the die of the extruder was water cooled and pelletised. The extrusion conditions were arranged, as shown in Table 2. The viscosity of the melt containing CFs depends on the viscosity of the polymer matrix as well as the processing temperature. To avoid unfavourable shearing conditions, the melt temperature is kept as high as possible regarding thermal degradation. Before PA6 was blended to promote interfacial adhesion, vacuum drying of the ABS and PA6 pellets was carried out at 80uC for 4 and 12 h respectively. The 0, 10, 20 and 30 wt-% PA6 containing batches were fed through the main feeder to the twin screw extruder. The extrudate was water cooled and chopped into small pellets. The produced ABS/PA6 pellets were vacuum dried again at 80uC for 12 h. To prepare the SCF reinforced ABS/PA6 composites, the blend was introduced into the twin screw extruder from the main feeder, and SCFs were fed from the side feeder. The twin screw extruder was operated at the same processing conditions used during the blend preparation. The extrudate was again water cooled and chopped into small pellets. The extrusion grades of resin were used to make the extrudate form fully. The specimens for the mechanical characterisation experiments were moulded using a laboratory scale injection moulding machine (microinjector, model 1998; Daca Instruments) at a barrel temperature of 230uC and mould temperature of 80uC. The injection moulding machine used in this study was a laboratory type microinjector. The principle of the operation is that the preweighed (,2?5 g) raw material is loaded into the cylindrical barrel and allowed to melt at a preset barrel temperature for 1 min.Then the molten plastic is pushed through an injection tip by a piston. 展开
2011-04-23 21:43:45
367
1
5月突出贡献榜
推荐主页
最新话题
-
- #DeepSeek如何看待仪器#
- 干体炉技术发展与应用研究
- 从-70℃到150℃:一台试验箱如何终结智能...从-70℃到150℃:一台试验箱如何终结智能调光膜失效风险?解决方案:SMC-210PF-FPC温湿度折弯试验箱的五大核心价值1. 多维度环境模拟,覆盖全生命周期测试需求超宽温域:支持-70℃至+150℃的极限温度模拟(可选配),复现材料在极寒、高温、冷热冲击下的性能表现;控湿:湿度范围20%~98%RH(精度±3%RH),模拟热带雨林、沙漠干燥等复杂工况,暴露材料吸湿膨胀、分层缺陷;动态折弯:0°~180°连续可调折弯角度,支持R1~R20弯曲半径设定,模拟实际装配中的微小应力,提前预警裂纹、断裂风险。
参与评论
登录后参与评论