Hello,
I'm trying to call a function from an external dll. However, I'm getting an Access violation error message. I'm using the Import libraries option in the project configuration dialogue box in Plato. The project compiles ok, but doesn't run. I'm doing something wrong but I don't know what!
Thanks
Albert
This is my code:
winapp
program test_metagif
C_EXTERNAL MetaGif 'MetaGif' ( val,val,val,val)
Integer,parameter :: w = 100, h = 100
call MetaGif('Temp\\gif001.wmf', 'Temp\\gif001.gif', w, h)
endprogram
This is the information I have about the function in the dll:
MetaGif
Declare Function MetaGif Lib 'METAGIF32.DLL' (ByVal inputFile As String, ByVal outputFile As String, ByVal scaleX As Long, ByVal scaleY As Long) As Long
Parameters
* inputFile - input file name (wmf/emf/bmp)
* outputFile - output file name (gif)
* scaleX - scale factor percentage (100 = width*1)
* scaleY - scale factor percentage (150 = height*1.5)