Click here to Skip to main content
15,889,315 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Set Focus to Button? Pin
toxcct24-Jul-06 0:41
toxcct24-Jul-06 0:41 
GeneralRe: Set Focus to Button? Pin
bosfan24-Jul-06 1:09
bosfan24-Jul-06 1:09 
AnswerRe: Set Focus to Button? Pin
_AnsHUMAN_ 24-Jul-06 0:42
_AnsHUMAN_ 24-Jul-06 0:42 
GeneralRe: Set Focus to Button? Pin
bosfan24-Jul-06 1:26
bosfan24-Jul-06 1:26 
QuestionReading text from where mouse is double clicked!!! Pin
_AnsHUMAN_ 24-Jul-06 0:20
_AnsHUMAN_ 24-Jul-06 0:20 
AnswerRe: Reading text from where mouse is double clicked!!! Pin
Programm3r24-Jul-06 0:31
Programm3r24-Jul-06 0:31 
AnswerRe: Reading text from where mouse is double clicked!!! Pin
David Crow24-Jul-06 3:08
David Crow24-Jul-06 3:08 
Questionread/ write to screen/ file Pin
tanarnelinistit24-Jul-06 0:05
tanarnelinistit24-Jul-06 0:05 
I'm trying to make it clear this time. I have a function called Read that reads from the COM. Then i'm using it in the following piece of code to print the result to the screen and to write it in one file. The output to the screen it's ok (FFFF00000000028C) but the one to the file is : "ൃFFF " or smth like that. Note: all the output from my device that is connected to COM is preceded by a Line feed <lf-0x0a> and terminated by a Carriage return <cr-0x0d>
I use the following code:
DWORD dwBytesRead = 0;<br />
      char szBuffer[101];<br />
      FILE *out;<br />
serial.Read(szBuffer,sizeof(szBuffer)-1,&dwBytesRead);<br />
if (dwBytesRead > 0)<br />
				{<br />
										szBuffer[dwBytesRead] = '\0';<br />
					out = fopen( "output.txt", "w" );<br />
					fprintf( out, "%s", szBuffer );              <br />
					printf("%s", szBuffer);<br />
					fclose(out);<br />
<br />
					// Check if EOF (CTRL+'[') has been specified<br />
					if (strchr(szBuffer,EOF_Char))<br />
						fContinue = false;<br />
				<br />
				}



AnswerRe: read/ write to screen/ file Pin
Cedric Moonen24-Jul-06 0:14
Cedric Moonen24-Jul-06 0:14 
GeneralRe: read/ write to screen/ file Pin
tanarnelinistit24-Jul-06 0:18
tanarnelinistit24-Jul-06 0:18 
AnswerRe: read/ write to screen/ file Pin
normanS24-Jul-06 0:58
normanS24-Jul-06 0:58 
GeneralRe: read/ write to screen/ file Pin
tanarnelinistit24-Jul-06 1:16
tanarnelinistit24-Jul-06 1:16 
GeneralRe: read/ write to screen/ file Pin
normanS24-Jul-06 19:25
normanS24-Jul-06 19:25 
QuestionHow to hide process from being watched Pin
kflrei24-Jul-06 0:02
kflrei24-Jul-06 0:02 
AnswerRe: How to hide process from being watched Pin
Programm3r24-Jul-06 0:11
Programm3r24-Jul-06 0:11 
AnswerRe: How to hide process from being watched Pin
Programm3r24-Jul-06 0:17
Programm3r24-Jul-06 0:17 
QuestionIPC -- is it reliable ??? Pin
TamirC23-Jul-06 23:53
TamirC23-Jul-06 23:53 
AnswerRe: IPC -- is it reliable ??? Pin
ThatsAlok24-Jul-06 0:02
ThatsAlok24-Jul-06 0:02 
QuestionOnKillFocus() Pin
Taruni23-Jul-06 23:26
Taruni23-Jul-06 23:26 
AnswerRe: OnKillFocus() Pin
prasad_som24-Jul-06 1:53
prasad_som24-Jul-06 1:53 
AnswerRe: OnKillFocus() Pin
David Crow24-Jul-06 3:21
David Crow24-Jul-06 3:21 
QuestionGetting folder names Pin
ashokvishnu23-Jul-06 23:26
ashokvishnu23-Jul-06 23:26 
AnswerRe: Getting folder names Pin
Don Box23-Jul-06 23:35
Don Box23-Jul-06 23:35 
AnswerRe: Getting folder names Pin
toxcct23-Jul-06 23:46
toxcct23-Jul-06 23:46 
AnswerRe: Getting folder names Pin
ThatsAlok24-Jul-06 0:00
ThatsAlok24-Jul-06 0:00 

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.