cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

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