谢谢了,我对外调函数不精通
CFILENAME=ALLTRIM(THISFORM.IMAGE1.PICTURE)
Declare Integer GdipLoadImageFromFile In GDIPlus.Dll String wFilename, Integer @nImage
Declare Integer GdipGetImageWidth In GDIPlus Integer img,Integer @ imgwidth
Declare Integer GdipGetImageHeight In GDIPlus Integer img,Integer @ imgheight
Declare Integer GdipDisposeImage In GDIPlus.Dll Long nativeImage
Store 0 To nImage,nWidth,nHeight
GdipLoadImageFromFile(Strconv(CFILENAME+Chr(0),5),@nImage)
GdipGetImageWidth(nImage,@nWidth)
GdipGetImageHeight(nImage,@nHeight)
GdipDisposeImage(nImage)
DO FORM IMAGE_11.SCX WITH NWIDTH,NHEIGHT,CFILENAME
这是调用了什么呢,在运行时GdipLoadImageFromFile(Strconv(CFILENAME+Chr(0),5),@nImage)出错
提示声明.dll调用异常?怎么回事呢?