Forum: C++ Mar 1st, 2009 |
| Replies: 12 Views: 638 Try posting a sample file generated by your program. Off the top of my head, I can't think of anything that would cause this. |
Forum: C++ Feb 21st, 2009 |
| Replies: 6 Views: 429 When AncientDragon wrote Code[h] != 0, his code was correct. Yours isn't. Why? AncientDragon's codes array was a string literal, which automatically has a '\0' or 0 value at the end. Your array does... |
Forum: C++ Feb 15th, 2009 |
| Replies: 2 Views: 498 The problem practically gives away what you need to do. Have you been to class at all? Taken any notes? All you need is a simple (very simple) loop, a few counters, and the basic math knowledge to... |
Forum: C++ Feb 13th, 2009 |
| Replies: 65 Views: 3,330 The first parameter, hWnd (passed NULL) is the window to associate the new process with (NULL means you aren't using this feature).
The second, lpOperation, is what you want to do with the file... |
Forum: C++ Feb 12th, 2009 |
| Replies: 5 Views: 383 You're right, it is being used differently. In this case, it is passing the object by reference, which is just C++'s shortcut around pointers. It just means anything you do to the parameter within... |
Forum: C++ Feb 8th, 2009 |
| Replies: 12 Views: 624 It will not modify and addresses but it will set all of the values of shoe_copy to the values of shoe1. It wont call a copy constructor. I have seen this called a "shallow copy" (here... |
Forum: C++ Jan 29th, 2009 |
| Replies: 11 Views: 1,457 Compress the sound beforehand, then apply the gain. Try here (http://en.wikipedia.org/wiki/Dynamic_range_compression) for some info on dynamic range compression. |
Forum: C++ Apr 18th, 2008 |
| Replies: 11 Views: 1,512 You could use the WinAPI file functions (http://msdn2.microsoft.com/en-us/library/aa364232(VS.85).aspx) which allow you to set sharing permissions (as well as other flags and such for the sort of... |
Forum: C++ Apr 18th, 2008 |
| Replies: 10 Views: 1,050 He didn't mean you should change it to 0, he meant thats what your code equated to. He meant you should either set or prompt for a product number. The first product in the display is still zero... |