如何在Windows和FASM中写入StdOut? [英] How to write to StdOut in Windows and FASM?

查看:111
本文介绍了如何在Windows和FASM中写入StdOut?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题非常简单,但是我似乎找不到解决方法:如何在Windows/FASM中写入StdOut?

The question is pretty simple, yet I can't seem to find how to do it: how do I write to StdOut in Windows/FASM?

似乎没有任何在线文档.想法?

There does not seem to be any documentation online. Ideas?

推荐答案

有一些选择...

1)使用WinAPI.这是 WriteConsole 或通过使用CreateFile,文件名为CON,然后使用 WriteFile

1) Use the WinAPI. This is either WriteConsole OR by using CreateFile with the filename as CON and then using WriteFile

2)使用msvcrt和 printf ,就像在ac程序中一样.

2) Using msvcrt, and printf as you would in a c program.

这篇关于如何在Windows和FASM中写入StdOut?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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