TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

C#APP and C++DS

Forums › TWAIN Classic › C#APP and C++DS

  • This topic has 6 replies, 2 voices, and was last updated 7 years, 11 months ago by spike.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • March 19, 2013 at 3:54 pm #22834 Reply
    pamxy520
    Participant
    • Topics - 7
    • Replies - 11
    • Total Posts - 18

    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 — —

    March 20, 2013 at 1:51 am #25846 Reply
    spike
    Participant
    • Topics - 10
    • Replies - 139
    • Total Posts - 149

    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 _/_

    March 20, 2013 at 9:52 am #25847 Reply
    pamxy520
    Participant
    • Topics - 7
    • Replies - 11
    • Total Posts - 18

    @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! ~

    March 20, 2013 at 1:33 pm #25848 Reply
    spike
    Participant
    • Topics - 10
    • Replies - 139
    • Total Posts - 149

    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?

    March 22, 2013 at 3:33 am #25849 Reply
    pamxy520
    Participant
    • Topics - 7
    • Replies - 11
    • Total Posts - 18

    @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++写的

    March 23, 2013 at 2:41 am #25850 Reply
    pamxy520
    Participant
    • Topics - 7
    • Replies - 11
    • Total Posts - 18

    My problem is solved, the original equipment is open closed position right equipment statement, thank you! ~



    我的问题解决了,原来是打开设备关闭设备语句放的位置不对,谢谢!~

    March 25, 2013 at 1:34 pm #25851 Reply
    spike
    Participant
    • Topics - 10
    • Replies - 139
    • Total Posts - 149

    Hi pamxy –

    “the original equipment is open closed position right equipment statement”

    Completely incomprehensible! But I am happy for you!
    Happy Scanning 8)

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: C#APP and C++DS
Your information:




Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • could not open the twain source. Make sure there is a valid source for your sca
  • Changing TWAIN driver defaults
  • Scanner starts transfer when console gets closed (CITRIX)
  • Kodak RFS 3600
  • Didn’t save enough file scan
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.