使用com端口开发gui app的工具 [英] tools to develop gui app with com ports

查看:105
本文介绍了使用com端口开发gui app的工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请原谅我,如果这似乎有点偏离主题,但我已经尝试了一切,但无法得到我的问题的明确答案...

我正在寻求发展Windows机器上的GUI程序,但我也需要支持com端口。我正在尝试将旧的Visual C ++ 6.0 MFC程序迁移到新环境中。 Visual C ++ 6.0不能在Windows 7或Windows 10上运行(至少我无法让它运行)。微软想要使用MFC的新Visual C ++太过分了。我看不出wxWidgets支持com端口。我已经看过Qt但是在没有安装Qt的系统上部署它似乎非常麻烦和大。



任何帮助都将受到赞赏。

解决方案

引用:

我看不到wxWidgets支持com端口

I认为你正在解决这个完全错误 - 为什么wxWidgets应该有'连续'类?在串口/ com端口类之前很久我们使用createfile,readfile和writefile进行了串行I / O - 我可能完全错了,但我很确定MFC的Serial或Com Class会使用这样的东西 - ref:https://suite.io/martin-bell/1w652y6 [ ^ ]



所以,鉴于Microsoft Express版本,即使它没有MFC,你可以创建一个COM /串口抽象



所有这一切,看看这个 https://www.visualstudio.com/features/windows-apps-games-vs [ ^ ] - Visual Studio 2015 Express DOES有MFC - 它是免费的。我不知道你是否可以从旧的MFC做直接端口 - >新的MFC



我认为你有很多选择 - 你可能无法获得1:1的转换/升级,所以你总是要做好准备去做将你的程序拖入一个新世界的一些认真的工作 - 但如果你不想在c#/ wpf中重写它,例如



btw'无法得到一个明确的答案你的问题'..好吧 - 这可能取决于你问题的质量 - 我们都不认识你,你的头脑是什么,你有多少经验,你的全部要求等等 - 所以很难有人提出建议基于你的要求



如果你还没有明确的答案,请改进你的问题 - 给我们更多,所以我们可以尝试帮助你


正如Garth所说,这与MFC或WxWidgets无关。程序的GUI部分与串行I / O部分之间没有任何关联。



如果您无力支付MFC,那么您可以使用该标准Win32接口,完全支持任何 Visual Studio的Express版本 [ ^ ]。


Please forgive me if this appears to be a bit off topic but I've tried about everything and can't get a clear answer to my question...
I'm looking to develop a GUI program on a Windows machine but I need support for a com port, also. I'm trying to migrate an old Visual C++ 6.0 MFC program into a new environment. Visual C++ 6.0 doesn't run on Windows 7 or Windows 10 (at least I haven't been able to get it to run). Microsoft wants way too much for the new Visual C++ with MFC. I can't see that wxWidgets supports com ports. I've looked at Qt but it appears to be very cumbersome and large to deploy on a system without Qt installed.

Any help would be appreciated.

解决方案

Quote:

I can't see that wxWidgets supports com ports

I think you're going about this completly wrong - why should wxWidgets have a 'serial' class ? long before serial/com port classes we did serial I/O using createfile, readfile and writefile - I may be completly wrong, but Im pretty sure MFC's Serial or Com Class would use something like this under the covers - ref : https://suite.io/martin-bell/1w652y6[^]

so, given a Microsoft Express version, even if it didnt have MFC, you could create a COM/Serial port abstraction

All that being said, look at this https://www.visualstudio.com/features/windows-apps-games-vs[^] - Visual Studio 2015 Express DOES have MFC - and its free. I dont know if you can do a direct port from old MFC -> new MFC

I think you have plenty of options - you might not get a 1:1 conversion/upgrade, so you're always going to have to prepared to do some serious work to drag your program into a new world - but if you dont wish to rewrite it in c#/wpf for example

btw 'cant get a clear answer to your question' .. okay - that may depend on the quality of your question - none of us know you, whats going through your head, how much experience you have, your full requirements etc - so it would be hard for someone to suggest something based on what you've asked

If you still dont have a clear answer, refine your question - give us more, so we can try and help you


As Garth says, this has nothing to do with MFC or WxWidgets. There is no connection between the GUI part of a program, and the serial I/O part.

If you cannot afford to pay for MFC then you can use the standard Win32 interfaces, which are fully supported with any of the Express versions of Visual Studio[^].


这篇关于使用com端口开发gui app的工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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