Wade Lin <wadelin@microsoft.com>
Hi all,
After examining the code, please follow the given action plan and provide the information we need for further investigation.
Q1. What is the target platform? From the provided sample application, it seems to be ARMV4I.
Q2. What are the differences of printed results between using PrintDlg() and your application? A picture with description would be nice.
Q3. Have you tried passing NULL to the CreateDC()’s 4th parameter? What is the result?
Q4. Could you simplify the code in the PrintDemoMessage() so that it only select one object into the printer DC and check if it prints correctly? Could you add some predicate to the function’s return value and call GetLastError() for any failure?
Since we don’t have your driver nor your printer hardware, please follow the steps to help us trace the call stack and provide the output to us so that we could continue to analyze the problem:
1. Connect the development machine (on which Visual Studio 2005 is installed) and the target CE device through ActiveSync.
2. Open the application project in Visual Studio.
3. Select “Tools”->”Connect to Device…” from the main menu bar.
4. Choose “Windows CE” in the “Platform” dropdown list.
5. From the “Devices” list box, choose the target CE device and press the “Connect” button.
6. If the connection fails, you could follow the steps to adjust connection settings:
a. Select “Tools”->”Options” from the main menu bar.
b. In the left pane, select “Device Tools”->”Devices”.
c. In the right pane, select “Windows CE” in the “Show devices for platform” dropdown list.
d. In the “Devices” list box, select your Windows CE device and press the “Properties…” button.
e. Press the “Configure…” button.
f. Select “Use specific IP address” radio button and input an IP belonging to the CE device.
g. Click “Ok” button three times to close the dialogs.
7. You could either start debugging the program with “Debug”->”Start Debugging” (or press F5) or attach to the running application with “Debug”->”Attach to Process…”.
If you have the Platform Builder OS design, and the Kernel Debugger (kd.dll) is included in the image (you could check in the project property pages, Build Options->Enable Kernel Debugger (no IMGNODEBUGGER = 1), which by default is checked in debug build, and unchecked in release build), you could use the Platform Builder to debug the application which will provide the kernel call stack as well:
1. Select “Target”->”Connectivity Options…”.
2. Select “Kernel Service Map” in the left pane.
3. In the right pane, select “CE Device” in the “Target Device” dropdown list.
4. Select “KdStub” in the “Debugger” dropdown list.
5. Choose appropriate settings for the “Download’ and “Transport” dropdown list.
6. Click “Apply” and then the “Close” button to close the dialog.
7. Select “Target”->”Attach Device” in the main menu bar.
8. Open the application source code in the Visual Studio and set breakpoint as needed.
9. Select “Target”->”Run Programs…” in the main menu bar.
10. Choose the application from to run and debug.
Please feel free to let me or Jonathan know if there are any questions on the action plan.
Thanks,
Wade Lin | Support Engineer | APGC CSS – Microsoft Taiwan
分享到:
相关推荐
对windows系统的打印机的配置和驱动进行配置,当在一个局域网中就多台打印机且有多台电脑时,在一台电脑上配置好所有打印机驱动,使用Microsoft Printer Migrator进行所有打印机备份,这样在其他电脑上使用该软件...
这种操作方法简单易行,适用于各种应用程序,如Microsoft Office套件、图像编辑软件等。 Foxit PDF Printer的核心功能包括: 1. **高保真度转换**:它能够准确地保留原始文件的布局、字体和颜色,确保转换后的PDF...
在VB6(Visual Basic 6)中,`Printer`对象是用于控制打印机的基本接口,它允许程序员直接向打印机发送指令,实现文字、图形和表格的打印功能。本篇将深入探讨如何利用`Printer`对象来打印文字和表格,以及相关的...
printershare破解版
air printer(无线打印照片软件)V1.6.6.1 无限制特别版 如果你有台iPhone手机, 或者苹果iPad平板电脑,那么你可以很方便得利用苹果iOS系统内置AirPrint功能WiFi无线打印照片,Word,PDF等各种文件到你的Air Printer...
5. **结束打印**:在完成所有打印任务后,使用`printer_end_page()`和`printer_end_doc()`来结束当前页面和文档,最后用`printer_close()`关闭打印机连接。 6. **错误处理和调试**:`printer_last_error()`函数可以...
SQL Pretty Printer 秘钥 SQL Pretty Printer 是一款非常实用的SQL代码美化工具,可以把原本杂乱无章的SQL语句用结构化的方式重新展现,使SQL语句更加易于理解和维护。这个程 序用来帮助数据库管理员,开发人员格式...
例如,`printer_open()`用于打开一个打印机设备,`printer_start_doc()`用于开始一个新的打印文档,`printer_start_page()`则表示开始新的打印页,`printer_draw_text()`可以将文本绘制到页面上,而`printer_end_...
printershare premium 11.12.0破解版下载,android移动打印解决方案,具体如何调用可以百度,很多这种文章.
SQL Pretty Printer V3.12 绿色破解版 .纯属研究,如要正式使用请购买正版! 经本人测试已完全可用,破解的若不完全请联系我...^_^ SQL Pretty Printer V3.12 绿色破解版 SQL Pretty Printer 绿色破解版 SQL Pretty ...
Printer ESC-POS命令打印辅助库 源码地址:ProjectX 介绍 标准ESC-POS命令打印,固定IP或蓝牙打印,支持黑白图片打印。 其中PrintCommands类列出了基本所有的ESC-POS打印命令。 打印指令参考自Commande ESCPOS.pdf...
Zebra打印机以其可靠性和广泛的功能在条形码、二维码打印领域备受推崇,而“Zebra Printer Setup”应用程序则为用户提供了便捷的设置和管理工具。 首先,我们需要了解的是“Zebra Printer Setup”这款软件。它是由...
SQL Pretty Printer是一款强大的SQL代码美化和格式化工具,它的主要功能是将杂乱无章的SQL语句整理成清晰易读的格式,这对于数据库管理员、开发人员和数据分析者来说非常实用。这款工具可以帮助用户提高代码的可读性...
SQL Pretty Printer 破解版 强大的SQl格式化工具
Poster Printer即以前的ProPoster,是一款制作海报风格图片的软件,适合制作、打印大尺寸海报、标识、签名等,它支持多种图像格式,能制作最大228.6x312.97cm的大幅海报. 使用起来也非常简单,直接载入图片,然后...
如果你有台iPhone手机, 或者苹果iPad平板电脑,那么你可以很方便得利用苹果iOS系统内置AirPrint功能WiFi无线打印照片,Word,PDF等各种文件到你的Air Printer打印机,但有个前提是你的打印机必须支持苹果Air Print...
《关于“printer32.rar”:Node.js打印模块在Windows 32位系统中的应用》 在信息技术领域,开发跨平台的应用程序是一项重要的任务。在Windows操作系统中,尤其是在老版本如Windows XP上运行应用程序时,我们需要...
SQL Pretty Printer for SSMS 是一款专门针对SQL Server Management Studio (SSMS) 设计的代码格式化工具。这个工具的主要功能是帮助用户整理和美化在SSMS中编写的SQL查询语句,使其更易于阅读和理解,提升代码质量...
local-printer-assistant.exe
【华硕客户端Printer.exe】是华硕公司为用户提供的一个专用客户端程序,主要功能是用于管理和操作打印机设备。这个程序通常包含在华硕电脑或打印机的驱动程序包中,旨在优化用户与华硕打印机之间的交互体验。下面...