Home › Forums › TWAIN Classic › C#APP and C++DS
- This topic has 6 replies, 2 voices, and was last updated 11 years ago by spike.
- AuthorPosts
Why do my DS, can now use Photoshop program to call, but why in the Internet to download a C# APP but not normal use, can identify DS, just can’t drive scanner, just get a black, provided by Twain company DS commissioning of the C# APP, they found, not run these functions, strange — —
Hello pamxy!
Many apologies, but we can’t understand your question.Suggestions:
1. Use shorter sentences.
2. Use Google Translate.
Translate from your language to English.
Then translate that back to your language.
Change what you write until it goes into English and comes back with the same meaning.
3. Describe what you are trying to do. For example, are you writing a TWAIN driver?
4. Describe what went wrong: What you tried to do, and what happened.
5. Be precise and specific: Which C# App? Which Twain company?-spike _/_
@spike wrote:
Hello pamxy!
Many apologies, but we can’t understand your question.Suggestions:
1. Use shorter sentences.
2. Use Google Translate.
Translate from your language to English.
Then translate that back to your language.
Change what you write until it goes into English and comes back with the same meaning.
3. Describe what you are trying to do. For example, are you writing a TWAIN driver?
4. Describe what went wrong: What you tried to do, and what happened.
5. Be precise and specific: Which C# App? Which Twain company?-spike _/_
Hello spike, I use is Google translation, sorry, my English bad ah, I do the data source of DS development, the DS can now be opened in Photoshop or Twack_32, can control the scanner to scan the image, but when I open my DS by using C# to write a APP, it no drive to my equipment, so I want to use VS2008 debugging, Twain official DS examples in debug mode using the C# APP open, but found that the image button in the I clicked, did not enter my set debug points is not running, I DS function, so I want to ask, do with C# APP there is a generation gap and do with C++ DS? Can understand? Spike! ~
Hi pamxy – Well, Google has a few things to learn about your native language!
What is your native language, by the way?Anyway, now I think I understand your question.
Your C# application, can it see any other TWAIN drivers?
First thing to check: Is your C# application compiled with Platform target = x86?
In Visual Studio 2008, find the application project in the Solution Explorer window.
Right-click on that and choose Properties.
Choose the ‘Build’ tab on the left.
Look at ‘Platform target’. It must be ‘x86’.
Otherwise on x64 system, C# generates 64-bit code, which calls 64-bit TWAIN, which only talks to 64-bit drivers. I guess your driver is not 64-bit?Another thing to try: What TWAIN library is loaded by the C# application? You can see the DLL being loaded, it is listed in the Output window.
Is your DS loaded? When the C# application lists the available drivers, or tries to open your DS, you will see all the drivers being loaded, in the Output window.
If it does not list your DS, then it is not being loaded.Does your DS use .NET? What programming language is your DS in?
@spike wrote:
Hi pamxy – Well, Google has a few things to learn about your native language!
What is your native language, by the way?Anyway, now I think I understand your question.
Your C# application, can it see any other TWAIN drivers?
First thing to check: Is your C# application compiled with Platform target = x86?
In Visual Studio 2008, find the application project in the Solution Explorer window.
Right-click on that and choose Properties.
Choose the ‘Build’ tab on the left.
Look at ‘Platform target’. It must be ‘x86’.
Otherwise on x64 system, C# generates 64-bit code, which calls 64-bit TWAIN, which only talks to 64-bit drivers. I guess your driver is not 64-bit?Another thing to try: What TWAIN library is loaded by the C# application? You can see the DLL being loaded, it is listed in the Output window.
Is your DS loaded? When the C# application lists the available drivers, or tries to open your DS, you will see all the drivers being loaded, in the Output window.
If it does not list your DS, then it is not being loaded.Does your DS use .NET? What programming language is your DS in?
The C# application can be seen in other DS, and even can control the scanner canon, also can see my DS and Twain program examples of DS platform, C# application program goal is to “Any CPU”, I also test the next x86, debugging breakpoints but also can not enter the Twain program examples DS, my DS is written using C++
那个C#应用程序是可以看到其他DS的,甚至可以控制佳能的扫描仪扫描,也可以看到我的DS和Twain的程序例子的DS,C#应用程序的编译平台的目标是“Any CPU”,我也测试了下x86的,但也是不能进入Twain程序例子的DS的调试断点里,我的DS是使用C++写的My problem is solved, the original equipment is open closed position right equipment statement, thank you! ~
我的问题解决了,原来是打开设备关闭设备语句放的位置不对,谢谢!~Hi pamxy –
“the original equipment is open closed position right equipment statement”
Completely incomprehensible! But I am happy for you!
Happy Scanning 8)- AuthorPosts