mmikeww / image2include

update of just-me's image2include to be backwards compatible with AHK Basic
https://www.autohotkey.com/boards/viewtopic.php?t=69818
1 stars 2 forks source link

Compatible with AHK 2.0 #3

Open qdt-91 opened 1 year ago

qdt-91 commented 1 year ago

I am writing a program in AHK and using image2include library. I have a problem that the library is not compatible with AHK 2.0 I need help upgrading this library.

Thank!

mmikeww commented 1 year ago

Not sure if I will update this, depends how much work it is. What's the problem? What error do you get?

On Sat, Jan 7, 2023, 3:57 AM daotuanquang91 @.***> wrote:

I am writing a program in AHK and using image2include library. I have a problem that the library is not compatible with AHK 2.0 I need help upgrading this library.

Thank!

— Reply to this email directly, view it on GitHub https://github.com/mmikeww/image2include/issues/3, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOQBDBFVHEWEFTOTUNN6U3WREVWVANCNFSM6AAAAAATT2HWPM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

qdt-91 commented 1 year ago

There are some incompatibilities with v2:

Error: This variable has not been assigned a value. Specifically: local VarSetCapacity ▶ 010: VarSetCapacity(B64, 8660 << !!A_IsUnicode)

Error: This variable has not been assigned a value. Specifically: local DecLen ▶ 012: If !DllCall("Crypt32.dll\CryptStringToBinary", "Ptr", &B64, "UInt", 0, "UInt", 0x01, "Ptr", 0, "UIntP", DecLen, "Ptr", 0, "Ptr", 0)

Error: This variable has not been assigned a value. Specifically: local hData ▶ 020: pData := DllCall("Kernel32.dll\GlobalLock", "Ptr", hData, "UPtr")