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

Search:

Type: Posts; User: MattAA

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. Replies
    2
    Views
    2,589

    So this means the DWORD casts to a SIZE pointer?

    So this means the DWORD casts to a SIZE pointer?
  2. Replies
    2
    Views
    2,589

    GetCharacterPlacement

    The MSDN documentation for the GetCharacterPlacement looks like this:


    DWORD GetCharacterPlacement(
    HDC hdc, // handle to DC
    LPCTSTR lpString, // character string
    ...
  3. Replies
    7
    Views
    1,438

    Is your application multithreaded? I have yet to...

    Is your application multithreaded? I have yet to figure out how to implement a CAsyncSocket in any thread but the main one. In other threads, it fails with strange CMapPointerToPointer access...
  4. Replies
    2
    Views
    1,242

    Overriding scroll behavior in rich edit

    When I use ReplaceSel() to insert text into a RichEditView, it scrolls the view down to the bottom of the page. Normally, this is desired behavior, but for my purpose, the user might be looking at...
  5. Replies
    0
    Views
    563

    Header file strangeness

    I converted a project I was working on to Visual C++.NET, and I noticed something strange when adding classes. The header files, instead of having #ifndef/#define include protection simply have...
  6. Replies
    6
    Views
    919

    Although it is quite difficult to find everything...

    Although it is quite difficult to find everything at first after switching over to VC++ 6, I have found the interface much quicker to use now. You just select your class, go to the properties tab,...
  7. Replies
    5
    Views
    1,082

    The C++ part of Borland C++ and Visual C++ is...

    The C++ part of Borland C++ and Visual C++ is generally the same, as C++ is standardized. However, when it comes to design tools and object libraries, they vary widely. Microsoft's windows object...
  8. Thread: Assembly

    by MattAA
    Replies
    12
    Views
    1,321

    That would make sense, because in the second...

    That would make sense, because in the second example you are not flushing the pipeline as much with the jump. However, a potential problem is that this loop will not necessarily work correctly --...
  9. Replies
    7
    Views
    1,460

    There are two methods to insert text into a rich...

    There are two methods to insert text into a rich edit control, and neither of them are as good as they should be. The first is to use ReplaceSel to insert text at a selection point, and...
  10. Thread: C++ and void*

    by MattAA
    Replies
    5
    Views
    874

    I'm only making a guess here as I avoid void*...

    I'm only making a guess here as I avoid void* pointers like the plague, but I would think that since you're trying to delete an object, but the compiler only sees you trying to delete a void pointer,...
  11. Wow, I'm surprised to see ASP and SQL at the top...

    Wow, I'm surprised to see ASP and SQL at the top of the list. Several years ago I did a fairly large project with ASP and SQL, but I never thought they were two of the most desired computer skills. ...
  12. Replies
    0
    Views
    738

    Dynamically resizing toolbar

    I have a toolbar control with the style CBRS_SIZE_DYNAMIC and I add toolbar buttons and whatnot, it works fine as long as the text labels are under a certain length. However, once the text labels...
  13. I think a few things need to be cleared up about...

    I think a few things need to be cleared up about the differences between the Windows API and MFC (along with other object-based windows libraries).

    In order to write a Windows application, you...
  14. Replies
    13
    Views
    1,325

    I would say JavaScript and VBScript would not be...

    I would say JavaScript and VBScript would not be programming languagues because they are not standalone. You can't develop a standalone application with JavaScript or VBScript -- it relies on the...
  15. Deleting memory allocated to list view items

    I have a list view control where I insert items on the fly. I set the lParam value of each new list item to a pointer to a structure that contains string info about the item, to allow for sorting. ...
  16. Replies
    7
    Views
    7,645

    These are type definitions defined in the Windows...

    These are type definitions defined in the Windows API:

    TCHAR in a normal program just resolves to 'char.' In unicode applications, however, it resolves to 'wchar_t' to provide easy conversion for...
  17. GetMenu() is derived from CWnd, so if the class...

    GetMenu() is derived from CWnd, so if the class you call it from is not a CWnd or derivative, you cannot do a GetMenu() on it. This is logical because only window objects have menus (and typically,...
  18. When you make a call to EnableMenuItem, its...

    When you make a call to EnableMenuItem, its really just a very thin wrapper around ::EnableMenuItem(m_hMenu, nIDEnableItem, nEnable). m_hMenu is a member variable of the CMenu class that contains...
  19. Replies
    3
    Views
    1,297

    To use the CHARFORMAT2 structure in a RichEdit...

    To use the CHARFORMAT2 structure in a RichEdit 2.0, you must define the following somewhere in your class (I do it in the constructor):

    m_charformat.cbSize = sizeof(CHARFORMAT2);...
  20. Replies
    5
    Views
    1,594

    Call ::GetKeyState(keycode) to get the state of...

    Call ::GetKeyState(keycode) to get the state of the ctrl, shift, or alt keys. Ie ::GetKeyState(VK_CONTROL) will return true if Ctrl is being held down and false if it is up.
  21. Replies
    3
    Views
    1,297

    In PreCreateWindow: BOOL...

    In PreCreateWindow:



    BOOL CEbolaView::PreCreateWindow(CREATESTRUCT& cs)
    {
    // TODO: Modify the Window class or styles here by modifying
    // the CREATESTRUCT cs
    ...
  22. Replies
    5
    Views
    888

    I've finally located the source of the problem,...

    I've finally located the source of the problem, and its nowhere near OnReceive, it just seems to have a significant problem on the socket for some reason. Its actually in one of my views, where I...
  23. Replies
    16
    Views
    4,190

    main is defined as returning an int, by ANSI...

    main is defined as returning an int, by ANSI standard. This alone should encourage you (by you, I mean anyone as a programmer) to use "int main." By setting a void return type in the function...
  24. Replies
    5
    Views
    888

    Thanks for the advice, its definately a good idea...

    Thanks for the advice, its definately a good idea that I need to do in the future. I've isolated what function the error is in, but I can't determine why. There is something that seems to be...
  25. Replies
    5
    Views
    888

    "User breakpoint" problems

    A few days ago I added a feature to my program, and whenever I ran it in debug mode I received a "User breakpoint at (memory address" and the program crashed. I could get around the crash in release...
Results 1 to 25 of 50
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured