sardi 0 Newbie Poster

Hi Everybody,
Im a new programmer.........
i had used the following code to output data to com port.....
this program cannot use in Microsoft visual c++
.....
Please help me.............................
#include<iostream.h>
#include<conio.h>
#include<dos.h>
#include<bios.h>

#define SETTINGS (_COM110|_COM_CHR7|_COM_STOP1|_COM_NOPARITY)
void main()
{
clrscr();
_bios_serialcom(_COM_INIT,0,SETTINGS);
outportb(0x03f8,0);
getch();
}