Windows XP上的主窗口图标已更改为默认打印机图标 [英] Main windows icon changed with default printer icon on Windows XP

查看:90
本文介绍了Windows XP上的主窗口图标已更改为默认打印机图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

提前谢谢.

我正在使用寡妇提供的打印机选择对话框在我的应用程序中进行打印.

操作系统:Windows XP Professional.

应用程序类型:MFC

场景:-

当系统上未安装任何打印机并且我的应用程序尝试打印一些数据时,我们将显示错误消息框未安装打印机,您是否要立即安装.如果我选​​择是"选项,则打印机安装向导会在我主计算机的同一时间图标中弹出Windows Windows打印机图标更改了寡妇.

但相同的应用程序在64位Windows 7计算机上可以正常工作.



代码段:-

Hi All,

Thanks in advance.

I am using printer selection dialog provided by widows for printing in my application.

Operating system: Windows XP professional.

Application Type : MFC

Scenario:-

when no printer install on system and my application try to print some data, we get error message box "no printer install and do you want to install now. if i select yes option, printer installation wizards pop up in same time icon of my main widows changed by windows printer icon.

but the same application working fine on 64 bit windows 7 machine.



Code snippet:-

CPrintInfo printInfo;

DoPreparePrinting( &printInfo );

it call CView::DoPreparePrinting(CPrintInfo* pInfo) from function from viewprnt.cpp file.





建议,我不知道我该在哪里更改和犯错误,这会引起问题.



我们非常期待您的回应.

非常感谢您的宝贵时间.

问候,

Naaryan





I don''t know where i need to change and doing mistake that create issue, kindly suggest.



Your response is keenly awaited.

Thanks a lot for your valuable time.

With Regards,

Naaryan

推荐答案

viewprnt.cpp文件可能仅在Windows 7中使用,而Windows XP的文件可能会有所不同,请将该文件更改为xp表示相同的操作.

prasad:)
viewprnt.cpp file might be only used in Windows 7, the file for windows xp might be different, please change the file to the file which is used in xp for the same opperation.

prasad :)


嗨Prasad,

感谢您的答复.

是的,在Windows XP上,当我到达DoPreparePrinting(&printInfo)行并按F11时,它打开的是Disassembly not viewprnt.cpp,但在Windows 7上不会发生.

请提出建议.

问候,
纳拉扬(Narayan)
Hi Prasad,

Thanks for reply.

Yes, On Windows XP when i reached DoPreparePrinting( &printInfo ) line and press F11 it''s open Disassembly not viewprnt.cpp but this is not happen on Windows 7.

Kindly suggest.

With Regards,
Narayan


这篇关于Windows XP上的主窗口图标已更改为默认打印机图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆