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

Re: Re: C++ Problem in Macintosh

Forums › TWAIN Mac/OSX › C++ Problem in Macintosh › Re: Re: C++ Problem in Macintosh

July 30, 2008 at 4:09 pm #24578
dpenney
Participant
  • Topics - 3
  • Replies - 66
  • Total Posts - 69

@amila123 wrote:

I have succesfully implemeted the twain in windows.now i have to do the same thing in mac side,when i am going to compile the same C++ source in mac side it gives errors,actually im using winnt.h winuser.h header files,so what can i use for these in mac..

You can’t just recompile your code for Mac. To support both OS’s, you’ll need to be very familiar with the TWAIN specification and both OS’s. All of the Windows operating system calls in your code need to be replaced/reworked to use Mac OS calls including all of your GUI implementation.

For example, Capability memory allocation on Mac uses NewHandle() while on Windows GlobalAlloc() is used. You’ll need to find these differences in your code and make the appropriate changes.

You might be able to share some code if you’re careful to isolate the OS calls but it may not be worth the extra effort.

I have implemented DS’s on both OS’s so I speak from experience.

–

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

  • TWAIN for dental imaging integration
  • PDF/R For who and where?
  • Making searchable PDF with PDF/R
  • Backward compatibility with PDF/A and traditional PDF
  • could not open the twain source. Make sure there is a valid source for your sca
  • 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