OS: Windows XP
Compiler: Visual Studio 6.0 C++
Application: Diaglog Based

I am trying to learn how to write a program that opens a serial port on the local machine and then monitors incoming messages from the port. I have been reading the msdn example when trying to follow the code I notice that such reference as:

Code:
DCB dcb;
create unknown identifier errors, suggesting I am missing some key links to libraries or header files that define these attributes.

I have been able to successfully compile code for opening and closing the port, but now that I want to setup control bus settings, I am coming up short. Plus read / write commands I am trying to follow in MSDN samples give me the same errors like the compiler has no way of knowing what I am referring to.

Can some one point me to a good tutorial or tell me what I am missing to get started? I have not had much luck searching google or MSDN for more detailed information. Probably just my search practices....

Thanks for any help-