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

  1. Thread: Zombie dialog

    by GCDEF
    Replies
    4
    Views
    922

    Re: Zombie dialog

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

    Re: How to expand dropdownlist?

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

    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?
  4. Replies
    12
    Views
    1,584

    Re: Unable to compile

    And does it actually exist?
  5. Replies
    1
    Views
    1,545

    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...
  6. Replies
    6
    Views
    1,581

    Re: MSDN: Documentation issue

    It works for me
  7. Replies
    5
    Views
    1,022

    Re: Error: No Operator

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

    by GCDEF
    Replies
    32
    Views
    3,242

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

    by GCDEF
    Replies
    32
    Views
    3,242

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

    by GCDEF
    Replies
    32
    Views
    3,242

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

    by GCDEF
    Replies
    32
    Views
    3,242

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

    by GCDEF
    Replies
    32
    Views
    3,242

    Re: ListCtrl in MFC

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

    by GCDEF
    Replies
    32
    Views
    3,242

    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 =...
  16. Thread: MFC question

    by GCDEF
    Replies
    7
    Views
    894

    Re: MFC question

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

    Re: Problem with function rename()

    This code worked for me, after defining result. Perhaps you just had File Manager looking inside that folder
  18. Replies
    16
    Views
    1,791

    Re: Visual annoyances in VS2019

    When you're debugging, right click on a variable and select watch
  19. Replies
    16
    Views
    1,791

    Re: Visual annoyances in VS2019

    Have you tried just adding a watch while you're debugging?
  20. Replies
    16
    Views
    1,791

    Re: Visual annoyances in VS2019

    Hold the ctrl button down and scroll your mousewheel.
  21. Replies
    17
    Views
    2,011

    Re: simple log functionality

    I told you why replace isn't working.
    https://en.wikipedia.org/wiki/Escape_sequences_in_C

    I'm still not sure why you don't write the backslashes in the first place, or if forward slash works, why...
  22. Replies
    17
    Views
    2,011

    Re: simple log functionality

    Why not just code std:fstream file2("C:\\temp\\test.log");

    You need to read up on escape sequences. Your original file name doesn't contain backslashes, it contains tabs, which is why the replace...
  23. Replies
    7
    Views
    1,835

    Re: Creating a Directory

    Slashes are used as directory delineators in a path name. It's not reasonable to expect to be able to use them as part of a directory name.
  24. Re: 'player::player': no overloaded function takes 4 arguments

    I don't see an obvious problem. Is player.h #include(d) in Main?
  25. Re: Programm crashes due to the presence of code even if it is not executed

    Is that your actual code? Sounds like you may have if(1 = 2)
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4





Click Here to Expand Forum to Full Width

Featured