cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
DMeakin1
Level I

Calling Windows API ImageViewer.dll to display JPG files.

I am working with a very large database of image files and want to be able to display the file for the user for visual inspection from a script.

I have been able to get the following code to load the DLL but get an error requesting a signature argument.

Does anyone know how to get a signature string from the system to pass to the DLL.

 

ERROR MESSAGE FORM LOG: Second argument to CallDLL must be a signature string. in access or evaluation of 'call DLL' , call DLL( "ImageView_Fullscreen", PATH_TO_IMAGE )

 

 

/*
Global Declorations
*/
Clear Log();
Clear Globals();
Names Default To Here( 1 );
/*
Variable Declarations
*/
TRUE = 1;
FALSE = 0;
RootDIR = "C:\";


// rundll32 "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen path_to_image
// dll << CallDLL( "MessageBeep", "n", 0 );


/*
Program Initialization
*/
Set Default Directory( RootDIR );

DLL_PATH = "C:\Program Files\Windows Photo Viewer\PhotoViewer.dll";
IMAGE_PATH =
"C:\Users\dmeakin\OneDrive - Sunpower Corporation\!Projects\RDP - Fern Crack Impact on Performance\IMAGE TEACHING SET 1";
IMAGE_NAME = "TEST_IMAGE_1.JPG";
PATH_TO_IMAGE = IMAGE_PATH || "\" || IMAGE_NAME;
Show( PATH_TO_IMAGE );

DLL_HANDLE = Load DLL( DLL_PATH );
DLL_HANDLE << call DLL( "ImageView_Fullscreen", PATH_TO_IMAGE );

 

 

0 REPLIES 0

Recommended Articles