Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-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
Apr 19, 2005
8
0
0
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
 
Replies continue below

Recommended for you

<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.
Back
Top