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.49 seconds.

  1. Thread: Tic Tac Toe

    by GCDEF
    Replies
    6
    Views
    2,082

    Re: Tic Tac Toe

    If the code in the OP is still current, board[choice] is never getting set in your loop.
  2. Replies
    8
    Views
    1,657

    Re: Opening .xlsx file in Excel programmatically

    You could start here
    https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessa
  3. Replies
    3
    Views
    3,203

    Re: Built in Data Types Support in C and C++

    Your question isn't clear. Both languages have build in datatypes. Neither is a really good choice for small projects.
  4. Replies
    4
    Views
    1,491

    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.
  5. Replies
    5
    Views
    1,049

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

    That's what databases are for
  6. 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...
  7. 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?
  8. Thread: refresh dialog

    by GCDEF
    Replies
    7
    Views
    1,471

    Re: refresh dialog

    If it's an MFC dialog, UpdateData should do it
  9. Replies
    4
    Views
    1,527

    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
  10. Replies
    4
    Views
    1,527

    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.
  11. Replies
    4
    Views
    1,527

    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...
  12. Thread: Zombie dialog

    by GCDEF
    Replies
    4
    Views
    1,437

    Re: Zombie dialog

    Hobson hasn't been seen here since 2013
  13. Replies
    2
    Views
    5,700

    Re: How to expand dropdownlist?

    Use the resource editor. Click on the drop arrow and resize
  14. Replies
    12
    Views
    2,610

    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?
  15. Replies
    12
    Views
    2,610

    Re: Unable to compile

    And does it actually exist?
  16. Replies
    1
    Views
    3,703

    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...
  17. Replies
    6
    Views
    2,644

    Re: MSDN: Documentation issue

    It works for me
  18. Replies
    5
    Views
    2,189

    Re: Error: No Operator

    max_price returns a Car. Shouldn't it return an amount?
  19. 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?
  20. 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...
  21. Thread: ListCtrl in MFC

    by GCDEF
    Replies
    32
    Views
    11,386

    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...
  22. Thread: ListCtrl in MFC

    by GCDEF
    Replies
    32
    Views
    11,386

    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...
  23. Thread: ListCtrl in MFC

    by GCDEF
    Replies
    32
    Views
    11,386

    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...
  24. Thread: ListCtrl in MFC

    by GCDEF
    Replies
    32
    Views
    11,386

    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.
  25. Thread: ListCtrl in MFC

    by GCDEF
    Replies
    32
    Views
    11,386

    Re: ListCtrl in MFC

    I'm not sure what that means
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4





Click Here to Expand Forum to Full Width

Featured