Click here to Skip to main content
15,895,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: Add Custom Controls To A Dialog??? Pin
Dave Bryant24-Mar-03 12:17
Dave Bryant24-Mar-03 12:17 
GeneralRe: Add Custom Controls To A Dialog??? Pin
brigham_young24-Mar-03 12:18
brigham_young24-Mar-03 12:18 
GeneralLearning to use an API Pin
trimtrom24-Mar-03 12:09
trimtrom24-Mar-03 12:09 
GeneralRe: Learning to use an API Pin
Dave Bryant24-Mar-03 12:15
Dave Bryant24-Mar-03 12:15 
QuestionWhen do I initialize a CListView? Pin
Jonah Bishop24-Mar-03 11:51
Jonah Bishop24-Mar-03 11:51 
AnswerRe: When do I initialize a CListView? Pin
Ravi Bhavnani24-Mar-03 12:04
professionalRavi Bhavnani24-Mar-03 12:04 
GeneralRe: When do I initialize a CListView? Pin
Jonah Bishop24-Mar-03 15:00
Jonah Bishop24-Mar-03 15:00 
Generalcolor palette Pin
mstacey24-Mar-03 11:43
mstacey24-Mar-03 11:43 
GeneralRe: color palette Pin
_Theo_24-Mar-03 22:25
_Theo_24-Mar-03 22:25 
GeneralString replace Pin
act_x24-Mar-03 11:42
act_x24-Mar-03 11:42 
GeneralRe: String replace Pin
Nick Parker24-Mar-03 12:09
protectorNick Parker24-Mar-03 12:09 
GeneralRe: String replace Pin
Dave Bryant24-Mar-03 12:13
Dave Bryant24-Mar-03 12:13 
GeneralRe: String replace Pin
act_x25-Mar-03 4:15
act_x25-Mar-03 4:15 

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.