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

Search:

Type: Posts; User: peterchen

Page 1 of 57 1 2 3 4

Search: Search took 0.50 seconds.

  1. Both are "more than just compilers", they are...

    Both are "more than just compilers", they are complete "Integrated Development Environments" (IDE's), containing:

    * Compiler (of course :D )
    * Editor
    * Debugger (for step-by-step execution etc....
  2. Gorgor: Thanks! It's always nice to hear a post...

    Gorgor: Thanks! It's always nice to hear a post has been helpful, especially if it's 2 years old....

    souldog:
    all this is very compiler-dependent, but there's a "normal" implementation, at least...
  3. Replies
    6
    Views
    1,335

    problems with FindWindow(Ex): * FindWindow(Ex)...

    problems with FindWindow(Ex):

    * FindWindow(Ex) will hang, if there is any (even invisible) desktop window that belongs to a hung app

    * FindWindow relies on the application title, which is quick...
  4. actually...

    Anthony:
    microsoft has implemented this feature in MS Word for a few menus: certain menus of the "drawing" toolbar have a small top stripe that turns the menus into floating toolbars

    the...
  5. Replies
    6
    Views
    1,335

    If you have a HWND to the main second app, you...

    If you have a HWND to the main second app, you can use SendMessageTimeout.

    if you just want to "ping" it to see if it's alive, use a "harmless" message such as WM_GETTEXTLENGTH. Or you just...
  6. Replies
    2
    Views
    1,206

    Set focus to the edit in OnInitDialog, but return...

    Set focus to the edit in OnInitDialog, but return FALSE (instead of TRUE, which is "the default)
  7. Replies
    2
    Views
    719

    Keith Rule's CMemDC class should be the answer...

    Keith Rule's CMemDC class should be the answer for this. Although I never used it, everybody and my grandma love it:

    http://www.codeproject.com/gdi/flickerfree.asp
  8. Replies
    5
    Views
    989

    noboost - just C++ (in case you#re looking for...)

    To declare a pointer to a member function:

    struct cfoo {
    int bar(int x);
    };

    int (cfoo::*pFooBar)(int) = cfoo::bar;

    // to call, you need an actual instance -
    foo.*pFooBar(17);
  9. Replies
    5
    Views
    737

    shlwapi: PathXxxx functions

    shlwapi 4.71 (requires IE4, but see below) offers:

    PathCombine to concatenate two path's, and
    PathCanonicalize to "make it pretty".

    from MSDN:
    "All systems with Internet Explorer 4.0 or 4.01...
  10. Replies
    2
    Views
    720

    Re: Double Click on File

    This information is written to the registry.

    for example, for .txt ==> Notepad:

    the key "HKEY_CLASSES_ROOT\.txt" has the default value "txtfile"
    this assigns the ".txt" extension to a certain...
  11. Re: Basic question about creating COM objects in C++

    Hi!

    Tip:
    You can open your control (.dll, or .ocx) in OLE Viewer (run OLE Viewer, choose "View Type Library.." from menu), where you can see all Components with their CLSID's implemented in the...
  12. Replies
    7
    Views
    1,181

    Re: How to use de debugger

    Hi!

    Depends on what you're doing. Typically, VC++ displays assembly only if a) there's no source available, or it doesn#t find the source code, or b) you explicitely requested this.


    Usually,...
  13. Replies
    2
    Views
    591

    Re: testing a dll problem

    Hi,

    You have two ways:

    a) kill & restart explorer process. To kill it, do Start / Shutdown... (so the Shut down / restart etc. dialog box opens). In the dialog box, hold ctrl-alt-shift, and...
  14. Replies
    2
    Views
    499

    Re: PostThreadMessage

    Hi!

    You can only try to locate the Message Pump of the receiving thread, and put a breakpint there.


    Peter
  15. Thread: Size of Icon

    by peterchen
    Replies
    6
    Views
    1,431

    Re: Size of Icon

    Hi,

    Yes, Icon *Resources* can be in multiple sizes & color depths, but when loaded and as a HICON, it has a definite size & depth (a MSDN suggests it's internally represented as some DDB's).

    I...
  16. Thread: Size of Icon

    by peterchen
    Replies
    6
    Views
    1,431

    Re: Size of Icon

    Thanks!

    I already thought of that - but I was looking for a better way. As much as I understand the documentation, the bitmaps are copies of the icon, I'd like to avoid that...


    Peter
  17. Thread: Size of Icon

    by peterchen
    Replies
    6
    Views
    1,431

    Size of Icon

    Hi all!

    How to get the size of an Icon? I just have a HICON, and need it's dimensions.

    Any help? (Rating guranteed ;-)

    Peter
  18. Replies
    3
    Views
    1,311

    Re: PreTranslateMessage()

    hi,

    a) Why & How do you want to use it? That's the first question that comes not only to Sam Hobb's mind ;-)

    b) What it is:
    To process windows messages, each (UI) thread has a so called...
  19. Thread: CListControl

    by peterchen
    Replies
    10
    Views
    4,102

    Re: CListControl

    Ahh... the dreaded header Control again...
    First, the header is a child window of the list, so ON_NOTIFY_REFLECT is bad... the Clazz Wizard generates wrong code here.

    Change the Message Map...
  20. Replies
    2
    Views
    2,757

    Re: Z-Order of MDI Child Windows

    Hi,
    For correct window positioning (save&restore), it is higly recommended to use GetWindowPlacement / SetWindowPlacement. These functions take care of various problematic issues (like Z order, and...
  21. Thread: | operator

    by peterchen
    Replies
    5
    Views
    919

    Re: | operator

    Hi,

    Well.. if you didn't hear of binary numbers before, perhaps this information is enough: If you add the ES_NUMBER style using '+', the result is wrong if the style was already set. Using '|',...
  22. Thread: | operator

    by peterchen
    Replies
    5
    Views
    919

    Re: | operator

    The '|' operator does an bitwise 'or'. In long terms c=a|b means:
    - look at a and b in binary
    - for each bit position: if the bit is set in a, or b, or both, set the bit in c, otherwise, clear...
  23. Thread: CListControl

    by peterchen
    Replies
    2
    Views
    698

    Re: CListControl

    Hi,
    List Ctrl sends an LVN_DELETEITEM, and LVN_DELETEALLITEMS notifications when an item is deleted, so typically you would delete the myRect there.

    Peter
  24. Replies
    4
    Views
    913

    Re: Random Number Generation

    Hi,

    rand() % 6
    will generate random number 0..5

    Note that rand() is not useful for statistical purposes - and the modulo makes it worse (a bit). But if it just should 'look random', or it is...
  25. Thread: HTML parser

    by peterchen
    Replies
    5
    Views
    842

    Re: HTML parser

    Hi,
    I'd say even if they should move the entire thing onto .NET, the Document/Object Model, and the interface will stay the same. And I don't think MS will drop COM completely - although it will be...
Results 1 to 25 of 1405
Page 1 of 57 1 2 3 4





Click Here to Expand Forum to Full Width

Featured