查询:如何在我的c源代码中使用windows api? [英] Query:how to use windows api in my c source code?

查看:42
本文介绍了查询:如何在我的c源代码中使用windows api?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好:

我现在正在学习。我认为按照我的

教科书来编写以前的程序真的是一项繁琐的工作处理数学问题。我想要写一些与OS相关的代码(就像创建进程或

所以)。然后它可能是指应用windows API。

现在这里是我的问题:如何在我的源代码中使用api而没有

错误?语句#include< windows.h>" do(我在include目录中找不到这个头部

文件)?或者可能还有其他一些方法?

顺便说一句:我的操作系统是windowXP和编译器是TURBO c2.0。

任何帮助都将不胜感激。


Dowson。

解决方案

在文章< f4 ********** @ news.cn99.com> ;,, Jack Dowson< jc ***** @ aol.comwrote:
< blockquote class =post_quotes>
>现在这里是我的问题:如何在我的源代码中使用api而不会出现
错误?语句#include< windows.h>" do



你应该在其中一个Windows编程新闻组中询问这个问题。

抱歉,我不记得他们的名字;我通常坚持使用纯C,

或带有POSIX扩展的C语言。 comp.lang.c只讨论由C编程语言定义的东西,而不是特定于操作系统的东西。

-

原型是超类型他们的克隆。 - maplesoft


Walter Roberson说:


文章< f4 ******* ***@news.cn99.com> ;, Jack Dowson

< jc ***** @ aol.comwrote:


>>现在这里是我的问题:如何在我的源代码中使用api而不会出现
错误?声明是否为#include< windows.h> do



你应该在其中一个Windows编程新闻组中询问这个问题。

对不起,我不记得他们的名字;



comp.os.ms-windows.programmer.win32

-

Richard Heathfield

Usenet是一个奇怪的地方 - dmr 29/7/1999
http://www.cpax.org.uk

电子邮件:rjh在上述域名中, - www。


Jack Dowson写道:


你好每个人:

我现在正在学习。我认为按照我的

教科书来写这真是一项繁琐的工作用于处理数学问题的程序。我想要写一些与OS相关的代码(就像创建进程或

所以)。然后它可能指的是应用windows API。

现在这里是我的问题:如何在我的源代码中使用api而没有

错误?语句#include< windows.h> " do(我在include目录中找不到这个头部

文件)?或者可能还有其他一些方法?

顺便说一句:我的操作系统是windowXP和编译器是TURBO c2.0。

任何帮助将不胜感激。


Dowson。



通常,这样做可以使用windows公开的大部分API。

如果要包含其他头文件,你应该看到

在API的特定功能的文档中你想要使用



Turbo c 2.0是一个过时的编译器。你应该使用更新的。


例如,你可以下载
http://www.cs.virginia.edu/~lcc-win32

免费


jacob


Hello Everybody:
I''m learning c now.I think it''s really a tedious job following my
textbook to write programs which are used to deal with math problems.I
want to write some codes related with OS(just like creating processes or
so).Then it may refers to the applying of windows API.
Now here is my question:How to use api in my source code without
error?Will the statement "#include<windows.h>" do(I can''t find this head
file in my include directory)?Or there might have some other ways?
By the way:My os is windowXP and compiler is TURBO c2.0.
Any help will be greatly appreciated.

Dowson.

解决方案

In article <f4**********@news.cn99.com>, Jack Dowson <jc*****@aol.comwrote:

>Now here is my question:How to use api in my source code without
error?Will the statement "#include<windows.h>" do

You should ask about this in one of the Windows programing newsgroups.
Sorry, I don''t keep track of their names; I usually stick to pure C,
or to C with POSIX extensions. comp.lang.c only discusses the things
defined by the C programming language, not anything OS specific.
--
Prototypes are supertypes of their clones. -- maplesoft


Walter Roberson said:

In article <f4**********@news.cn99.com>, Jack Dowson
<jc*****@aol.comwrote:

>>Now here is my question:How to use api in my source code without
error?Will the statement "#include<windows.h>" do


You should ask about this in one of the Windows programing newsgroups.
Sorry, I don''t keep track of their names;

comp.os.ms-windows.programmer.win32

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.


Jack Dowson wrote:

Hello Everybody:
I''m learning c now.I think it''s really a tedious job following my
textbook to write programs which are used to deal with math problems.I
want to write some codes related with OS(just like creating processes or
so).Then it may refers to the applying of windows API.
Now here is my question:How to use api in my source code without
error?Will the statement "#include<windows.h>" do(I can''t find this head
file in my include directory)?Or there might have some other ways?
By the way:My os is windowXP and compiler is TURBO c2.0.
Any help will be greatly appreciated.

Dowson.

Normally that will do to use most of the API exposed by windows.
If there are additional header files to be included you should see
that in the documentation of the specific function of the API
you want to use.

Turbo c 2.0 is an outdated compiler. You should use a newer one.

For instance, you can download
http://www.cs.virginia.edu/~lcc-win32
for free

jacob


这篇关于查询:如何在我的c源代码中使用windows api?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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