Click here to Skip to main content
15,888,171 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: List of driver compilers Pin
Richard MacCutchan24-Jun-12 0:16
mveRichard MacCutchan24-Jun-12 0:16 
GeneralRe: List of driver compilers Pin
fat_boy22-Jun-12 23:31
fat_boy22-Jun-12 23:31 
GeneralRe: List of driver compilers Pin
Brandon-X1200023-Jun-12 14:10
Brandon-X1200023-Jun-12 14:10 
GeneralRe: List of driver compilers Pin
Brandon-X1200023-Jun-12 14:10
Brandon-X1200023-Jun-12 14:10 
GeneralRe: List of driver compilers Pin
Brandon-X1200023-Jun-12 14:10
Brandon-X1200023-Jun-12 14:10 
GeneralRe: List of driver compilers (Why I posted three times) Pin
Brandon-X1200023-Jun-12 15:53
Brandon-X1200023-Jun-12 15:53 
AnswerRe: List of driver compilers Pin
fat_boy22-Jun-12 23:35
fat_boy22-Jun-12 23:35 
QuestionSerial C++ Pin
Member 915532121-Jun-12 22:01
Member 915532121-Jun-12 22:01 
Hi, I have no idea how to start programming C++ for a serial port.
I need some help/ examples for me to start. I tried looking through the net but I have no luck.
I have previously written some simple C++ programs that I can use the keyboard or scanner.

I have a PLC connected through RS232-USB cable to my PC (COM3).
It will send a simple string text like 12A456789, 1288U
It is transmitted through 9600 speed, 8 data bits, 1 stop bit, even parity and flow control none.

Once the program receives the string text, I need to do a simple comparison and save the text to a txt file according to the content received. EG, if contains 1288U, save as 1288U SN.txt. if contains 1288I, save as 1288I SN.txt It should be a simple if and else statement that I can do.

If possible, once the save is completed, the program will send a confirmed message to the PLC (COM3).
Ultimately, I will use bartender commander to extract the txt file for label printing.

Any kind souls can help me with the serial port portion of the C++ program? It will be greatly appreciated. Thanks.
AnswerRe: Serial C++ Pin
Jochen Arndt21-Jun-12 22:32
professionalJochen Arndt21-Jun-12 22:32 
AnswerRe: Serial C++ Pin
Richard MacCutchan21-Jun-12 22:36
mveRichard MacCutchan21-Jun-12 22:36 
AnswerRe: Serial C++ Pin
David Crow22-Jun-12 2:20
David Crow22-Jun-12 2:20 
GeneralRe: Serial C++ Pin
SoMad23-Jun-12 17:21
professionalSoMad23-Jun-12 17:21 
QuestionHow to get list of C++ class names from source code Pin
pandit8421-Jun-12 21:33
pandit8421-Jun-12 21:33 
SuggestionRe: How to get list of C++ class names from source code Pin
David Crow22-Jun-12 2:29
David Crow22-Jun-12 2:29 
GeneralRe: How to get list of C++ class names from source code Pin
Sivaraman Dhamodharan22-Jun-12 4:22
Sivaraman Dhamodharan22-Jun-12 4:22 
Questionerror c2071: illegal storage class Pin
jawadali47721-Jun-12 18:36
jawadali47721-Jun-12 18:36 
AnswerRe: error c2071: illegal storage class Pin
Peter_in_278021-Jun-12 18:55
professionalPeter_in_278021-Jun-12 18:55 
GeneralRe: error c2071: illegal storage class Pin
jawadali47721-Jun-12 19:42
jawadali47721-Jun-12 19:42 
AnswerRe: error c2071: illegal storage class Pin
Parthi_Appu21-Jun-12 21:40
Parthi_Appu21-Jun-12 21:40 
QuestionDisable text zooming in Rich Edit control. Pin
Member 225379321-Jun-12 14:12
Member 225379321-Jun-12 14:12 
AnswerRe: Disable text zooming in Rich Edit control. Pin
Brandon-X1200021-Jun-12 21:30
Brandon-X1200021-Jun-12 21:30 
Questionopencv with MFC Pin
jawadali47720-Jun-12 18:39
jawadali47720-Jun-12 18:39 
AnswerRe: opencv with MFC Pin
Richard MacCutchan20-Jun-12 23:55
mveRichard MacCutchan20-Jun-12 23:55 
AnswerRe: opencv with MFC Pin
Sivaraman Dhamodharan21-Jun-12 1:48
Sivaraman Dhamodharan21-Jun-12 1:48 
GeneralRe: opencv with MFC Pin
jawadali47721-Jun-12 18:16
jawadali47721-Jun-12 18:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.