<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Calling Windows API ImageViewer.dll to display JPG files. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Calling-Windows-API-ImageViewer-dll-to-display-JPG-files/m-p/241779#M47763</link>
    <description>&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;I have been able to get the following code to load the DLL but get an error requesting a signature argument.&lt;/P&gt;
&lt;P&gt;Does anyone know how to get a signature string from the system to pass to the DLL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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 )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;/*
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 &amp;lt;&amp;lt; 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 &amp;lt;&amp;lt; call DLL( "ImageView_Fullscreen", PATH_TO_IMAGE );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jan 2020 19:16:11 GMT</pubDate>
    <dc:creator>DMeakin1</dc:creator>
    <dc:date>2020-01-17T19:16:11Z</dc:date>
    <item>
      <title>Calling Windows API ImageViewer.dll to display JPG files.</title>
      <link>https://community.jmp.com/t5/Discussions/Calling-Windows-API-ImageViewer-dll-to-display-JPG-files/m-p/241779#M47763</link>
      <description>&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;I have been able to get the following code to load the DLL but get an error requesting a signature argument.&lt;/P&gt;
&lt;P&gt;Does anyone know how to get a signature string from the system to pass to the DLL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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 )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;/*
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 &amp;lt;&amp;lt; 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 &amp;lt;&amp;lt; call DLL( "ImageView_Fullscreen", PATH_TO_IMAGE );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 19:16:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calling-Windows-API-ImageViewer-dll-to-display-JPG-files/m-p/241779#M47763</guid>
      <dc:creator>DMeakin1</dc:creator>
      <dc:date>2020-01-17T19:16:11Z</dc:date>
    </item>
  </channel>
</rss>

