473,394 Members | 1,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Problem to understand header file

Hello to all of you.

I was seeing a header file. Before many function they wrote _cdecl,
_stdcall, _pascal, _fastcall and _attribute_ ..Please explain me
meaning of this.

Thank you

Oct 9 '07 #1
5 1250
On Oct 9, 3:36 pm, Pramod <sahgalpram...@gmail.comwrote:
Hello to all of you.

I was seeing a header file. Before many function they wrote _cdecl,
_stdcall, _pascal, _fastcall and _attribute_ ..Please explain me
meaning of this.

Thank you
"calling conventions".
http://en.wikipedia.org/wiki/X86_calling_conventions

Oct 9 '07 #2
Pramod wrote:
I was seeing a header file. Before many function they wrote _cdecl,
_stdcall, _pascal, _fastcall and _attribute_ ..Please explain me
meaning of this.
It means that the header is not C++. It might be some
implementation specific extensions (the leading _ suggests
this, althought two __ would be more reasonable), or it
might some completely different language, but it's not C++.

--
James Kanze (GABI Software) mailto:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

Oct 10 '07 #3
On Oct 10, 1:03 pm, James Kanze <james.ka...@gmail.comwrote:
Pramod wrote:
I was seeing a header file. Before many function they wrote _cdecl,
_stdcall, _pascal, _fastcall and _attribute_ ..Please explain me
meaning of this.

It means that the header is not C++. It might be some
implementation specific extensions (the leading _ suggests
this, althought two __ would be more reasonable), or it
might some completely different language, but it's not C++.

--
James Kanze (GABI Software) mailto:james.ka...@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Ya you are right James. Its not a C++ file its a C header file. Please
explain me it.

Oct 10 '07 #4
Pramod wrote:
On Oct 10, 1:03 pm, James Kanze <james.ka...@gmail.comwrote:
>Pramod wrote:
>>I was seeing a header file. Before many function they wrote _cdecl,
_stdcall, _pascal, _fastcall and _attribute_ ..Please explain me
meaning of this.
It means that the header is not C++. It might be some
implementation specific extensions (the leading _ suggests
this, althought two __ would be more reasonable), or it
might some completely different language, but it's not C++.
*please* don't quote signatures
>
Ya you are right James. Its not a C++ file its a C header file. Please
explain me it.
It isn't standard C either, it's a specific compiler's dialect. You'll
have to ask in a group dedicated to your compiler or platform.

--
Ian Collins.
Oct 10 '07 #5
On Oct 10, 10:37 am, Pramod <sahgalpram...@gmail.comwrote:
On Oct 10, 1:03 pm, James Kanze <james.ka...@gmail.comwrote:
Pramod wrote:
I was seeing a header file. Before many function they wrote _cdecl,
_stdcall, _pascal, _fastcall and _attribute_ ..Please explain me
meaning of this.
It means that the header is not C++. It might be some
implementation specific extensions (the leading _ suggests
this, althought two __ would be more reasonable), or it
might some completely different language, but it's not C++.
Ya you are right James. Its not a C++ file its a C header file. Please
explain me it.
It's not C either. As I said, the leading _ suggests some
implementation specific extensions, although the usual
convention for such things is a double __: things like _stdcall,
etc., are perfectly legal identifiers other than at namespace
scope (but they aren't a good idea, because too many systems to
capture them for other things).

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Oct 10 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: fripper | last post by:
I posted this problem a couple of days ago but felt I might have better luck re-stating the problem. Apparently I messed up IIS (v. 5) somehow because I am suddenly unable to load web forms! A...
12
by: SJD | last post by:
I've just read Christoph Schittko's article on XmlSerializer: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnxmlnet/html/trblshtxsd.asp . . . and very informative it is too....
11
by: Russ | last post by:
My web app writes some binary data to a file at the client site via Response.Write and Response.BinaryWrite. This action is accomplished in response to a button click, with C# code behind as...
11
by: Manuel | last post by:
This is the singleton I'm trying to write: global.h ---------------------------------------- class Global { int i; static Global glob; //Global(int x): i(x) { } ; Global();
102
by: hug | last post by:
www.webmaster, was suggested that this ng could be a better place.] I've updated my test server to handle if-modified-since. I've noticed that the (old copies I run of) IE and Netscape seem...
3
by: webEater | last post by:
Hey, I am writing a file that reads in an external file in the web and prints it out including the response header of the http protocol. I do this to enable cross domain XMLHttpRequests. I...
3
by: Veeru | last post by:
i have one structure SPageDetails. i have a template class CStack. Now i have a pointer of this stack class in another class "CAnotherClass" as: class CAnotherClass {...
0
by: george585 | last post by:
Hello! I am new to network programming, and understand just basics. Using some sample code, and having read documentation, I managed to create a simple app in C# and VB.NET. The application is...
2
by: dinky | last post by:
the menu are displayed properly in FF,i.e. below the header part, but in IE the menus are shifted to upwards beside the logo. and hence it goes out of the page. please help ..... here's the css ...
4
by: Immortal_Nephi | last post by:
You have written several global functions inside header code. Then, you create either static library or dynamic linked library. All global functions can be reuseable to the main() function when...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.