Type: Posts; User: GCDEF
Search took 0.20 seconds.
January 23rd, 2015, 10:12 PM
You need to understand what I said in post number 2 and 2kaud said in post number 3. The variables you're inputting data to are not the same variables you're outputting. A variable declared inside...
January 23rd, 2015, 03:34 PM
Your variable compName in function compName() is not the same variable as compName in sendPCInfo(). Same problem with the others.
FWIW, I wouldn't recommend giving variable and functions the same...
January 23rd, 2015, 12:01 PM
That would probably make more sense. Typically you want your drawing in the view class.
January 23rd, 2015, 09:36 AM
m_tracker is a member of CSampleView. You're accessing it as if it were a member of CSampleDoc.
January 22nd, 2015, 12:26 PM
The piece you seem to be missing here is the difference between a HWND and a CWnd or CWnd*. Windows keep track of its resources, so a HWND is the identifier that you would would supply or get from...
January 21st, 2015, 03:15 PM
Yes. It won't be accurate and as I've said several times, and others have intimated, you'll need a loop.
January 21st, 2015, 03:14 PM
I think we need to keep in mind that this is an academic exercise. I don't think it really matters if it's not entirely accurate. Given that sleep will block the thread for approximately the...
January 20th, 2015, 10:12 AM
I believe your initial problem is because you don't have a loop, or it may just be that your program...
January 20th, 2015, 09:46 AM
Not really. What's being said is that sleep will work, but it's not good programming practice. You'd be better to have a timer fire every second to update your clock than to use sleep which...
January 19th, 2015, 09:49 AM
Maybe I'm missing something, but shouldn't there be some kind of loop in there?
And I agree with VictorN, I'd be using a timer.
January 12th, 2015, 08:13 AM
If you've tried C++ and you're getting nowhere, you may want to go to another language that's a bit further removed from the Windows API and syntactically a little simpler such as VB and C#. If you...
January 11th, 2015, 08:15 AM
Why not just create a function to populate the list and call it directly. No need for a message.
January 7th, 2015, 10:21 PM
That's not debugging. Debugging is using the debugger to watch your program running to see what it's doing and why. It's what any of us would use to solve your problem, but since we don't have...
December 31st, 2014, 06:39 AM
I'm guessing after almost 11 years, he's probably moved on.
December 28th, 2014, 02:23 PM
Given that you had to ask how to debug an array out of bounds question, your preferred debugging method isn't really of much interest. You've got some seriously good and experienced programmers...
December 27th, 2014, 06:54 PM
This isn't really an AI problem. The game is pretty simple. You just need to define the rules. First look to see if you can win. Second see if the user's about to win and block him. If neither...
December 26th, 2014, 09:43 AM
Hi, I've been writing Windows C++ code forever, and all I want to do is have my app write a simple text file on an Android phone. At this point I don't care if it's internal or external storage. I...
December 24th, 2014, 08:42 AM
Why not just rename it?
You could always just read the file and put it into the clipboard yourself. There's no need to automate notepad just to read a text file.
December 15th, 2014, 10:06 AM
Give it a name.
CreatureName = NameOfCreature;
December 15th, 2014, 09:03 AM
You've defined the constructor, but you haven't implemented it.
December 15th, 2014, 08:53 AM
Post the code you have now.
December 13th, 2014, 07:48 AM
Not likely people are going to download zip files of unknown origins. Just based on your title, WM_TIMER messages are handled by windows, not documents.
December 12th, 2014, 03:30 PM
You're doing what a lot of beginners do, which is writing code without understanding what you're trying to do. The first thing to do is plan the necessary steps.
1) Prompt for a name.
2) Read a...
December 12th, 2014, 09:25 AM
Keep in mind, the computer will do things in the order you tell it to. You're assigning a letter to grade, but you haven't yet given grade a value.
I would think you'd want to get the user to...
December 11th, 2014, 09:39 PM
Could you please answer the question I asked. Your requirements aren't clear yet.
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.