Click here to Skip to main content
16,005,473 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
Questioncan you tell me the function is use for? thanks Pin
fly4me14-Sep-06 16:20
fly4me14-Sep-06 16:20 
AnswerRe: can you tell me the function is use for? thanks Pin
Christian Graus14-Sep-06 19:30
protectorChristian Graus14-Sep-06 19:30 
QuestionString.Split - tutorial? samples? Pin
LudwigKeck14-Sep-06 16:16
LudwigKeck14-Sep-06 16:16 
AnswerRe: String.Split - tutorial? samples? Pin
baerten21-Sep-06 5:01
baerten21-Sep-06 5:01 
GeneralRe: String.Split - tutorial? samples? Pin
LudwigKeck21-Sep-06 15:02
LudwigKeck21-Sep-06 15:02 
QuestionWizard Control in vc++ express Pin
aguest14-Sep-06 7:41
aguest14-Sep-06 7:41 
AnswerRe: Wizard Control in vc++ express Pin
led mike14-Sep-06 8:11
led mike14-Sep-06 8:11 
Questionbios.h and terminos.h in Dev c++ compiler Pin
prashw13-Sep-06 21:55
prashw13-Sep-06 21:55 
Hi everyone,

I am new here. I am using C to do simple communciations to a serial port (like opening,reading, writing to the serial port.....). I use the Dev C++ compiler for this. But the first thing I encountered is that my code doesnt compile without some headers..
1. <termios.h>
2. <bios.h> (even though its not used in the below example)

Do you guys have any idea where to get them. I searched the whole net but wasnt smart enough to find a place I can downlaod these headers.

Or are there any better header files that can be used in place of these. I am totally lost at this point. Would greatly appreciate any help.


The code is below

#include <stdio.h> /* Standard input/output definitions */
#include <string.h> /* String function definitions */
#include <unistd.h> /* UNIX standard function definitions */
#include <fcntl.h> /* File control definitions */
#include <errno.h> /* Error number definitions */
#include <termios.h> /* POSIX terminal control definitions */
#incldue <conio.h>
/*
* 'open_port()' - Open serial port 1.
*
* Returns the file descriptor on success or -1 on error.
*/

int
open_port(void)
{
int fd; /* File descriptor for the port */


fd = open("/dev/ttyS0", O_RDWR | O_NOCTTY | _NDELAY);
if (fd == -1)
{
/*
* Could not open the port.
*/

perror("open_port: Unable to open /dev/ttyS0 - ");
}
else
fcntl(fd, F_SETFL, 0);

return (fd);
}

int main ()
{ open_port();
getch();
return 0;
}


hi

AnswerRe: bios.h and terminos.h in Dev c++ compiler Pin
Christian Graus14-Sep-06 19:32
protectorChristian Graus14-Sep-06 19:32 
Questionalternate code for cp command Pin
vinod_kumar23313-Sep-06 1:40
vinod_kumar23313-Sep-06 1:40 
AnswerRe: alternate code for cp command Pin
Christian Graus14-Sep-06 19:35
protectorChristian Graus14-Sep-06 19:35 
GeneralRe: alternate code for cp command Pin
vinod_kumar23314-Sep-06 21:44
vinod_kumar23314-Sep-06 21:44 
GeneralRe: alternate code for cp command Pin
Christian Graus14-Sep-06 22:20
protectorChristian Graus14-Sep-06 22:20 
QuestionGlobal hook for system menu events Pin
Harshabhi12-Sep-06 15:22
Harshabhi12-Sep-06 15:22 
QuestionStatus window in DLL Pin
mparent12-Sep-06 11:45
mparent12-Sep-06 11:45 
Questionlistview and columns Pin
aguest12-Sep-06 11:26
aguest12-Sep-06 11:26 
QuestionReferenced namespace in another project not linking Pin
Klempie12-Sep-06 2:49
Klempie12-Sep-06 2:49 
QuestionMaking a dot net wrapper [modified] Pin
User 58385211-Sep-06 15:25
User 58385211-Sep-06 15:25 
AnswerRe: Making a dot net wrapper Pin
User 58385211-Sep-06 19:50
User 58385211-Sep-06 19:50 
QuestionTree View Control Pin
LakshmiPathiRao10-Sep-06 21:52
LakshmiPathiRao10-Sep-06 21:52 
AnswerRe: Tree View Control Pin
shezh12-Sep-06 5:25
shezh12-Sep-06 5:25 
QuestionStrange template behaviour? [modified] Pin
Zigenstein10-Sep-06 19:59
Zigenstein10-Sep-06 19:59 
AnswerRe: Strange template behaviour? [modified] Pin
George L. Jackson13-Sep-06 15:36
George L. Jackson13-Sep-06 15:36 
Questionstrange behaviour!!!!!!!!! Pin
hadez80310-Sep-06 13:02
hadez80310-Sep-06 13:02 
AnswerRe: strange behaviour!!!!!!!!! Pin
bob1697210-Sep-06 14:20
bob1697210-Sep-06 14:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.