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

Search:

Type: Posts; User: GCDEF

Page 1 of 80 1 2 3 4

Search: Search took 0.09 seconds.

  1. Replies
    4
    Views
    863

    Re: Basic Dynamic Programming code

    In addition to what 2kaud said, you should learn to write readable code. Single character variable names, and multiple statements on the same line make for code that's both hard to read and debug.
  2. Replies
    5
    Views
    556

    Re: Table of contents when using ::Serialize()?

    That's what databases are for
  3. Re: CStatic - disable double click copy to clipboard.

    How about if it's a WM_LBUTTONDBLCLK return 0 instead of calling the base WindowProc, or set up a message handler in your class that ignores the WM_LBUTTONDBLCLK?

    The problem is likely that you're...
  4. Re: CStatic - disable double click copy to clipboard.

    I've never heard of double clicking copying text to the clipboard either, but could you just turn off the SS_NOTIFY style?
  5. Thread: refresh dialog

    by GCDEF
    Replies
    7
    Views
    681

    Re: refresh dialog

    If it's an MFC dialog, UpdateData should do it
  6. Replies
    4
    Views
    948

    Re: ifstream and nulls

    Turns out because I'm reading into a char array, the debugger isn't showing anything after the null. The data is there though
  7. Replies
    4
    Views
    948

    Re: ifstream and nulls

    That's a letter l, not a 1. It works for files without a null, but stops where there's a null.
  8. Replies
    4
    Views
    948

    ifstream and nulls

    Sorry, this is probably a basic question but I've always used MFC for I/O. I'm using an ifstream and it stops reading as soon as it hits a null. I'm trying to read the end of a file. How do I get...
  9. Thread: Zombie dialog

    by GCDEF
    Replies
    4
    Views
    1,140

    Re: Zombie dialog

    Hobson hasn't been seen here since 2013
  10. Replies
    2
    Views
    1,609

    Re: How to expand dropdownlist?

    Use the resource editor. Click on the drop arrow and resize
  11. Replies
    12
    Views
    1,857

    Re: Unable to compile

    Not just in the solution, but in the directory where it says it is? That's a pretty specific error. If you try to open it by clicking on it in Solution Explorer, does it open?
  12. Replies
    12
    Views
    1,857

    Re: Unable to compile

    And does it actually exist?
  13. Replies
    1
    Views
    1,939

    Re: Designing a game loop.

    Neither of those would work. You've coded a message pump. Ideally, you'd be using different threads, but typically you'd call your message pump from inside a tight loop elsewhere in the program...
  14. Replies
    6
    Views
    1,962

    Re: MSDN: Documentation issue

    It works for me
  15. Replies
    5
    Views
    1,315

    Re: Error: No Operator

    max_price returns a Car. Shouldn't it return an amount?
  16. Re: is it safe to use the bitwise XOR for boolean types (in c++)

    What are you trying to accomplish by doing that? What's wrong with logical or?
  17. Re: How to generate a condition (true or false) based on possibilities?

    You're making it way harder than it needs to be. The solution Victor proposed does what you ask. He hardcoded values for .8, .9, etc. You'll need to use your computed probabilities sorted high to...
  18. Thread: ListCtrl in MFC

    by GCDEF
    Replies
    32
    Views
    5,319

    Re: ListCtrl in MFC

    I don't think you did understand. SetItemData should be an item number, not a hard coded value.

    As to the virtual list control, it's been a while for me, but I remember that as being a way to...
  19. Thread: ListCtrl in MFC

    by GCDEF
    Replies
    32
    Views
    5,319

    Re: ListCtrl in MFC

    Have you read what SetItemData does? It stores an associated DWORD value with a list control item. If you see an item that has text in the second column store that row number somewhere and use it...
  20. Thread: ListCtrl in MFC

    by GCDEF
    Replies
    32
    Views
    5,319

    Re: ListCtrl in MFC

    That would be way less code in MFC. I didn't read what you're doing, but if you're using SetItemData to set the item number of the appropriate second column value, that would be a more elegant...
  21. Thread: ListCtrl in MFC

    by GCDEF
    Replies
    32
    Views
    5,319

    Re: ListCtrl in MFC

    You find an empty second column, then read the previous second column until you find one that's not empty any more.
  22. Thread: ListCtrl in MFC

    by GCDEF
    Replies
    32
    Views
    5,319

    Re: ListCtrl in MFC

    I'm not sure what that means
  23. Thread: ListCtrl in MFC

    by GCDEF
    Replies
    32
    Views
    5,319

    Re: ListCtrl in MFC

    nItem = priya_list.InsertItem(0, ccetre);
    You're inserting at the beginning of the control. That's that the 0 is doing. You need to insert at the end.
    nItem =...
  24. Thread: MFC question

    by GCDEF
    Replies
    7
    Views
    1,142

    Re: MFC question

    Your time would be better spend learning to use the resource editor and the wizards.
  25. Replies
    3
    Views
    1,224

    Re: Problem with function rename()

    This code worked for me, after defining result. Perhaps you just had File Manager looking inside that folder
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4





Click Here to Expand Forum to Full Width

Featured