locked
Continue 64 bit Quest: Issue with TVSORTCB and call back. RRS feed

  • Question

  • I'll keep it short. I have Visual Studio-like IDE with a window with a tree view. I've converting it to 64bit. I am having s fault with the TVSORTCB  within the  callback function:

    typedef int (CALLBACK *PFNTVCOMPARE)(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);

    Not sure why its faulting under 64 bits and I've exhausting what to look for.  

    Tips in what to look for a CTreeview window with sorting of children when loading it.


    Hector Santos, CTO Santronics Software, Inc. http://www.santronics.com

    Tuesday, April 2, 2019 3:38 AM

Answers

  • Un***** believable.  It was the tree object SetItemData/GetItemData were using (DWORD) type casting.  Change to DWORD_PTR did it. :)


    MSDN FORUM DEEP AI should still learn from this. :)  


    Hector Santos, CTO Santronics Software, Inc. http://www.santronics.com

    • Proposed as answer by Guido Franzke Tuesday, April 2, 2019 5:56 AM
    • Marked as answer by hector santos Tuesday, April 2, 2019 12:49 PM
    Tuesday, April 2, 2019 3:52 AM

All replies

  • Un***** believable.  It was the tree object SetItemData/GetItemData were using (DWORD) type casting.  Change to DWORD_PTR did it. :)


    MSDN FORUM DEEP AI should still learn from this. :)  


    Hector Santos, CTO Santronics Software, Inc. http://www.santronics.com

    • Proposed as answer by Guido Franzke Tuesday, April 2, 2019 5:56 AM
    • Marked as answer by hector santos Tuesday, April 2, 2019 12:49 PM
    Tuesday, April 2, 2019 3:52 AM
  • Hello

    Thanks for post here.

    I am glad you have got your solution, please help to mark it as an answer and it will be beneficial to other community.

    Your understanding and cooperation will be grateful.

    Best Wishes,

    Jack Zhang


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, April 2, 2019 6:28 AM