The idea of the Sleep() function is to cause the program to pause a moment, then resume the program. As I already know, the parameter of the Sleep function is the milliseconds that the program is suppose to pause for. What I'm having problems with is it's appropiate use. Let me give you an...
I have been working on a program for some time now. I decided to go purchase another computer because my old one was getting a little dated. When I reloaded VC++ 6.0 onto my new computer and then loaded my program onto it, it is now having some major problems. The program works out OK...
Hello,
I started out with self help books, and C++ was the first language I learned. Some people have told me that I should have learned a more basic language first, or to have started with C. I disagree. I have found C++ to be very helpful, and while complex, it is easy enough to grasp as...
Well, here's a semi answer to your question. Hope it helps some. The function CreateEx() doesn't take 3 parameters and yet you have it loaded with 3. Also, just like the debugger states, your program isn't recognizing CBRS_GRIPPER. Do you have all your #include files? What are you trying to...
I would try the Microsoft Webpage, but honestly you may just have to buy yourself a version. I know that I just gave away my 4.0 version to a friend not so long ago, so if your looking for older versions you only have to find someone who has one. The newer ones, you will have to fork over some...
Worked like a charm. Thank you very much for your time and help. Thierry, your code examples did the trick wonderfully. Couldn't have done it without your help, or at least I'd still be scratching my head and fumbling through yet more text books. IonelBurtan, thanks for the ideas. That...
Thank you for your help in this topic, from an earlier question, but I'm still somewhat lost. I can serialize a single object now, with no problems (Thanks Thierry!). The problem is I want a whole array of objects to fit into a single file. I could serialize one object at a time into a single...
Thank you, thank you, thank you. I knew I was making it just too complicated. It was indeed very simple, as you pointed out for me.
Again, many thanks
Nyjil
:-D
I'm just about ready to pull my hair out of my head. This should be a simple concept, but it is proving to confound me in every which manner. All I want to do is to assign the value of one object to the values of another object, i.e.
CDog Fido;
CDog Spot;
Fido = Spot;
This is simple enough...
How do I serialize an array? I know it is possible to serialize int, CStrings, and other such variable forms. However, what if I have an hypothetical object, lets call it a CCat object. This object is made from 3 integer variables, and a CString variable. How do I serialize the whole object...
Hmmm, sounds like there might be a focus problem, but I'm not sure. If you would like your dialog box to capture the OnKeyDown() for you, then you actually need to use the PreTranslateMessage() instead of the OnKeyDown(). The PreTranslateMessage() is not the be-all-end-all of capturing when a...
With the help of Zaki, I managed to get a long way into my problem, but I'm stumbling on something. What I want to do is to have an edit-box control display a number in a different color. The edit-box is a 'read only', and merely displays information to the user. I want that number to become...
Wanting to be able to change the color of the text appearing within a edit box that is in a dialog box. I want to be able to change it both at run time and design time. The whole idea is that the edit box has a number in it, and when the number gets too low, I want to change the number red so...
Wow,
That worked slicker then I had ever hoped. Your sample code proved to be invaluable. Many thanks to you Thierry. I do believe I owe you one.
s-)
Nyjil
If it were me, don't think I'd use a BOOL variable in this situation. Would just use a MessageBox() with a YES|NO reply to it. I would put it in the exit function, in the menu. If the MessageBox() reply came back as a YES then I'd call the program to seralize there, if not, then exit.
Hope this...
Right click on the list box in design mode. It will bring up a properties box. Under one of the tabs, forget at the moment, is a check box listed as "Sort". Check it. From that time out, all items in the list box will be sorted alphabetically. There you are.
Nyjil
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.