Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Smasher/Devourer

Page 1 of 24 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    795

    Re: Binomial Coefficients

    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)...
  2. Replies
    11
    Views
    1,655

    Re: comparing objects from a binary file

    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,...
  3. A question on automating Excel from a C++ program

    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...
  4. Replies
    2,687
    Views
    483,667

    View Post

    Slough Feg - I Will Kill You / You Will Die
  5. Replies
    5
    Views
    596

    Re: convert to ULONG pointer

    Ah! Yep, that explains it. :)
  6. Replies
    5
    Views
    596

    Re: convert to ULONG pointer

    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...
  7. Replies
    5
    Views
    1,321

    Re: #prama once --vs-- #define

    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,...
  8. Re: Obtain de size of a IDirect3DSurface (x-y)

    IDirect3DTexture9::GetLevelDesc() fills out a D3DSURFACE_DESC structure that contains all kinds of information about the specified level of a texture, including its dimensions.
  9. Replies
    12
    Views
    851

    Re: A strange usage of # and sizeof.

    Thanks SuperKoko, I'd never seen that before. :thumb:
  10. Replies
    3
    Views
    617

    Re: Regarding SaveAs Filedialog

    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.
  11. Re: Make loop continue inspite of invalid input

    If you want to validate input in a loop, you typically use something like this:

    do
    {
    get input;
    if (input is invalid)
    print error message;
    } while (input is invalid);
    If you...
  12. Replies
    12
    Views
    851

    Re: A strange usage of # and sizeof.

    # 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:

    #include <iostream>
    using namespace std;
    ...
  13. Replies
    52
    Views
    2,616

    Re: Happy Birthday Cilu

    Happy Birthday, Cilu! Sorry I'm late. ;)
  14. Re: How to copy HBITMAP to IDirectDrawSurface

    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...
  15. Replies
    3
    Views
    544

    Re: Errors in my program

    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,...
  16. Re: error C2064: term does not evaluate to a function

    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...
  17. Re: Would to prefer to be rated, or a word of thanks?

    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...
  18. Re: congratulation to Siddhartha for becoming an MVP

    Congratulations, Sid! :thumb:
  19. Replies
    3
    Views
    616

    Re: Mouse Input

    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"...
  20. Replies
    4
    Views
    1,087

    Re: Nested Loops help

    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...
  21. Replies
    2,687
    Views
    483,667

    View Post

    :thumb: :thumb:
  22. Replies
    100
    Views
    4,688

    Re: How tall are you ?

    I'm 1.25643391 * 10^-11 AU.
  23. Replies
    3
    Views
    459

    Re: macro & preprocessor

    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...
  24. Replies
    10
    Views
    641

    Re: Bool function question

    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. :)
  25. Replies
    2
    Views
    542

    Re: Maybe stupid question but...

    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...
Results 1 to 25 of 594
Page 1 of 24 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center