Actually I was trying to simulate the output of a load after asking for an input and a current value(in amps) and I'm suppose to get like 0 and 0.5.
But the device kicks out 0'\xDB''\xDB'0.5'\xDB''\xDB'
instead of 0 0.5 .
And sscanf doesn't know what to do with '\xDB'.
I need to just get the 0 and 0.5.
Can someone please tell me if it's possible to capture a windows event(like when you receive a message with windows NET SEND) with a program. And if it is can you get like the IP from where the message was sent?
Since the Tokenize member function was not yet defined in older MFC library, you have to solve the problem in a different way. I think you have to deal with a series of Find(" ") member functions combined with Mid(...), in a loop.
When I call FillRect with a brush created from a bitmap, the rect will get filled but the bitmap is tiled, even though the rect and bitmap size are the same (20 X 20). Is there a reason for that? I thought the bitmap would get displayed correctly!
Description of CreatePatternBrush says that Windows uses only the first 8 rows and columns of pixels from the bitmap you supplied. If you just need to display an image, why do not use bitmap-drawing functions, like BitBlt?
Geez !!! You are on a forum here, it's not a chat
You posted this question 1 hour ago here[^]. You won't have more answers by flooding the forum !
And you won't have any answers if you don't provide VALUABLE informations !
The only thing I can say, is that you cannot use SDL with MFC. If you want to have a gui, take a look at CEGUI, it can work with SDL.