DOS到Windows [英] DOS to Windows

查看:67
本文介绍了DOS到Windows的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用于DOS的Microsoft QC 2.5编写的程序,它有一个非常简单的使用printf的简单界面,而sscanf也可以获取和放置。有没有

将此转换为Window的简单方法?

谢谢

Stan

I have a program writeen in Microsoft QC 2.5 for DOS which has a very
simple interface of using printf and sscanf also gets and puts. Is there
an easy way to convert this to Window?
Thanks
Stan

推荐答案



" Stan Weiss" < SR ***** @ erols.com>在消息中写道

news:41 *************** @ erols.com ...

"Stan Weiss" <sr*****@erols.com> wrote in message
news:41***************@erols.com...
我有一个程序在写入用于DOS的Microsoft QC 2.5具有非常简单的使用printf和sscanf的界面,也可以获取和放置。是否有一种简单的方法将其转换为Window?
I have a program writeen in Microsoft QC 2.5 for DOS which has a very
simple interface of using printf and sscanf also gets and puts. Is there
an easy way to convert this to Window?




当然是主题,但你可以在DOS窗口中运行它...... br />



Of topic of course, but you could just run it in a DOS window...


Stan Weiss< sr ***** @ erols.com>潦草地写道:
Stan Weiss <sr*****@erols.com> scribbled the following:
我在Microsoft QC 2.5 for DOS中编写了一个程序,它有一个非常简单的界面,使用printf和sscanf也可以获取和放置。是否有一种简单的方法将其转换为Window?
I have a program writeen in Microsoft QC 2.5 for DOS which has a very
simple interface of using printf and sscanf also gets and puts. Is there
an easy way to convert this to Window?




尝试使用完全相同的源代码。函数printf,sscanf,得到

和put在所有实现中都是可移植的。

但是请注意,函数get按设计被破坏了。

被认为不可能安全使用。您可能希望改用fgets。


-

/ - Joona Palaste(pa*****@cc.helsinki.fi) - ------------芬兰-------- \

\ ----------------- ---------------------------------------规则! -------- /

"犯错是人。要真正搞砸了一台电脑。

- Anon



Try using the exact same source code. The functions printf, sscanf, gets
and puts are portable across all implementations.
However please note that the function gets is broken as designed. It is
considered impossible to use safely. You may wish to use fgets instead.

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-------------------------------------------------------- rules! --------/
"To err is human. To really louse things up takes a computer."
- Anon


我现在在Win 98SE和W2K下这样做,但我被告知它将不会在XP上运行
。我没有XP,只是想升级它。我有一个带有SP5的Visual Studio 6并且只使用了VB,所以现在是

看起来要转向VC ++。

Stan


蒲公英写道:
I do this now under Win 98SE and W2K but I have been told that it will
not run on XP. I do not have XP and was just looking to upgrade it. I
have Visual Studio 6 with SP5 and have only been using VB, so now was
look to move to VC++.
Stan

dandelion wrote:

Stan Weiss < SR ***** @ erols.com>在消息中写道
新闻:41 *************** @ erols.com ...

"Stan Weiss" <sr*****@erols.com> wrote in message
news:41***************@erols.com...
我在Microsoft QC 2.5中编写了一个程序具有非常简单的使用printf和sscanf接口的DOS也可以获取和放置。是否有一种简单的方法将其转换为Window?
I have a program writeen in Microsoft QC 2.5 for DOS which has a very
simple interface of using printf and sscanf also gets and puts. Is there
an easy way to convert this to Window?



当然主题,但你可以在DOS窗口中运行它......



Of topic of course, but you could just run it in a DOS window...



这篇关于DOS到Windows的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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