Link to home
Start Free TrialLog in
Avatar of nav2567
nav2567Flag for United States of America

asked on

A in house program not work on WIN7 unless DEP is completely turned off.

We have a in-house program written by Visual Studio 2005 VB6 and being compiled in a Windows XP platform.   The program has been working fine on the XP environment until when run it on a WIN7 Platform, it shows error message "unable to get the window handle for the "AxVSFlexGrid' control.  Windowless ActiveX controls are not supported".  

After doing some research, we have found a command "bcdedit.exe /set {current} nx AlwaysOff " to turn DEP off and it works in WIN7.

We have tried to turn off that particular exe file from the exception list from the WIN7 DEP but getting a message "This program must run with data execution protection (DEP) enabled.  You cannot turn off DEP for this program. "

We do not have this issue or need to turn off anything in Windows XP.  

Experts, please advise if you have any clue.

Many Thanks.
ASKER CERTIFIED SOLUTION
Avatar of TomasP
TomasP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nav2567

ASKER

Sorry.  I have read that article.  None of those.  

The program was compiled in a XP platform.  
Ok, then the application has been detected doing bad things executing from memory.  Have you updated to the latest release of FlexGrid? A quick search showed me there were problems with older versions and DEP
Avatar of nav2567

ASKER

Tomasp, would you explain?  What is the fix of the older version of DEP?

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Or get a newer version of the application that behaves properly
Avatar of nav2567

ASKER

Thanks everyone.