Which plug-in methods should have a call to AFX_MANAGE_STATE MFC state macro

Which plug-in methods should have a call to AFX_MANAGE_STATE MFC state macro

This call ensures that the MFC state is correct.  In order to guaruntee interoperabilty between plug-in versions and ranger versions AFX_MANAGE_STATE(AfxGetStaticModuleState()) should be called as the first call in any method called by Ranger.

This includes the following methods:
  1. InitializePlugin()
  2. GetPluginDescription()
  3. AreDevicesAttached()
  4. InitializeDevices()
  5. GetDeviceConfiguration()
  6. PrepareToChangeOptions()
  7. EnableOption()
  8. StartFeeding()
  9. ProcessItem()
  10. StopFeeding()
  11. ShutdownPlugin()

Ranger® - The universal check scanner interface
Copyright © 2023 Silver Bullet Technology
www.sbullet.com

    • Related Articles

    • Should DevicesInitialized() be called after every InitializeDevices() call?

      In the InitializeDevices() function of the sample plug-in, whether a device is found or not, it calls the Ranger function DevicesInitialized(). So presumably calling this function doesn't mean the device has actually been initialized but only that ...
    • Should Ranger call my GetUniqueOptionsSupported() function?

      No, Ranger does not call GetUniqueOptionsSupported(). However, applications such as RangerFlex may call this function to determine which unique options are available. Ranger® - The universal check scanner interface Copyright © 2023 Silver Bullet ...
    • Where are scanner plug-in files located?

      The default program file location for a Ranger scanner plug-in is: C:\Program Files\Silver Bullet Technology\Ranger\Scanner Plug-ins\[plug-in name]\ Windows Vista: C:\ProgramData\Silver Bullet Technology\Ranger\Scanner Plug-ins\[plug-in name]\ ...
    • How will my plug-in be installed?

      You'll create an installation script based on the sample installation script in the plug-in SDK. Your plug-in installer will install and uninstall all of the device drivers, DLL and support files needed to run your plug-in. During the plug-in ...
    • What is the plug-in certification process?

      Since our certification process is evolving, we will not charge you for the first certification. There are the high-level certification steps: Send us a scanner to test with. Email us your plug-in some source code and TransportInfo.ini and ...