Type: Posts; User: Smasher/Devourer
Search took 0.04 seconds.
March 2nd, 2007, 03:19 AM
You have a few problems, the most obvious of which is that your nested for loops both start at zero, which means you're (a) neglecting the initial values you set up with your first for loop, and (b)...
January 22nd, 2006, 11:55 AM
Perhaps I'm misunderstanding here, but I don't think what you're saying makes any sense. The concept of an "entry" in a binary file is exactly what you define it to be, nothing more. In other words,...
January 22nd, 2006, 10:24 AM
I've got an MFC program that I wrote using Visual C++ 6. I'd like that program to be able to modify an existing MS Excel spreadsheet by opening that spreadsheet and passing arguments to a VB macro...
October 28th, 2005, 11:54 AM
Slough Feg - I Will Kill You / You Will Die
October 26th, 2005, 10:19 AM
Ah! Yep, that explains it. :)
October 26th, 2005, 10:12 AM
When you define tmpByte that way, here's what's stored in memory (using hex digits):
00 00 00 01 00 01 00 01 -- tmpByte
When you cast the pointer to a ULONG*, it still points at the same...
October 23rd, 2005, 01:44 PM
Which makes sense if you think about it: when the preprocessor encounters an #ifndef directive, it still has to scan through the rest of the file to determine where the corresponding #endif falls,...
October 20th, 2005, 11:39 AM
IDirect3DTexture9::GetLevelDesc() fills out a D3DSURFACE_DESC structure that contains all kinds of information about the specified level of a texture, including its dimensions.
October 19th, 2005, 10:45 AM
Thanks SuperKoko, I'd never seen that before. :thumb:
October 18th, 2005, 11:23 PM
Set the lpstrInitialDir member of the OPENFILENAME structure. If you're using the MFC class CFileDialog, that structure is a class member called m_ofn.
October 18th, 2005, 11:13 PM
If you want to validate input in a loop, you typically use something like this:
if (input is invalid)
print error message;
} while (input is invalid);
October 18th, 2005, 10:28 PM
# is the stringizing operator, used to convert macro arguments into string constants. Details on its use can be found here. Here's a simpler example:
using namespace std;
October 18th, 2005, 01:59 PM
Happy Birthday, Cilu! Sorry I'm late. ;)
October 17th, 2005, 08:54 PM
The easiest way is probably to call IDirectDrawSurface::GetDC(), which will get you a GDI-compatible device context for the surface. Then you can use that device context with a GDI function such as...
October 12th, 2005, 10:16 PM
Most of your syntax errors should be obvious from the error messages given when you try to compile your code. For example, here:
double addDrop(regularPrice, VIPPrice, qty, double& totalAmt,...
October 12th, 2005, 09:54 PM
Str() is a function that converts a numeric type to a string, but in Visual Basic, not C++. If you want to put different types together into a std::string in C++, one easy way is to use a...
October 9th, 2005, 01:47 PM
A couple of reasons. First, although I'm sure the good people here at CG would help me with my problems regardless of whether I did the same for other people, I'd feel bad about getting help here and...
October 9th, 2005, 01:14 PM
Congratulations, Sid! :thumb:
October 8th, 2005, 02:08 PM
GetAsyncKeyState() will work for mouse buttons as well as keys on the keyboard. Use the constants VK_LBUTTON, VK_RBUTTON, and VK_MBUTTON. See the bit on the MSDN page linked above under "Remarks"...
October 8th, 2005, 01:45 PM
Well, if you're using size/2 for both of your loops, and you need one additional line in the center, then that means that one of your loops needs to run one extra time. So have one of your loops run...
October 7th, 2005, 02:05 PM
October 7th, 2005, 02:01 PM
I'm 1.25643391 * 10^-11 AU.
October 7th, 2005, 12:28 AM
1. WIN32_LEAN_AND_MEAN excludes certain parts of the Win32 headers that aren't used too often. If you're curious as to exactly what is cut out, load the windows.h file. There's a number of headers...
October 6th, 2005, 01:06 AM
I've always used stricmp() too, but Visual C++ 6.0 seems to like strcmpi(), stricmp(), and _stricmp(). Anyway, you're absolutely right that it's not standard. I should have remembered that. :)
October 6th, 2005, 12:48 AM
Your problem is probably that you haven't made MyPrc a static member function. You can't use a non-static member function for your hook procedure because its argument list won't match what's...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.