Let me explain what I am trying to do. I have one executable file that shows the tracking data at console as 0utput. I want to write a c++ code that can read the tracking data in loop from console. I want to use that tracking data in my own application.
I expect to have about 8 contexts and 17 error codes per context. The context is important because when there is an error I'd like to trace it back to the (code+0x) value so I'd be able to pinpoint the error to, say, file access vs HTTP access (or whatever the context is).
Thanks. Actually, I have already read up on that, and have no problem with WS_EX_COMPOSITED when not using MFC. However, I am not seeing the expected results when I use WS_EX_COMPOSITED with MFC. I am overriding the PreCreateWindow method for a View in a MDI Doc/View application:
but I still get flickering when I draw the window by overriding the OnDraw method. In OnDraw, I'm using a GDI+ Graphics object, and I use the Graphics::Clear method before doing my drawing. There is no flickering when NOT using MFC, even using Graphics::Clear, if the WS_EX_COMPOSITED window style is used.
I thought maybe MFC was using some conflicting window styles, but don't know. Just wondered if something more was required, such as changing some other window style(s) to be compatible with WS_EX_COMPOSITED, or something like that.
Sorry to take so long to get back on this. The problem does indeed seem to be related to scrolling. Mostly I have problems with Graphics::DrawImage with large bitmaps. Everything is fine (except for flickering when resizing by dragging the lower right corner of the window, and some other times), until I add cs.dwExStyle |= WS_EX_COMPOSITED in a PreCreateWindow override. Then, my image flickers and sometimes completely disappears when it is scrolled. It comes back if the window is resized, but is lost again when the window is scrolled.
I'm not having much luck overriding the base class PreCreateWindow with other styles, but I'll double check whether I'm doing that correctly.
Thanks for any help you can give.
-- modified at 12:23 Wednesday 19th September, 2007
Hello 2 everyone interested!
I am looking for a function to convert data from DWORD, float,double and SYSTEMTIME (if possible, this last one) into string.
In fact, I want to dump variables of those data types into a log file. I am using MFC, with CFile and <filename>.Write() function, which expects a string as a parameter.
If I try using filename.Write(LPWSTR(var))(LPCWSTR, or any other string types...) i get conversion errors (sometimes that it requires 'explicit cast').
Any ideas ?