error c1083

Hi!
I'm trying to use ms visual studio to connect with server of boomberg.
But I don't know how to configure ms visual studio correctly. I followed the steps on bloomberg api programmer help. Probably, I made some mistake.
I got this message error:
description: fatal error c1083: cannot open include file: 'io.h': no such file or directory.
file: bbunix.h
line: 1139

Somebody can help me?

The code that I have copied from bloomberg's example:

/* ** Example1.c ** ** This little program simply connects to and disconnects from bbcomm. ** It is mostly useful to check your build environment. */ #include "bbapi.h" /* The standard port bbcomm is listening on */ #define BLP_PORT 8194 main( int argc, char **argv) { bb_connect_t *Connection; int rcode; #ifdef WIN32 /* If we're running with winsock, check WS versions and do a startup */ WORD i; WSADATA wver; i = MAKEWORD(1,1); rcode = WSAStartup(i, &wver); if (rcode != 0 || LOBYTE(wver.wVersion) != 1 || HIBYTE(wver.wVersion) !=1 ) { printf("Unable to start winsock version 1.1.\n"); exit(1); } #endif Connection =bb_connect(BLP_PORT); if (Connection == NULL) { printf("Unable to connect to bbcomm.\n"); exit (2); } printf("Succesfully connected to bbcomm on socket %i.\n",bb_getsocket(Connection)); rcode =bb_disconnect(Connection); if (rcode != ExitOK) { printf("Failed to disconnect, error %i.\n", rcode); exit (3); } printf("Succesfully disconected from bbcomm.\n"); }

[1517 byte] By [MarceloShiba] at [2007-12-16]
# 1
Check your include directory and see if it contains io.h This is set by the environment variable INCLUDE.

From the code sample, io.h could be included in bbapi.h which is in your code.

Also, you can search for io.h yourself (probably at vc\include\io.h) and include it in you compilation command by doing something like /I<path to the included director>

Hope this helps!

Thanks,
Ayman Shoukry
VC++

AymanShoukry at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ General...