头文件以使用Windows API [英] Header file to use Windows api

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

问题描述

我正在用Turbo C ++编译器编写程序.代码涉及调用一些API,例如createfile(),createprocess()等.要访问这些功能,我无法获取正确的头文件.能否请任何人帮我获取头文件.当我从其他来源下载文件时,我尝试使用windows.h,winbase.h仍然造成了复杂的问题.所以请任何人帮我修复它.


谢谢

Hi, I am writing a program in turbo c++ compiler.The code involves calling some api like createfile(),createprocess() and many more. To access these functions i can''t able to get a proper header file. can you please anyone help me to get an header file.I tried with windows.h,winbase.h when i am downloading from different sources it is creating still complex problems. so please can anyone help me to fix it.


Thanks

推荐答案



通过网上的一些研究,我从该站点发现 http://www.turboexplorer.com/cpp [ ^ ]
我无法确定为什么您会热衷于在Turbo C ++之类的16位编译器上使用Windows api函数,但我认为它不适合在DOS编译器上运行并为Windows进行C ++应用程序. visual c ++是更好的选择,它包含所有必需的Windows sdk和支持文件.
此链接也进行了相关讨论: http://www.cplusplus.com/forum/general/5694/ [^ ]
谢谢
Hi,

With a little of research on net I found from this site says http://www.turboexplorer.com/cpp[^]
that Turbo C++ is no longer available.I am not sure why you are keen on using windows api functions on a 16 bit compiler like turbo c++.I dont think its viable to work on a DOS compiler and doing C++ applications for Windows.I think visual c++ is a better option which comes with all the required windows sdk and support files.
This link has the relevant discussion as well:http://www.cplusplus.com/forum/general/5694/[^]
Thanks


正如已经指出的,Turbo C ++已经过时了,可能是指Windows API中已更改签名或被替换或移至其他标头的函数.

您可以做的是免费下载Visual C ++的Express版本.该安装包含您需要的所有当前Windows头文件和库,因此,即使您不希望切换到此新IDE,也可以在其中引用这些头文件.

如果您愿意坚持使用,也可以从Borland检查廉价或免费的C ++ Builder版本.
As has been pointed out Turbo C++ is outdated, and might be referring to functions in the windows API that have changed signatures or were replaced or moved to other headers.

What you could do is download the Express version of Visual C++ (for free). The installation contains all the current windows headers and libs you''d need, so even if you do not wish to switch to this new IDE you could reference the headers there.

You could also check for a cheap or free version of the C++ Builder from Borland if you like to stick with them.


是的,我会更好地使用Visual c ++ :)免费版.让我试一下!!!
yeah thnx better i will stick with visual c++ :) free edition.. let me try on it !!


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

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