外部功能 [英] External functions

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

问题描述

我很擅长使用其他MS语言。我有一些关于库函数的问题

问题
1.标题指定函数,但实际的

函数在哪里。显然它们是预编译,但是你能看到原来的

代码吗?


2. dll中的函数是什么?


3.如果是这样你的代码在哪里告诉程序使用dll?


谢谢

Mike

I''m pretty new to c coming from other MS languages. I have a few
questions about library functions
1. The headers specify the functions, but where are the actual
functions.Apparently they are precompiled, but can you see the original
code?

2. Are the functions in the dll''s?

3. If so where in your code are you telling the program to use the dll?

Thanks
Mike

推荐答案

am******@gmail.com 写道:
am******@gmail.com wrote:

我很擅长来自其他MS语言的c。关于库函数,我有一些

的问题
I''m pretty new to c coming from other MS languages. I have a few
questions about library functions



标准C库函数? [如果不是,我们不知道。]

Standard C library functions? [If not, we don''t know.]


1.标题指定函数,但实际的

函数在哪里。
1. The headers specify the functions, but where are the actual
functions.



你的实现知道的地方。

Somewhere your implementation knows about.


显然它们是预编译的,但是你能看到原文吗? br />
代码?
Apparently they are precompiled, but can you see the original
code?



这取决于您的实施。但是你通常不需要b $ b /需要/查看原始代码 - 而且可能不会用C编写


That depends on your implementation. But you generally don''t
/need/ to see the original code - and it might not be written
in C.


2. dll中的函数是什么?
2. Are the functions in the dll''s?



我想他们可能是。 dll'是特定于实现的东西,

虽然;如果您有特定于实现的问题,您应该在特定于实现的新闻组中询问他们,在那里您可以获得更好的评论答案。

I suppose they might be. dll''s are something implementation specific,
though; if you have implementation-specific questions, you should
ask them on an implementation-specific newsgroup, where you can
expect better-reviewed answers.


3.如果是这样,代码中的哪个位置告诉程序使用dll?
3. If so where in your code are you telling the program to use the dll?



无处。这是一个C程序;一个C实现将为你排序C [/ $
] [1]而你根本不需要提到dll。


[1] Unix(mutter) -lm(嘀咕)嘘!


-

Chris" seeker" Dollin

这里没有人正是他出现的。 G''kar,/ Babylon 5 /

Nowhere. It''s a C program; a C implementation will sort out the C
stuff for you [1] without you having to mention dlls at all.

[1] Unix (mutter) -lm (mutter) Shh!

--
Chris "seeker" Dollin
"No-one here is exactly what he appears." G''kar, /Babylon 5/


am * *****@gmail.com 写道:

我很高兴来自其他MS语言的c。
I''m pretty new to c coming from other MS languages.



C是*不是* MS语言。它是一种具有自己的国际

标准的语言,它最初与之相关的操作系统是Unix。

C is *not* an MS language. It is a language with its own international
standard and the OS it was originally related to is Unix.


我有几个

关于库函数的问题

1.标题指定函数,但实际的

函数在哪里。显然它们是预编译的,但是你能看到吗?原来的

代码?
I have a few
questions about library functions
1. The headers specify the functions, but where are the actual
functions.Apparently they are precompiled, but can you see the original
code?



问MS。所有语言都说标准函数是程序可用的

Ask MS. All the language says is that the standard functions are
available to programs.


2.函数是否在dll中?
2. Are the functions in the dll''s?



在Microsoft组中询问,C标准对DLL一无所知,并且

这是我们在这里处理的标准C.实际上,我感觉很慷慨,所以

如果您使用静态链接到非DLL版本的链接到DLL版本,则答案是肯定的。

Ask in a Microsoft group, the C standard knows nothing about DLLs, and
it is standard C we deal with here. Actually, I''m feeling generous, so
the answer is yes of you link to the DLL versions no if you use static
linking to the non-DLL versions.


3.如果是这样,你的代码中的哪个部分告诉程序使用dll?
3. If so where in your code are you telling the program to use the dll?



在Microsoft小组中提问。 DLL不是C的一部分,C对它们一无所知

。或者阅读 http://msdn.microsoft.com/ 上的MS文档。 >

另请阅读 http:// clc-wiki。 net / wiki / intro_to_clc 看看

这里的大多数常客都认为这个群体是关于什么以及它应该如何使用


-

Flash Gordon

Ask in a Microsoft group. DLLs are not part of C and C knows nothing
about them. Or read the MS documentation at http://msdn.microsoft.com/

Also please read http://clc-wiki.net/wiki/intro_to_clc to see what the
majority of regulars here believe this group is about and how it should
be used.
--
Flash Gordon


< am ****** @ gmail.comwrote:
<am******@gmail.comwrote:

我很擅长来自其他MS语言的c。我有一些关于库函数的问题

问题
1.标题指定函数,但实际的

函数在哪里。显然它们是预编译,但你能看到原始的

代码吗?
I''m pretty new to c coming from other MS languages. I have a few
questions about library functions
1. The headers specify the functions, but where are the actual
functions.Apparently they are precompiled, but can you see the original
code?



PJPlauger有一本书给出了代表性代码,对于大多数人来说,这是一个可能已经完成的代码。 ?)C

标准库中的函数。

http://www.amazon.co.uk/gp/product/0 ...书籍& v =一览无余


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

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