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

Search:

Type: Posts; User: hoodoo

Page 1 of 11 1 2 3 4

Search: Search took 0.13 seconds.

  1. Replies
    0
    Views
    1,132

    RichEdit: Drag-n-Drop Problem

    Hi Gurus,

    In my application I need to drop files from different sources (strictly speaking not only files but e.g. MS Outlook attachments as well) into richedit (2.0) control. Thus I use...
  2. Replies
    2
    Views
    617

    Re: getting processes running under win95

    Try using ToolHelp API: CreateToolhelp32Snapshot(), Process32First(), Process32Next()...

    Best regards,

    Vitaly
  3. Replies
    1
    Views
    437

    Re: Problem with multithreading

    I'm afraid console applications don't receive keyboard messages.

    Try adding console input handle (GetStdHandle(STD_INPUT_HANDLE)) to the object-handle array. When the console input handle is...
  4. Replies
    1
    Views
    687

    Re: Changing CButton Color

    http://codeguru.earthweb.com/buttonctrl/color_button.shtml

    Best regards,

    Vitaly
  5. Thread: #define ?

    by hoodoo
    Replies
    1
    Views
    558

    Re: #define ?

    #define D /##/




    Best regards,

    Vitaly
  6. Thread: Event Log

    by hoodoo
    Replies
    19
    Views
    3,324

    Re: Event Log

    Hi Javier,

    I haven't ever used NotifyChangeEventLog() but according to MSDN documentation it registers an event (synchronization object) that is signaled when a new entry is written to the...
  7. Thread: _try

    by hoodoo
    Replies
    5
    Views
    1,925

    Re: _try

    Okay, maybe it's not worth arguing about such unimportant things as underscores... :) I'm just curious to know how your compiler treats _try (a single leading underscore). Mine, VC++ 6.0, resolves it...
  8. Replies
    7
    Views
    785

    Re: Getting filenames from CFileDialog

    Strange... The code you posted works fine for me (provided I initialize the buffer). Try stepping into MFC code.

    BTW by default CFileDialog uses buffer of the same length - MAX_PATH.

    Regards,...
  9. Re: Creating a shortcut key like ("windows+E" that opens Explorer) to do something i my app

    RegisterHotKey()

    Regards,
    Hoodoo
  10. Replies
    7
    Views
    785

    Re: Some errors in previous post. Refer to this instead.

    Found this in mfc\src\dlgfile.cpp (VC++ 6.0):

    int CFileDialog::DoModal()
    {
    // ...
    // zero out the file buffer for consistent parsing later
    ASSERT(AfxIsValidAddress(m_ofn.lpstrFile,...
  11. Thread: Event Log

    by hoodoo
    Replies
    19
    Views
    3,324

    Re: Event Log

    Hi Javier,

    Make sure you pass the correct parameter to RegisterEventSource(). I'm afraid you simply mistyped: MSDN examples use "SamplApp" (not "SampAppl") event source name both when adding...
  12. Replies
    4
    Views
    2,429

    Re: Worker and main thread communication

    Sorry, the code in my previous post works (may work :) only because the main thread calls GetMessage() before the worker thread posts the message. The correct code would look like

    // ...
    int...
  13. Thread: _try

    by hoodoo
    Replies
    5
    Views
    1,925

    Re: _try

    __try-__except and __try-__finally (Structured Exception Handling statements in MS C/C++) are not the same as try-blocks in C++. Moreover, you cannot mix SEH statements and try-blocks in the same...
  14. Thread: Event Log

    by hoodoo
    Replies
    19
    Views
    3,324

    Re: Event Log

    Hi, Javier

    Try compiling and executing the following code to check if your message dll is okay (give LoadLibrary() the full path to the dll):

    #include <windows.h>
    #include <iostream>
    #include...
  15. Replies
    4
    Views
    2,429

    Re: Worker and main thread communication

    Your console app doesn't need to have windows. For a thread to receive messages it just has to have message queue. The queue is created automatically at the first call to GetMessage() or...
  16. Re: Console programs and protected class members

    Really strange code... First, constructors cannot return anything:

    // This is correct
    Account::Account( double d )
    {
    _balance = d;
    }
  17. Thread: Event Log

    by hoodoo
    Replies
    19
    Views
    3,324

    Re: Event Log

    Hi Javier,

    First, make sure the dll contains message table: it is a (binary) resource of type 11 with id 1. If the resource is absent make sure you have added the .rc file generated by message...
  18. Replies
    9
    Views
    1,124

    Re: STL and warnings

    In reply to:

    how do I turn of a Linker warning?



    Try setting linker option /WARN[:level], for instance /WARN:0 though this does not suppress all warnings.

    Forgot to say: use these tricks...
  19. Replies
    9
    Views
    1,629

    Re: STL and warnings

    In reply to:

    how do I turn of a Linker warning?



    Try setting linker option /WARN[:level], for instance /WARN:0 though this does not suppress all warnings.

    Forgot to say: use these tricks...
  20. Replies
    9
    Views
    1,124

    Re: STL and warnings

    In reply to:

    I try to never suppress warnings.



    So do I :) But sometimes suppressing annoying warnings may be useful, especially when using STL. See Q154419...
  21. Replies
    9
    Views
    1,629

    Re: STL and warnings

    In reply to:

    I try to never suppress warnings.



    So do I :) But sometimes suppressing annoying warnings may be useful, especially when using STL. See Q154419...
  22. Replies
    8
    Views
    813

    Re: ++ / -- Differences.

    In reply to:

    In the first line the compiler seems to execute the two -- operators in the correct sequence at the expected time.




    myObj.pc=10;...
  23. Replies
    1
    Views
    1,329

    Re: GetDiskFreeSpaceEx

    What's the problem? :)

    #include <windows.h>
    #include <stdio.h>

    void main()
    {
    ULARGE_INTEGER ulFreeBytesAvailableToCallerX;
    ULARGE_INTEGER ulTotalNumberOfBytesX;
    ULARGE_INTEGER...
  24. Replies
    6
    Views
    906

    Re: Meanung of Exception Codes

    http://www.iseran.com/Win32/FAQ/except.html

    Regards,
    Hoodoo
  25. Replies
    6
    Views
    906

    Re: Meanung of Exception Codes

    MSVC++ exception code is 0xE06D7363.

    To get more codes and their meaning, start debugging with Visual Studio and select menu Debug | Exceptions...

    Regards,
    Hoodoo
Results 1 to 25 of 270
Page 1 of 11 1 2 3 4





Click Here to Expand Forum to Full Width

Featured