• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号
您的位置:首页 > 程序设计 >vc/mfc > 一些有关调试问题,想请教各位高手,呵呵!!

一些有关调试问题,想请教各位高手,呵呵!!

作者:佚名 字体:[增加 减小] 来源:互联网 时间:2017-06-04

佚名通过本文主要向大家介绍了请教word高手,请教高手,请教电脑高手,向老师请教问题,请教问题等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: 一些有关调试问题,想请教各位高手,呵呵!!
描述:

9. You are writing an in-process server object named CMyServer. You have a client application named TestMyServer.exe that uses this object.
Calls to CMyServer::QueryInterface return a pointer to the IUnknown interface for all interface IDs, whether the object supports the requested interface or not. You want to use the Visual C++ debugger to step through the CMyServer::QueryInterface function to find the error. To avoid introducing new behavior, you want to modify the code as little as possible.
Which three things should you do? (choose three)
A. Build the server object. Specify debug options 
B. Set a breakpoint on the first line of the CMyServer::QueryInterface function 
C. Load and run TestMyServer.exe in Microsoft Visual Studio 
D. Build the calling application. Specify debug options 
E. Add a call to the DebugBreak function in the CMyServer::QueryInterface function 
F. Specify TestMyServer.exe as the Executable for debug session on the Debug tab of the Project Settings dialog box. 
 Answer:  
15. You want to pass object data from a database component on a client computer to a component on a server computer. You want to keep network traffic to a minimum.
Which three methods can you use? (choose three)
A. Write the data as a _variant_t object, and pass the object on the network 
B. Write the data as a text in a _bstr_t object, and pass the object on the network 
C. Write the data as a disconnect ADO recordset, and pass the recordset on the network 
D. Write each property of the server object to be equal to the equivalent property of the client object E, Write the data to the database, and access the data from the server component 
E. Write the data by using a dynamic cursor 
 Answer:  
 
41. You create an in-process COM server component. When the component unloads, it must execute code to release Microsoft Windows resources acquired during its operation.
When you run a test program that repeatedly loads, runs, and unloads the component, you notice that available Windows resources dwindle steadily as the program runs. You suspect a bug in the unload code. You want to test this hypothesis. To avoid introducing new behavior, you want to modify the code as little as possible.
How should you step through the component''s unload routine?
A. Recompile the component as an out-of-process COM server. Run the test program to see it resources are released. 
B. Load the component in the Visual C++ IDE, use the IDE to start the test program, and then click the Break Execution button on the Debug toolbar. 
C. Add a call to DebugBreak at the beginning of the Release method, and then use the IDE to start the test program. 
D. Click the first line of the Release method and set a breakpoint, and then use the IDE to start the test program. 
 Answer:  
50. You will use Visual C++ to create an application to manage a mailing
list for a group of hobbyists. You want to keep mailing-list data as a set of character strings that will represent name, address, telephone number, e-mail address, and other information. The user will enter each field in the mailing list through a standard edit control. To minimize development and debugging labor, you want to use prewritten and wizard-generated code as much as possible.
What should you do?
A. Define a dialog box containing a separate edit control for each data field to be entered. Open this dialog box from an item on the application's File menu. Call the GetDlgItemText function to read strings from each control. 
B. Create a separate edit control in your application's main window for each data field to be entered . Call the GetWindowText function to read strings from each control. 
C. Use a dialog box as the main window of your application. Use DDX to associate strings from each control. 
D. Use a dialog box as the main window of your application. Call the GetDlgItemText function to read strings from each control. 
E. Create a Microsoft Excel worksheet for me mailing list. Write an application that contains your worksheet as an active document. 
 Answer: 
 
84. You are hired by Arbor Shoes to develop a Windows-based application to manage shipping and inventory&nb

分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • 请教directx的问题,高手请进÷÷÷÷÷÷
  • COM初始化,请教高手,能系统介绍一下原理,谢谢了,
  • COM初始化,请教高手,能系统介绍一下原理,谢谢了!!!
  • 请教高手,关于海明码的检验位是如何计算的,有何规则讲解OK,马上结贴
  • COM高手请教
  • 请教高手,如何在SDK程序中使用Flash控件,请高手帮帮忙!
  • 请教高手们一个非常非常难的问题
  • 请教高手,怎样调试DeskBand?难道要装ie的Debug版本?
  • 请教高手!!!!!!!!!!!
  • 请教高手该如何解决这个难题?

相关文章

  • 2017-06-04 封装DLL问题
  • 2017-06-04 请问ActiveX在IE中关闭IE报错ATLASSERT::IsWindowm_hWnd;
  • 2017-06-04 =====>急问,ActiveX在IE下载过程是走的tcp什么端口?是80吗?
  • 2017-06-04 做个在网页中实现上传的ACTIVEX组件,大家有没有什么例子!急
  • 2017-06-05 关于dll传值的问题!正确解决给100
  • 2017-06-04 如何在MFCActiveX控件中截获子控件的事件
  • 2017-06-05 VC控件多纸张多打印机的打印问题
  • 2017-06-04 VS2005下创建一个ATL,并且使其fire一个事件。。。。
  • 2017-06-05 求助呀!!!32位win7系统上ie9可以下载安装cab包,64位win7系统上ie10不行?
  • 2017-06-04 想把随控件一起安装的一些文件安装在指定的文件夹里,如system32\install下,那么inf文件应该怎么写?救急救急救急

文章分类

  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号

最近更新的内容

    • 关于cab包下载后里面软件重复安装的问题
    • activexdll的out参数在asp中的使用问题
    • 请求各位大虾介绍几本学习vc进程/线程的书??
    • 关于一个ActiveX在WEB上的问题?
    • 关于操作系统线程的问题!
    • 讨论,本地进程间通信用哪种方法较好(80分放送)
    • 一些DLL导出导入问题,高手帮忙
    • debug信息的意义?
    • 对《深入解析ATL》561小节中一个说法的疑惑!
    • 关于调试dll的问题,请有经验的VC朋友入内

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有