Hello everybody,
I am trying to communicate with a Vitamin Scanner from a computer, which connects via Comm port. It should do the equivalent thing of opening up 'Hyper Terminal', typing in 'a', hitting enter, then typing in '?I', enter, 'S', enter, and a long list of integers shows up on the GUI.
So far, I have stumbled upon some code that by all means, should work. I have attached the code in a file attachment, along with a few header files that are important. I have also attached my Build Log in a screen shot, BuildLog.jpg.
I am using Visual C++ 2008 Express Edition. I use Windows XP. I try to compile, it says:
fatal error C1189: #error : include 'stdafx.h' before including this file for PCH
Please help me, I am stuck.
Attached Files:
http://lbpages.heliohost.org/BuildLog.jpg
See the others on the bottom.