|
The other guys are right. I just want to add some comments.
Pointers are hard for novices. They seperate the experts from the novices!
Don't just fix the code, spend some time to understand what is wrong. User pencil and paper if you must, and trace out exactly what is going on.
It will be helpful to lookup handles as well. What you have done is created a handle (which is a topic even more advanced than pointers), so you will want to see what you have done.
|
|
|
|
|
does anyone know of any good C++/MFC tests that I can download to check my proficiency, or list of interview questions? I've been reading "The Art of Computer Programming" by Donald Knuth and was never more aware of what I don't know until now.
Thanks in advance!
[A brave person isn't always necessarily a smart person]
bdiamond
|
|
|
|
|
bdiamond wrote:
does anyone know of any good C++/MFC tests that I can download to check my proficiency...
Try www.brainbench.com[^].
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
thanks. I was looking for something free, though. I'm not going to be able to pay the 49.95 right now.
[A brave person isn't always necessarily a smart person]
bdiamond
|
|
|
|
|
Sorry. When I last took one of their exams (July-ish), it was free.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
not a problem; thanks for your never-ending help anyway!
[A brave person isn't always necessarily a smart person]
bdiamond
|
|
|
|
|
I always like the real world tests. Head over to sourceforge.net (there are plenty of other places too, this one just happens to be popular), find a C project with some bugs, fix one, and see if your patch is accepted. Some projects will accept anything, but others are very picky, if you can find a picky one and get complex patches accepted then you know you are a good programer.
Tests generally are too short to see how programers will do in the real world.
If you really think you are good openbsd is about the hardest project to get things accepted to. www.openbsd.org. Beware, the people there are hard to work with on a personal level, in addition to being picky about the code they accept.
|
|
|
|
|
No, I'm probably not that good (for www.openbsd.org), but thanks! I will look into the SourceForge.Net thing, though. I've been there before, but I didn't know there were opportunities to make modifications to code like that and see if they would be accepted. Thanks again.
A brave person isn't always necessarily a smart person
bdiamond
|
|
|
|
|
i need to know how run my program in system boot
without using divices driver?
faroq from yemen thammar
working in thammar universty and my intersted about network and security
im programmer from 6 years ago and ihave my B.C from this universty
|
|
|
|
|
Add it to the Startup folder, or the Run key in the registry.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
My VC++ 6.0 SP 5 started misbehaving so I deleted it and reloaded the entire Visual Studio plus SP 6.
I am getting assertion (olelink) with what appears a goofy file path.
I have never debugged this part of MFC and have no clue what path should be there. However, I have installed Visual Studio many times before and never had this problem of missing OLE stuff.
I noticed that some DCOM stuff does not get installed due to different security requirements in WIN2000 SP4.
I am contemplating reistalling Win2000 back to SP 1 and than installing Visual studio again. ( Because MS fix for this security problem did not work for me few months before)
It worked before but would prefer less painfull and time consuming way to resolve this OLE problem if possible.
Any help is greatly appreciated.
Vaclav
|
|
|
|
|
Is there a way to authorize with WinInet in the same way as using the CredentialCache.DefaultCredentials in .Net?
Using WebClient and the DefaultCredentials is very nice in .Net, but I'd like to do the same thing in plain old C++ and Win32/WinInet.
Cheers
|
|
|
|
|
In my current undertaking project, i am developing a window dialog based application as player console to control a piece of hardware for tv reception. can anyone suggest me in VC++, how can i control volumn and make the player screen to full screen?
thx in advance
|
|
|
|
|
There are some good articles on this website about DirectX programming.
|
|
|
|
|
May anyone suggest me how to use Progress Bar Control to show
1) the pecentage, say, how 80 is weighted in the range from 60-100?
2) the completion of a function execution?
thx in advance...
|
|
|
|
|
jooo wrote:
1) the pecentage, say, how 80 is weighted in the range from 60-100?
Use:
m_ctrl.SetRange(60, 100);
m_ctrl.SetPos(80); Now the progress control will show 50%.
jooo wrote:
2) the completion of a function execution?
If you are executing just one function, the progress control will show either 0 or 100%. Not real useful in that situation. It would be useful if you had something to the effect of:
m_ctrl.SetRange(0, 100);
Foo1();
m_ctrl.SetPos(33);
Foo2();
m_ctrl.SetPos(66);
Foo3();
m_ctrl.SetPos(100);
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
yup, i got it, thx very much...
btw, i noticed that SetPos(int nPos), is there any alternative to accept double as parameter like SetPos(double nPos)?
|
|
|
|
|
jooo wrote:
...is there any alternative to accept double as parameter like SetPos(double nPos)?
No such method exists. What are you doing that requires one?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hi All,
What are the routeable members of a class?
With Regards,
A.Ilamparithi.
|
|
|
|
|
Define "routable" in terms of C++.
Are you referring to the accessibility of the member from derived classes?
Kuphryn
|
|
|
|
|
Do you mean the TEXT name of the ID or the NUMERIC value?
Your project can automatically generate an HM file, and the help author can include that, but if you change the TEXTUAL value of the ID, then there is no autmatic checking, excpet to perhaps DIFF the two HM files and then the help author can know that the ID has changed.
Now, if the NUMERIC value of ID changes, that should not matter provided you generate the HM file and the help author uses it in the help instead of hard coding numeric values.
If this does not help, can you please be more specific about your exact problem?
|
|
|
|
|
I mean when the programmer makes a modification that changes an existing ID for a view or dialog box. For a very large project with so many elements, is there a way to track this?
Thanks for your comments.
|
|
|
|
|
Not that I am aware of.
Assuming that the 'standard' way of handling an MFC project is being followed:
I think the best you can do is to keep a Resource.H from the PREVIOUS build of project.
Then each time the project is edited, take the NEW Resource.H file and WinDiff it against the PREVIOUS Resource.H file.
If they are the same, then no changes have been made to the resources (which directly correlate with the help ID) - meaning the dialog and control ID have not changed.
|
|
|
|
|
OK - that's a good suggestion.
Thanks!
|
|
|
|
|
Is there any sample code somewhere showing how to make two listboxes (or ctrls) with two buttons in between --- one to transfer items from left box to right, and one to transfer from right box to left (we see it in windows all the time). I didnt see any thing in the articles. I didnt quite know what I would google on to find a class that does this that someone might have created.
Thanks,
sb
|
|
|
|