Re: Using GDI Plus with Win32Lib
- Posted by mattlewis (admin) Jan 09, 2012
- 1235 views
Atoms are atoms where they should be.. If you have no idea why this fails, that's OK... Maybe someone else will have a idea why atoms are not atoms?????? I'll be checking back from time to time..
Well, one problem is that you didn't initialize ppGraphics. Don't you getting an error at that point? And then you never use it. What do you expect this code to do? I don't see it doing much of anything, unless you mean that you actually have more code (which your original post seems to imply).
No one will be able to help you if no one knows what your code looks like. I'm not sure what sort of answer you're expecting, but it since the demo works for you, it seems clear that you aren't using the library correctly. But without seeing what you're doing, that's about all I can say. So far, all you've provided are a few snippets of your code.
I'm sure someone on this forum can help you if you let them. Otherwise, I'd recommend examining each variable to make sure that it's correct, and that you're using it correctly. Right now, only you can do that, since only you have the code. At some point, you must be using something incorrectly, but so far, no one but you has seen enough of your code to know what might be happening.
If your code is very large, then try slimming it down to a minimal example that is easy to post. That also makes it easier to track down the problem, since you'll get rid of things unrelated to the problem. But note that a minimal example will have a lot more code than what you've provided. What we've seen so far won't even run, because it's only a fraction.
Matt