Click here to Skip to main content
15,919,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Working with a picture box Pin
MALDATA27-Jun-05 15:09
MALDATA27-Jun-05 15:09 
GeneralRe: Working with a picture box Pin
MALDATA28-Jun-05 6:17
MALDATA28-Jun-05 6:17 
Generaldisconnecting a tcp connection Pin
godofinferno27-Jun-05 7:52
godofinferno27-Jun-05 7:52 
GeneralCalling a function in a DLL question. ( corrupted data ) Pin
Maximilien27-Jun-05 7:24
Maximilien27-Jun-05 7:24 
GeneralRe: Calling a function in a DLL question. ( corrupted data ) Pin
David Crow27-Jun-05 9:32
David Crow27-Jun-05 9:32 
QuestionWhy doesn't it do what it's suppose to do? Pin
tomek1827-Jun-05 6:35
tomek1827-Jun-05 6:35 
AnswerRe: Why doesn't it do what it's suppose to do? Pin
David Crow27-Jun-05 7:32
David Crow27-Jun-05 7:32 
GeneralRe: Why doesn't it do what it's suppose to do? Pin
tomek1827-Jun-05 21:07
tomek1827-Jun-05 21:07 
The whole program works something like this. It's only my assumption, as I'm not an expert, and didn't program this code.
A character or a line of characters is recieved by the program, and passed as lpszData, UniCode (I think) or szData (don't know what format, ASCII?). To other functions.

So everytime a character is recieved, the character is passed to SortData, and that's where I am stuck.

You have seen how I'm trying to filter it out, and get rid of the new lines. But the if statement doesn't recognise \n or \r or even hex or oct or "x"!!! The only thing it recognises is if I write if (nPass == 50), which means recieved characters. But that doesn't even work correctly, I think it's got to do with the timing of the communication via serial, as it looses data when it goes into the if statment.


DavidCrow wrote:
And why do I always get errors refering to converstions. eg. no conversion from char* to int.

I can't remember now the exact error, but when I get it next will post it. Just woke up. WTF | :WTF:
GeneralRe: Why doesn't it do what it's suppose to do? Pin
David Crow28-Jun-05 2:16
David Crow28-Jun-05 2:16 
AnswerRe: Why doesn't it do what it's suppose to do? Pin
FlyingTinman27-Jun-05 13:30
FlyingTinman27-Jun-05 13:30 
GeneralMersenne Twister Pin
jdrobinson8127-Jun-05 5:59
jdrobinson8127-Jun-05 5:59 
GeneralRe: Mersenne Twister Pin
toxcct27-Jun-05 6:21
toxcct27-Jun-05 6:21 
GeneralRe: Mersenne Twister Pin
jdrobinson8127-Jun-05 6:42
jdrobinson8127-Jun-05 6:42 
GeneralRe: Mersenne Twister Pin
jdrobinson8127-Jun-05 6:42
jdrobinson8127-Jun-05 6:42 
GeneralRe: Mersenne Twister Pin
FlyingTinman27-Jun-05 11:48
FlyingTinman27-Jun-05 11:48 
GeneralRe: Mersenne Twister Pin
jdrobinson8127-Jun-05 12:39
jdrobinson8127-Jun-05 12:39 
GeneralRe: Mersenne Twister Pin
FlyingTinman27-Jun-05 13:18
FlyingTinman27-Jun-05 13:18 
Questionis there anyway to move mouse to any point? Pin
ugur_basak27-Jun-05 5:55
ugur_basak27-Jun-05 5:55 
AnswerRe: is there anyway to move mouse to any point? Pin
Ravi Bhavnani27-Jun-05 5:56
professionalRavi Bhavnani27-Jun-05 5:56 
GeneralRe: is there anyway to move mouse to any point? Pin
ugur_basak27-Jun-05 6:12
ugur_basak27-Jun-05 6:12 
GeneralRe: is there anyway to move mouse to any point? Pin
Ravi Bhavnani27-Jun-05 6:28
professionalRavi Bhavnani27-Jun-05 6:28 
GeneralRe: is there anyway to move mouse to any point? Pin
ugur_basak27-Jun-05 6:32
ugur_basak27-Jun-05 6:32 
GeneralRe: is there anyway to move mouse to any point? Pin
toxcct27-Jun-05 6:39
toxcct27-Jun-05 6:39 
GeneralRe: is there anyway to move mouse to any point? Pin
BlackDice27-Jun-05 6:42
BlackDice27-Jun-05 6:42 
GeneralRe: is there anyway to move mouse to any point? Pin
Ravi Bhavnani27-Jun-05 6:45
professionalRavi Bhavnani27-Jun-05 6:45 

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.