Glossary Item Box
This function indicates whether or not the plug-in host is available for use. The plug-in host is available if ImageMan's main DLL successfully located and was able to load the host module.
Return Value
Returns TRUE if the host is loaded or FALSE if it is not.
Example
int iErr = IMG_OK ;
if ( ! ImgPlugInHostIsEnabled() ) {
if ( ImgPlugInHostIsAvailable() ) {
iErr = ImgPlugInHostLoad( c:\myplugindir ) ;
if ( iErr != IMG_OK )
ImgErrBox() ;
// tell us what happened!
} else {
// you are ready to go
}
}
if ( iErr == IMG_OK ) {
iErr = ImgPlugInLoadSpecific( somecool.8bf ) ;
if ( iErr == IMG_OK )
ImgPlugInInvoke( hImage, hWnd, rect ) ;
}
Copyright 2008 Data Techniques, Inc. All Rights Reserved