Jump to content

A3LGDIPLUS.AU3


anixon
 Share

Recommended Posts

I am using the Include A3LGDIPLUS.AU3 to write data to an image and then save it. Everything works fine in Windows XP SP2 but not in Vista. In Vista I am getting the following error message.

C:\Program Files\AutoIt3\Include\A3LGDIPlus.au3 (1788) : ==> "long_ptr", "int_ptr" and "short_ptr" DllCall() types have been deprecated. Use "long*", "int*" and "short*" instead.:

$aResult = DllCall($ghA3LGDIPDll, "int", "GdipLoadImageFromFile", "wstr", $sFileName, "int_ptr", 0)

Is this capable of being resolved?

Ant..

Link to comment
Share on other sites

Thanks for that

I changed A3LGDIPlus.au3 to

Func _GDIP_ImageLoadFromFile($sFileName)

Local $aResult

; $aResult = DllCall($ghA3LGDIPDll, "int", "GdipLoadImageFromFile", "wstr", $sFileName, "int_ptr", 0)

$aResult = DllCall($ghA3LGDIPDll, "int", "GdipLoadImageFromFile", "wstr", $sFileName, "int*", 0)

Return SetError($aResult[0], 0, $aResult[2])

EndFunc

And saved it but my script does not recognise the change and is still reporting the same message to change int_ptr to "int*"

>Running:(3.2.10.0):C:\Program Files\AutoIt3\autoit3.exe "C:\PLImage\Source Code\PimagesMod.au3"

C:\Program Files\AutoIt3\Include\A3LGDIPlus.au3 (1788) : ==> "long_ptr", "int_ptr" and "short_ptr" DllCall() types have been deprecated. Use "long*", "int*" and "short*" instead.:

$aResult = DllCall($ghA3LGDIPDll, "int", "GdipLoadImageFromFile", "wstr", $sFileName, "int_ptr", 0)

I simply cannot see what is probably pretty obvious

Ant..

Link to comment
Share on other sites

Gary is the expert here but I would suspect that

$aResult = DllCall($ghA3LGDIPDll, "int", "GdipLoadImageFromFile", "wstr", $sFileName, "int_ptr", 0)

Should be

$aResult = DllCall($ghA3LGDIPDll, "int", "GdipLoadImageFromFile", "wstr", $sFileName, "int", 0)

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

Thanks for that but for some reason my script is not loading a3lgdiplus.au3 which I have made the changes to. Its still reporting the same error.

Ant..

Then I would say that you have #included the wrong file. AFAIK a3lgdiplus.au3 is no longer used. I beleive the proper file is GDIPlus.au3

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...