Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Header files for API

Status
Not open for further replies.

manal72

Electrical
Joined
Apr 19, 2005
Messages
8
Location
CA
I have some confusion about the defintions , header files, how to make them can I make them just by saving them on a C++ compiler , is an Application program interface API a way to have serial port communication really I am confused plz help
 
You can make a header file in notepad if you want and save it as whatever.h
Probably you have header files that provide the function defintions for serial port communication.


bkeith
Coastal Instruments
Mass Flow Contoller Specialists

 
<off-topic>
bkeith
Are you aware that the second link in your sig currently points to Google?

Good Luck
johnwm
________________________________________________________
To get the best from these forums read faq731-376 before posting

UK steam enthusiasts:
 
First, let us know which compiler you are using. Bet to give you some idea:

- Most compilers come with standard libraries that make it very easy to configure and use serial communication.
- The APIs are declared in corresponding header files.
- If you have to use a specific API, you 'include' the corresponding header file in your .c or .cpp file and then use these functions to open, configure, read from/write to, and close the serial port. (a common example: to use console IO including keyboard inputs, I would include conio.h and while compiling, see that that the library path for compilation includes the standard library libc.lib)

Hence, more information is required to give specific suggestions.

[um.narayanan@gmail.com]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top