.Net 32位到64位迁移pb?
我开发了一个 32 位 .Net Windows 应用程序。 该应用程序有一些使用图像的自定义控件。 当我将其安装在 64 位 CPU 上时,所有图像看起来都更大而且位置不正确。标签也更大。
对这个问题有什么想法吗?
I had developed a 32 bits .Net windows application.
the application had some custom control using images.
When I install it on a 64 bits CPU, all images looks bigger and not on the right position. labels are bigger too.
any idea about this problem ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尺寸较大的图像应该与控件尺寸不正确无关。请考虑查看分辨率和显示器的其他设置,这可能会导致您的应用程序无法以正确的方式处理调整大小。如果是这样,则意味着您的应用程序中存在错误。
另外考虑到你的问题,在我看来,你只是将你的
32bit
应用程序部署到64bit
机器,所以你实际上运行,顺便说一下,你的应用程序的 32 位版本。如果您编译您的应用程序目标
64 位
平台并上传到64 位
操作系统之后,如果自定义控件使用,则可能会出现潜在的封送问题WindowsAPI
。这可能是您申请的关键部分。但是,在出现此类问题时,通常会发生应用程序崩溃,或者出现真正的连线行为。相反,在您的情况下,我发现这只是布局不正确,因此很可能与调整大小的处理不正确有关。Images with bigger dimension should nothing to do with the not correct dimensioning of the controls. COnsider looking on
Resolution
and other settings of the monitor which can lead your application to not handle resize in correct way. If so, it will mean that there is a bug in your application.Also considering your question it seems to me that you just deploy your
32bit
application to64bit
machine, so you, in practice run, by the way, 32 bit version of your application.If you compile yuor application tageting
64bit
platform and after upload to64bit
OS, there could be potential problems with marshaling if custom controls useWindowsAPI
. This could be a critic part of your application. But what usually happens in case of thses kind of problems, is that application crashes, or get really wired behavior. IN yuor case, instead, I see that it's just about not correct layout, so most probably it's something related to not correct handling of the resize.