Okay, I figured it out. Thanks!
Windows Calculator told me I will die at 28. :(
Okay, I figured it out. Thanks!
Windows Calculator told me I will die at 28. :(
Hello everyone! I'm trying to make something similar to the color toolbar in MS Paint. A regular toolbar doesn't do the job, so I must create my own... But how? I can't derive my class from CToolBar (at least not with the class wizard). I tried deriving from CToolBarCtrl, but I can't figure out how to put it in my window/make it dockable. Any clues? Thanks in advance!
Windows Calculator told me I will die at 28. :(
Hah. I was doing this instead:
void CTempDlg::OnButton1()
{
Modeless modlessDlg;
modlessDlg->Create(IDD_MODELESS_DIALOG, NULL);
modlessDlg->ShowWindow(SW_SHOW);
}
The window closed before it could open, I'm guessing because the object got automatically deleted after that function call. Stupid me. Thanks very much! :)
Windows Calculator told me I will die at 28. :(
Hello everyone! It's been a while since I had to bother you guys with such a noob question, but I couldn't find an answer anywhere. :( I want to have two MFC dialog windows open at the same time, both usable by the user. I don't mind using threads. Any hints? Thanks in advance.
Windows Calculator told me I will die at 28. :(
Greetings, I thought this: hbmTiles = WinGCreateBitmap(hdcBackbuffer, &bmi, (void**)&ptrTiles);
...would put the pixel data of hbmTiles
into ptrTiles
. And it works, the pointer does indeed contain the correct pixel information, but if I write to it, nothing happens to the original bitmap. How can I apply this back to the bitmap? Thanks in advance!
Windows Calculator told me I will die at 28. :(
Yeah, it does all the stuff you need to make a 2D game (the game I mentioned was a Scorched Earth clone), but only graphics, nothing else (input, sound...) is implemented. I made a few demos with it after that, but then the mystery Sharpie marker wrote "retro" in my eyelids so I started making demos for stuff as old as ColecoVision. :~ But now my current "main project" is almost done; the next thing will most probably be using that engine. :)
Windows Calculator told me I will die at 28. :(
code
and pre
tags so it looks nicer. 2) What error did you get? 3) Does it specify a line number?Windows Calculator told me I will die at 28. :(
Yeah, now that you say it, I've got a good game programming book that I never really got into due to laziness... Guess I'll try that. Thanks yo! :)
Windows Calculator told me I will die at 28. :(
Ah come on, nobody has ever felt the same way?
Windows Calculator told me I will die at 28. :(
Hello everyone! I need a bit of help here. You see, I used to code every day, all of my time was spent on eating, sleeping, and coding. It was a happy life, until I began to stare at lines of code for whole minutes and then "waking up" and wondering what I was doing; sort of like a zombie. I couldn't seem to concentrate at all, so I stopped for a while, I think about a week. Then I came back and guess what? I coded a new game engine, a game using that engine, and a very neat GUI system for that game - in less than 4 days. The GUI thing I thought was impossible for someone of my skill level, but it just came natural, I didn't worry at all about not being able to finish it. Didn't get "stuck" or anything. I coded it and enjoyed coding more than ever. But now I'm back to zombieing... damn. So, has anyone else gone through this? Any tips? My dad has some Focus Factor pills, maybe that helps? Don't tell me to wait another week, I've got nothing better to do but play video games and watch Dragonball. It's always been like this, but I had never fully stopped for a whole week before, so the comeback was more dramatic than previous times. Thanks in advance!
Windows Calculator told me I will die at 28. :(
Huh? That easy? I was expecting an extremely long message explaining how to delicately trick C++ into doing what I wanted... Thanks , Rajkumar!
Windows Calculator told me I will die at 28. :(
Hello everyone! I'm designing a OOP-based system in C++, and I'm having a little problem. Say I have this:
class Class1
{
virtual void Draw(Image *a_pImage);
};
class Class2 : public Class1
{
virtual void Draw(Image *a_pImage);
};
Class1::Draw takes care of ugly low-level stuff, and that's a lot of code. How can Class2::Draw call Class1::Draw so that I don't have to copy-paste all of the code in Class2? In C#, for example, you used base.Draw, but base doesn't exist in C++... Thanks!
Windows Calculator told me I will die at 28. :(
I'll try the straight line then and then the curved one, if it doesn't look good. Thanks! ;)
Windows Calculator told me I will die at 28. :(
Hello everyone! Miss me? No? Aww. :( Anyway, I'm trying to make a very simplistic Paint clone. I have a question: I trap mouse drawing with WM_MOUSEMOVE. However, it draws in dots, as in, if I want a doodle I have to go very slowly. How would I fix this? Maybe interpolating; drawing a line between the previous and current dots? But that would be very squareish... Can somebody fill me with their wisdom so I can figure this out? Thanks!
Windows Calculator told me I will die at 28. :(
Wow, looks like there's more to software development than just coding. :wtf: I looked up for some tutorials, and found this bunch: http://www.devdaily.com/Dir/OOA_OOD/Patterns/Tutorials/[^] You seem to know about the subject, so would you mind pointing out which of those is the best to start with? :) Thanks!
Windows Calculator told me I will die at 28. :(
I deserve harsh punishment for not Googling first. :mad: http://www.thescripts.com/forum/thread63131.html[^] Thanks all very much for your time!
I deserve harsh punishment for not Googling first. :mad:
Yes, but Dialog needs Client too... They both need each other, and with the include guards that's not possible. And if I remove the include guards I get infinite error messages by the compiler... :(( Any more ideas? Thanks!
Windows Calculator told me I will die at 28. :(
Hello everyone! I've been coding in C for a long time. Now I' starting to get into C++. Well, my last 2 projects which I started in C++ I had to convert to C because I couldn't figure out how to use classes. Take for example my current situation: There is a Dialog class, which holds all of the GUI functionality of my program. The Dialog class contains an object of type Client, which holds all of the networking functionality. Well, Client wants to interact with a GUI control inside Dialog. But that's not possible because C++ doesn't allow Client to know anything about Dialog. So how would I solve that? If you can answer, I will thank you for life. :) Thanks in advance!
Windows Calculator told me I will die at 28. :(
You're so mean! :laugh: :laugh: :laugh:
Windows Calculator told me I will die at 28. :(