C++ Drag Drop not working in Windows 7

Hi I have a C++ MFC app that works in XP, but does not allow drag drop in windows 7 (Ultimate)
I have compiled code both under XP SP3 and also Windows 7 using VC2008 C++
The no entry icon appears, and I can find no entry point to my code.
Is there some Win 7 config I need to perform to allow Win 7 drag drop on to my app?
The drop initiates in Windows explorer fine, but OnDragEnter is NOT called in my view class.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Pramod BugudaiCommented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AndyAinscowFreelance programmer / ConsultantCommented:
Try turning the UAC (user access control) off or logon as administrator.  Does the drag drop now work?
10PintsAuthor Commented:
Thanks folks
My user is logged on as a user, I have just built a restore app to go back thro my hourly backs and done a diff with the old code that worked and the new code that does not. (Whilst the old code was built using VC6 and the old libraries it did work on Win 7 ( according to my tester!) anyway after doing the minimum possible to run the old code against the V7 SDK libraries using VS2008, and doing a diff I could not see any significant changes re the drag drop stuff.

But what I had forgotten was that during the interval I had migrated the code to VS2008. In doing so I reckon I have the wrong libraries (in VC6 I moved just prior to the migration to using Win Server 2003 SDK, which apparently was the latest version for VC6 .

The working code was using a prior version before this. What was strange is that the Drag drop code was not even being called at all. So I progressed the libs to CS2008
I have now got it running in VS2008 against SDK V7
With no apparent change to the code, the drag drop now triggers!

I think therefore, it must be the libs. There were also other permissions errors that kept flagging up that did not occur on Win7 tests before which we did get around by ticking the shortcut box "run as admin" and by running in an emulated XP mode ( again from the shortcut properties to the exe.)

Do think that the libs thing could cause this? I would have thought that if the wring libs were used then it would either crash, give an ordinal not found.... or even work?
Not just run, but not do anything ...
What do you reckon?

Kind regards
CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

AndyAinscowFreelance programmer / ConsultantCommented:
Older versions of the libraries might still work without error - it really depends on the code and function signatures that are in use.

>>which we did get around by ticking the shortcut box "run as admin"

I still suspect the UAC could be playing a role in the problem, but that also might be in conjunction with the older libs.
10PintsAuthor Commented:
Thanks Andy, I have checked the UAC and is was set on minimum.
I checked my libraries in VS 2008 ( on XP  - I have SP3 installed)
and they still seem to point to: version 1
which is odd, I have just installed Platform SDK for XP SP 2
and tried the register environment variables from start/all progs/Microsoft Platform SDK for XP SP2/Visual studio Registratio/ Register PSDK Directories with Visual Studio
However on relaunch of VS2008 the env var: $(FrameWorkSDK) (looking in the Macros list) dir still points to v1.0 ...  HELP!?
10PintsAuthor Commented:
Thanks guys - sorry for tardy reply.
Linking against the correct libs helped a lot, but your advice was invaluable

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.