Cimage img;
img.Attach(hbitmap);
debuggin shows that hbitmap is valid but program fails at Attach line. Thank you if you could help me.
Printable View
Cimage img;
img.Attach(hbitmap);
debuggin shows that hbitmap is valid but program fails at Attach line. Thank you if you could help me.
If I have a HBITMAP, then I would like to use it in
Image or CImage or CBitmap or Bitmap, what I can I do, say, to save it in my drive ?
Why do you care about that ? Users come and go, I and a hundred friends of mine used to share the same account and we chatted with one person and it was just fine. I can talk to you now but later I give this account to a HIV patient, and he pretends to be me, then who are you talkng to ?
Who knows if VladimirF is you too ?
http://www.codeguru.com/forum/showpo...52&postcount=2
Seriously. There's been quite the influx of nonsensical posters lately.
I use incorrect English :D. :D
I think it is a good way to ******** things and to create trust. My above example is just a hint, even when the server guys do so, no one from the outside can easily check. Therefore, a person famous like Herb Sutter if using a username ABCDEFG to play mouse and cat games, no one would know it is Herb Sutter
Actually Maejie, I'm a moderator here, so I get to give folks advice in terms of how to respond to posts.
In fact, I'm going to ask you to respond in the future with professional replies only.
That being said, posters that respond with answers here are volunteers, and usually don't have much time to go round and round with folks that are trying to get help, but aren't following advice or answering questions.
I tell you why. Believe it or not, but every case of helping here at forum is very personal. To find most effective way to find the root cause, and especially to explain one to OP, you need to know your addressee personal skills and see his attitude, and way of thinking, and wording. Then you can find appropriate words and samples. This regularly appears true, at least for me. Of course, it's true if your intention is to help or be helped, not just to chat. :)
Good to know that about you.Quote:
Users come and go, I and a hundred friends of mine used to share the same account and we chatted with one person and it was just fine. I can talk to you now but later I give this account to a HIV patient, and he pretends to be me, then who are you talkng to ?
Okay, I will reply (weekends is nice for replies like this, I don't know :rolleyes: )Quote:
Originally Posted by VladimirF
Final words, I was thinking #2 was a cheese game player.. That is why I didn't focus on his questioning replies.
There is no problem now because I solve it.
The error message was something I forgot. But it happened at the ASSERT to say that "m_hbitmap==0". The bitmap handle was valid and in debug it can pass the break point, only image data weren't completely filled, some were marked as ??? while others -1 and the rest was filled with correct data. (Seriously I was dumb, I wish I could reproduce the problem, I should also memorize the message as it helped for future too). I hit it many times before I rewrote the whole program to draw the image thumbnail to insert it into my listview, the error was gone without my notice because I concentrated on the results rather than the bugs as a user-if you develop MS library or a book writer, you likely pay attention to steps to solving this problem. I am at present working with image bitmap only. It'll probably come again. I will let everyone know if you think it's worth.
I am not familiar with the “cheese game player” metaphor; the all-powerful Google found only ONE hit – your post here.
But it does sound derogatory. Why would you think that about someone you don’t know?
But let’s look at my post #2 above.
I’ve asked you – HOW the debugger shows that hbitmap is valid? I stand by that question. I know something about GDI, and I understand that you can spot obviously invalid handle. But I know for a fact that Visual Studio Debugger knows nothing about validity of GDI handle. I even wrote a tool to assist in that (you can see it in my signature).
I then asked you “How does it fail? Any error message?” You must have had this information, but you asked everyone here to guess.
The bottom line is – you obviously don’t have to answer my questions. Just as long as you do not expect my help.
Good luck!