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

Search:

Type: Posts; User: petszk

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Replies
    4
    Views
    2,268

    Re: Vertical spacing on a CMenu

    I did play around with a number of different styles in the OnApplicationLook() function, but none of them seemed to affect the menu spacing.
    Creating a default, dummy, MDI application thru the...
  2. Replies
    4
    Views
    2,268

    Re: Vertical spacing on a CMenu

    I *could*, and will if I have to, but it seems to be an awful lot of work for what seems to be a small change.
    When I create a new dummy MDI application, the menu spacing is normal, so it seems...
  3. Replies
    4
    Views
    2,268

    Vertical spacing on a CMenu

    I have an MDI MFC application which has a menu at the top. Nothing particularly unusual about that, but for some reason my application seems to have a vertical spacing about 30%-40% bigger than...
  4. Replies
    3
    Views
    1,111

    Re: Problem with an Icon in a Status bar

    Perfect!

    Thanks for your assistance.
  5. Replies
    3
    Views
    1,111

    Problem with an Icon in a Status bar

    Hi all,

    I am attempting to set an icon in a CMFCStatus bar pane.

    I am able to display the icon (and set the tooltip text) with the following code;


    HICON hIcon;
    hIcon =...
  6. Replies
    9
    Views
    2,158

    Re: how to check if char* is == "" ?

    Interesting - the optimizing compiler is cleverer than I gave it credit for.

    Thanks for that! :)
  7. Replies
    9
    Views
    2,158

    Re: how to check if char* is == "" ?

    What you've suggested is identical (in term of the resultant code generated) to what I suggested.

    The only difference is (and this is purely personal style), what you suggested loses readability....
  8. Replies
    9
    Views
    2,158

    Re: how to check if char* is == "" ?

    Why test

    if (_strlen(pValue) == 0)

    instead of

    if (*pValue == '\0')
    ?

    Surely the latter is faster/better?
  9. Replies
    8
    Views
    4,536

    Re: detect a singel click

    Surely a mouse button going up is a single click?
  10. Replies
    5
    Views
    9,622

    Re: Limit the number of characters in a text box

    You can create an event handler for when the text in the text box is changed (ON_EN_CHANGE(IDC_EDITCONTROL, OnEnChangeEditcontrol) )

    Within the event handler, you can get test the length of the...
  11. Replies
    3
    Views
    1,450

    Re: reading 1 byte of data in hex

    When you say;


    Do you mean c:\test.bin contains a single byte, which has a value of 0xb7, or do you mean it contains 3 characters of text, 'b', then '7', then 'h' ?
  12. Re: How to find out why an application cannot start?

    Never mind - I found this article-> http://www.switchonthecode.com/tutorials/csharp-tutorial-dealing-with-unhandled-exceptions

    which helped me find out that there was a missing assembly.
  13. [RESOLVED] How to find out why an application cannot start?

    Hi,

    I have an application written in C# which connects to a local database.
    This application works on both my development PCs, both as a debug and release build.

    However, on my testing PCs,...
  14. Replies
    83
    Views
    10,399

    Re: Can someone please run this in XP

    No.
  15. Replies
    23
    Views
    3,691

    Re: Can Someone Help Me ( Assignment ) Ques

    Just as an aside, here in Australia licence plates are alphanumeric and can be up to 15 characters in length. Ditto for New Zealand, Germany and the UK.

    Are they purely numeric in the USA? (I've...
  16. Re: ROT13 ******* addition turns value negative :s

    To expand on what Paul & GCDEF said, a char is 1 byte - it can have 256 possible values.

    If it is unsigned, those values are in the range 0 - 255
    If it is signed, those values are in the range...
  17. Replies
    5
    Views
    1,486

    Re: Beginners question about methods

    I agree wholeheartedy.
    I know coding preference ultimately comes down to what you're used to, but I've never seen any benefit in keeping the braces misaligned.
  18. Replies
    11
    Views
    1,800

    Re: c++ email question

    http://lmgtfy.com/?q=c%2B%2B+email+send
  19. Re: Adding doubles together produces different results in Release vs. Debug mode.

    You should do the rounding on each value as you add them, not once at the end.

    Consider adding the following 3 values;

    $1.00499999
    $2.00499999
    $3.00499999

    Assuming you want to round and...
  20. Re: 0xC015000F: The activation context being deactivated is not the most recently act

    It's interesting you get that error on VS2005.
    I had been on VS2005 until 2 weeks ago when I finally upgraded to VS2010.
    As soon as I upgraded to VS2010, I started getting that error whenever a...
  21. Replies
    6
    Views
    1,482

    Re: build solution vs rebuild solution

    I believe it just checks the timestamp on the source (.CPP + any .H files that each .CPP includes) files vs the timestamp on the object (.OBJ) files.

    Any source files that are more recent than...
  22. Re: VS2005 application doesn't start on other PCs

    You could try opening the .EXE file with dependency walker to highlight any DLL's it expects but cannot find. ( http://www.dependencywalker.com/ )
  23. Replies
    39
    Views
    5,448

    Re: College student struggling with program

    So what is the problem?
  24. Thread: About life..

    by petszk
    Replies
    2
    Views
    927

    Re: About life..

    Didn't use code tags. :(








    :p
  25. Thread: MFC App Refresh

    by petszk
    Replies
    6
    Views
    2,213

    Re: MFC App Refresh

    You could create a thread that "twiddles its thumbs" for a few seconds, then tells the app to refresh. But I'm not sure that refreshing the application will bring it to the foreground if it isn't...
Results 1 to 25 of 38
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured