TWAIN ActiveX Control, Plug-in, Scanner SDK, Component, HTTP Control/SDK

Dynamsoft TWAIN Products

Support Community for TWAIN Control/Component/SDK for Scanning Solutions
* Login   * Register
* FAQ    * Search

It is currently Sun May 20, 2012 2:23 pm




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Dynamic Twain in Vista & VS2008
PostPosted: Mon May 11, 2009 5:59 pm 
Offline

Joined: Tue Feb 24, 2009 5:00 pm
Posts: 2
We moved our development envioronment (VS2008 SP1 using VB.NET) from an XP Pro machine to a new machine with Windows Vista business. After adding a COM reference (Dynamic TWAIN 4.1...) and adding 'Dynamic Twain Class' from the COM Components in the Choose Toolbox Items dialogue we get the following error whe we try to load the form with the Twain scanner control:

TargetInvocation Exception was unhandled.
Unable to get window handle for the 'AxDynamicTwain' control. Windowless ActiveX controls are not supported.

We can see the scanner icon in the tool box, but when we drag it into a form it shows up like an empty square and when you click elswhere in the form it disappears.

Any suggestions?
Thankyou


Top
 Profile  
 
 Post subject: Re: Dynamic Twain in Vista & VS2008
PostPosted: Tue May 12, 2009 6:30 pm 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1075
The cause of the problem is that the program is closed by DEP(Data Execution Prevention).

The following resolutions can be applied to disable DEP:

Resolution 1:

1. Run Command Prompt as administrator.
2. In the command prompt, type bcdedit.exe /set {current} nx AlwaysOff and press Enter.
3. You should get a success message back.
4. Close the command prompt.
5. Restart the computer to apply.

Resolution 2:

1. Run Command Prompt as administrator.
2. Call "$(DevEnvDir)..\VC\vcvarsall.bat" x86.
3. Type editbin /NXCOMPAT:NO $(TargetPath) and press Enter.
4. Close the command prompt.
5. Restart the computer to apply.

Thanks.

_________________
Catherine Sea
TWAIN Support Team
TWAIN ActiveX/Plug-in for Web Applications, Scanner COM Control
TWAIN .NET Component/SDK for Desktop Applications

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

It is currently Sun May 20, 2012 2:23 pm


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Copyright © 2010 Dynamsoft Corporation. All Rights Reserved. | Knowledge Base | Source Control Blog