Click here to Skip to main content
16,009,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRead Data from another application's Owner Draw Control Pin
vikrant kpr16-Aug-07 9:46
vikrant kpr16-Aug-07 9:46 
AnswerRe: Read Data from another application's Owner Draw Control Pin
Chris Losinger16-Aug-07 10:12
professionalChris Losinger16-Aug-07 10:12 
GeneralRe: Read Data from another application's Owner Draw Control Pin
vikrant kpr2-Sep-07 23:09
vikrant kpr2-Sep-07 23:09 
GeneralRe: Read Data from another application's Owner Draw Control Pin
Chris Losinger3-Sep-07 3:13
professionalChris Losinger3-Sep-07 3:13 
QuestionHelp With Serial Pin
simoncoul16-Aug-07 8:40
simoncoul16-Aug-07 8:40 
AnswerRe: Help With Serial Pin
simoncoul16-Aug-07 9:52
simoncoul16-Aug-07 9:52 
AnswerRe: Help With Serial Pin
John R. Shaw16-Aug-07 15:03
John R. Shaw16-Aug-07 15:03 
GeneralRe: Help With Serial Pin
simoncoul17-Aug-07 2:21
simoncoul17-Aug-07 2:21 
do{
	SerialLib.Read(recvbuf, 5, &BytesRead);
	if(BytesRead == 0)
		return 0;				
	for(i=0; i<int(BytesRead); i++)
		storebuf[i] = recvbuf[i];
	TotalBytes = int(BytesRead);
	while(TotalBytes <5){
		BytesNeeded = 5 - BytesRead;
		SerialLib.Read(recvbuf, BytesNeeded, &BytesRead);
		for(i=TotalBytes; i<int(TotalBytes+BytesRead); i++)
			storebuf[i] = recvbuf[i];
		TotalBytes += int(BytesRead);
	}
	recievedbytepackage.byte0 = storebuf[0];
	recievedbytepackage.byte1 = storebuf[1];
	recievedbytepackage.byte2 = storebuf[2];
	recievedbytepackage.byte3 = storebuf[3];
	recievedbytepackage.byte4 = storebuf[4];
	TotalBytes = 0;
}
while(BytesRead > 0);


This is the code that I'm using to read the data, and the problem is being caused in here as we have another program written in TCL that recieves that date from the controller just fine so we know it's not a hardware issue.

Any help would be great thanks.
QuestionCListBox how to set single selection? Pin
Romiks16-Aug-07 6:59
Romiks16-Aug-07 6:59 
AnswerRe: CListBox how to set single selection? Pin
David Crow16-Aug-07 7:13
David Crow16-Aug-07 7:13 
GeneralRe: CListBox how to set single selection? Pin
led mike16-Aug-07 7:26
led mike16-Aug-07 7:26 
GeneralRe: CListBox how to set single selection? Pin
Romiks16-Aug-07 20:27
Romiks16-Aug-07 20:27 
GeneralRe: CListBox how to set single selection? Pin
David Crow17-Aug-07 2:35
David Crow17-Aug-07 2:35 
GeneralRe: CListBox how to set single selection? Pin
Romiks19-Aug-07 23:57
Romiks19-Aug-07 23:57 
GeneralRe: CListBox how to set single selection? Pin
David Crow20-Aug-07 3:02
David Crow20-Aug-07 3:02 
GeneralRe: CListBox how to set single selection? Pin
Nelek20-Aug-07 19:54
protectorNelek20-Aug-07 19:54 
QuestionRe: CListBox how to set single selection? Pin
David Crow21-Aug-07 2:29
David Crow21-Aug-07 2:29 
GeneralRe: CListBox how to set single selection? Pin
Romiks21-Aug-07 1:06
Romiks21-Aug-07 1:06 
QuestionMFC Version info Pin
Neo Andreson16-Aug-07 6:50
Neo Andreson16-Aug-07 6:50 
AnswerRe: MFC Version info Pin
Maxwell Chen16-Aug-07 7:01
Maxwell Chen16-Aug-07 7:01 
AnswerRe: MFC Version info Pin
David Crow16-Aug-07 7:15
David Crow16-Aug-07 7:15 
GeneralRe: MFC Version info Pin
led mike16-Aug-07 7:25
led mike16-Aug-07 7:25 
QuestionC++ DataGrid Question... Please help Pin
webHamlet16-Aug-07 5:47
webHamlet16-Aug-07 5:47 
AnswerRe: C++ DataGrid Question... Please help Pin
Maxwell Chen16-Aug-07 6:31
Maxwell Chen16-Aug-07 6:31 
Questionhow can i read hardware sn (for example mainboard & ram & hdd & ...) ? Pin
ifrom_hell16-Aug-07 5:26
ifrom_hell16-Aug-07 5:26 

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.