Drag&Drop related issue. Drag files from 32bit tc into 6

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
xred2015
New Member
New Member
Posts: 1
Joined: 2015-12-17, 15:46 UTC

Drag&Drop related issue. Drag files from 32bit tc into 6

Post by *xred2015 »

How to test:
1. Compile a MFC app by VS 2013 (or above?) with x64
2. Enable drag&drop features of this app
3. Drag files from 32 bit TC into app
4. Failed. Windows Explorer works very well.

Then, I looked into my app and found hDropInfo became into an invalid handle.

Code: Select all

UINT cnt = ::DragQueryFile(hDropInfo, (UINT)-1, NULL, NULL);

64bit TC don't have this issue.

BTW, TC and app both work as normal user.(Non-administrator)

EDITED: If this app was compiled by VS 2008, 32bit&64bit TC both work.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Hmm, no idea - maybe you need to make a copy of the data in the WM_DROPFILES message handler if you want to use it outside.
Author of Total Commander
https://www.ghisler.com
Post Reply