Encapsulated an ActiveX control design idea that controls scanning devices: TWAIN_SDK provides a VC's DEMO program that is written in SDK mode, where the main function is packaged into a CSCANERCTL class, including all major methods in Demo, NEGOTIATECAPABILITIES, XFERREADY, MEMXFERREADY, FILEXFERREADY This type of method declares that Virtual, providing external port (this should be more important) Generate an ActiveX program frame CTWAINCTRLCTRL inherit the CScaneRCTL class, and the encapsulated rear control can be used. Of course, similar to scanning this page does this class is definitely available.