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

Search:

Type: Posts; User: Phil Nicoletti

Page 1 of 5 1 2 3 4

Search: Search took 0.13 seconds.

  1. Re: GetCurrentDirectory() working in some places, but not others???

    1) What is the return value when it fails ? If zero, what does GetLastError()/FormatMessage() give ?

    2) I don't see how it would matter, but GetCurrentDirectory() uses LPTSTR not LPSTR.
  2. Re: Emergent! Problem with the CBitmapButton on CFormView!

    1) Put in OnInitialUpdate()

    2) is the ID of the button IDC_LABEL ?

    3) try creating "LABELD" , "LABELX" , and "LABELF"
  3. Replies
    1
    Views
    456

    Re: Compile time error

    You are missing a header file : Resource.h

    You can probably include it directly into the flash.h file, but usually it is included via another file.
  4. Replies
    1
    Views
    532

    Re: Help needed

    I do not do much GDI programming, but this question
    has been asked before ... here are some links to
    answers that were rated "excellent"

    ...
  5. Replies
    1
    Views
    472

    Re: Help needed

    can you

    pDC->SetBkMode(TRANSPARENT);
  6. Re: Looking for Algorithm to match RGB values

    I've never seen JKS's algorithm, but it looks interesting. It looks similar to this one, but puts a weight on the red/green/blue component (I think). Here is one that just finds the color in the...
  7. Replies
    4
    Views
    730

    Re: Help on array

    As Paul showed in his post , the x.size() has the number of elements
  8. Replies
    4
    Views
    730

    Re: Help on array

    you should use <vector> instead of dynamic arrays, so you will need :

    #include < vector >




    Usage :
  9. Re: Convering user entered decimal entries to text

    I missed one "check for zero" in the previous post. Here is a corrected version (and I also added a removeZero() function, since it was used in a number of places :

    CString convert_to_text(int...
  10. Re: Convering user entered decimal entries to text

    This should work for numbers between 0 and 999999.

    I use vector so you need to :

    #include < vector >




    Here is the function :
  11. Re: How to call FORTRAN code in Visual Studio Plz help

    There are lot's of different ways to do it. Assuming
    you keep all the Fortran settings as default and want
    normal Fortran arguments (by reference, not by value) :


    //
    // declare the fortran...
  12. Re: Why my dialog can't capture the window message

    I suspect the screen saver is in a loop that does not allow the messages to be processed. The best way to get around this is by using threads. However, here is a quick fix that you can try :

    In...
  13. Re: understanding classes and inheritance :(

    You do not destroy classes when the destructor is called, only an OBJECT of that class.
  14. Re: How can I programmatically change the screen area?

    to get the resolution :

    int width = GetSystemMetrics(SM_CXFULLSCREEN);
    int height = GetSystemMetrics(SM_CYFULLSCREEN);





    To change the settings, look at :
  15. Replies
    3
    Views
    439

    Re: classes & arrays

    Why not just :

    test.verify(number,local);




    (But I don't see where you declare these variables).
  16. Replies
    24
    Views
    7,358

    Re: circular array

    Well, there's not much we can do if you don't show code. I would suggest just sitting down and writing the code - don't worry if it doesn't work the first time. Another suggestion - start off...
  17. Replies
    2
    Views
    479

    Re: combobox

    1) bring up the dialog in the editor
    2) left click on the drop-down arrow for the combobox
    3) click and hold on the blue square in the bottom center
    4) drag the sqaure down to make the combo-box...
  18. Replies
    4
    Views
    593

    Re: char array

    //
    char test[20][12];
    char newname[12];
    //
    strcpy(test[1],"aaaaaaaaaaa");
    strcpy(test[2],"bbbbbbbbbbb");
    strcpy(test[3],"ccccccccccc");
    //
    strcpy(newname,test[1]);
  19. Replies
    24
    Views
    7,358

    Re: circular array

    I believe that it is a homework assignment (which is why I did not write the entire code), so he is not supposed to use MFC CList. Plus he has some special requirements not taken into account...
  20. Replies
    6
    Views
    813

    Re: Random Numbers

    By mistake I responded to the post by ThomasK instead of your post, but his suggestion is actually very good. Having done this, you can simulate the behavior of srand() and rand() by :

    //
    //...
  21. Re: How do I disable the maximize button on the frame window

    CMenu *pSysMenu = GetSystemMenu(FALSE);
    if (pSysMenu != NULL)
    pSysMenu->RemoveMenu(SC_MAXIMIZE, MF_BYCOMMAND);
  22. Replies
    6
    Views
    981

    Re: Disabling items in the systemmenu

    Strangely enough, this works ... (it does not gray the maximize menuitem, but clicking on it does nothing ...


    CMenu *pSysMenu = GetSystemMenu(FALSE);
    if (pSysMenu != NULL) ...
  23. Replies
    24
    Views
    7,358

    Re: circular array

    Post what you have done so far, and I will take a look at it.
  24. Replies
    3
    Views
    638

    Re: I need very big numbers !

    What do you mean by "very big integer numbers" ? Integers that are too large to fit in a normal computer word ?
  25. Replies
    6
    Views
    981

    Re: Disabling items in the systemmenu

    This worked for me (called from Mainfrm.cpp) :

    EnableMenuItem(::GetSystemMenu(m_hWnd, FALSE), SC_CLOSE, MF_BYCOMMAND|MF_GRAYED);
Results 1 to 25 of 124
Page 1 of 5 1 2 3 4





Click Here to Expand Forum to Full Width

Featured