1 matches
I changed it to GRAY8 bitmap and result is still the same - 4 as bufsize. That's what it's value is before I call it the second time. I checked the return value of GetLastError(), and it was zero. I guess this means there wasn't any error(?!). It would have returned a non-zero value after some error. And the fonts are not corrupted!! I had tried changing fonts and sizes earlier, and this time also, but the return value is always four bytes. Don't ask me the exact error message, cos I dunno how to use FormatString() for this! But GetLastError()'s return value was zero.
If the trouble is with memory DCs, read that part about CDC::CreateCompatibleDC() with NULL as argument, it had something which I din't understand - When a memory device context is created, GDI automatically selects a 1-by-1 monochrome stock bitmap for it. GDI output functions can be used with a memory device context only if a bitmap has been created and selected into that context.[/b:b4086b634e] I don't think so, but could the trouble due to this? I have another doubt - will GetStockObject() be required for this?
Looks like I'll have to go ahead with GGO_NATIVE unless we find some solution soon enough! :D
|
Related keywords (10)
|