hello everyone. i'm new to this forum and it's my first time to post on an english language /i'm from poland/ forum about a problem i have.
my problem is that i have to write a console based program to communicate with an electronic device via rs232 com port. the communication has to be realized by sending bytes of information to a micro controller. and the problem is that i'm not really a great programmer and really new to vc++, so if anyone could try to explain how to do such a thing i would be most grateful: which libraries to use? weather those are standard c++ libraries or vc++ ones. which fuctions to use.
as for the structure of the program i think that it should look something like this:

run prog->close port->open port->send data->close port->exit prog.

thank you for any help you can spare.