Click here to Skip to main content
15,920,836 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralQuadratic equation Pin
ROK_RShadow24-Mar-03 19:01
ROK_RShadow24-Mar-03 19:01 
GeneralRe: Quadratic equation Pin
Roger Wright24-Mar-03 20:00
professionalRoger Wright24-Mar-03 20:00 
GeneralRe: Quadratic equation Pin
ROK_RShadow24-Mar-03 20:35
ROK_RShadow24-Mar-03 20:35 
GeneralRe: Quadratic equation Pin
Roger Wright24-Mar-03 21:17
professionalRoger Wright24-Mar-03 21:17 
GeneralRe: Quadratic equation Pin
ROK_RShadow24-Mar-03 21:28
ROK_RShadow24-Mar-03 21:28 
GeneralRe: Quadratic equation Pin
Roger Wright24-Mar-03 22:07
professionalRoger Wright24-Mar-03 22:07 
QuestionIs there a function to convert a CString value to an integer? Pin
julych24-Mar-03 18:30
julych24-Mar-03 18:30 
AnswerRe: Is there a function to convert a CString value to an integer? Pin
Michael Dunn24-Mar-03 19:10
sitebuilderMichael Dunn24-Mar-03 19:10 
GeneralRe: Is there a function to convert a CString value to an integer? Pin
r i s h a b h s25-Mar-03 17:01
r i s h a b h s25-Mar-03 17:01 
GeneralDynamic allocation of 2-d array using 'new' Pin
natiekyle24-Mar-03 18:05
natiekyle24-Mar-03 18:05 
GeneralRe: Dynamic allocation of 2-d array using 'new' Pin
Nick Parker24-Mar-03 18:20
protectorNick Parker24-Mar-03 18:20 
QuestionHow to find data in database ? Pin
ooosawaddee324-Mar-03 15:21
ooosawaddee324-Mar-03 15:21 
AnswerRe: How to find data in database ? Pin
Anonymous24-Mar-03 15:37
Anonymous24-Mar-03 15:37 
GeneralRe: How to find data in database ? Pin
ooosawaddee324-Mar-03 15:56
ooosawaddee324-Mar-03 15:56 
GeneralRe: How to find data in database ? Pin
Anonymous24-Mar-03 16:14
Anonymous24-Mar-03 16:14 
AnswerRe: How to find data in database ? Pin
Christian Graus24-Mar-03 16:56
protectorChristian Graus24-Mar-03 16:56 
GeneralRe: How to find data in database ? Pin
Nick Parker24-Mar-03 18:24
protectorNick Parker24-Mar-03 18:24 
GeneralHtmlHelp events Pin
trimtrom24-Mar-03 14:54
trimtrom24-Mar-03 14:54 
GeneralRe: HtmlHelp events Pin
Taka Muraoka24-Mar-03 15:02
Taka Muraoka24-Mar-03 15:02 
GeneralCOM Port data transfer Pin
TeraCoder24-Mar-03 13:09
TeraCoder24-Mar-03 13:09 
GeneralRe: COM Port data transfer Pin
Santanu Lahiri24-Mar-03 20:20
Santanu Lahiri24-Mar-03 20:20 
You can open a com port as a file under Win32. With minor restrictions, you can specify Read or Write attributes when opening such files to read from or write to. You can even try opening the ports as CFile using MFC. There is an example on Microsoft's site showing how to do this, including creating CArchive objects based on these files. After they are open, you can use standard file read and write routines or the << and >> operators. Look at MSDN.

Here is a link to start you off. This goes through the theory, anyway, plus it is non-mfc. Can't recall the MFC link, but you can look at the VCTERM sample for specs on using the Communication control as well..

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfiles/html/msdn_serial.asp

My personal experience: Do not try to do the copy in the same thread. Gets very messy. I spun off threads to read and write to and from the files. That worked well, except you now need synchronization between the threads.

Good Luck!Smile | :)
GeneralMessage Handling in Controls instead of Dialog Pin
brigham_young24-Mar-03 13:00
brigham_young24-Mar-03 13:00 
GeneralRe: Message Handling in Controls instead of Dialog Pin
bryce24-Mar-03 14:03
bryce24-Mar-03 14:03 
GeneralRe: Message Handling in Controls instead of Dialog Pin
Alin Negru24-Mar-03 22:02
Alin Negru24-Mar-03 22:02 
QuestionAdd Custom Controls To A Dialog??? Pin
brigham_young24-Mar-03 12:12
brigham_young24-Mar-03 12:12 

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.