Jump to content

Recommended Posts

Posted

Hello all,

I'm trying to use the x64 version of the OpenCV UDF (

)

And, without surprise, it does not work if I just replace the X86 dll by the X64 I downloaded 🙂

I think I, at least, have to adapt in/out variables types but it seems to not be enought (still problem calling DLL)

Can anyone give me some clue or checklist for a correct conversion from x86 to x64 ?

Thx guys,

Eva

Posted

When x86 to x64 converted dll calls fail it normally is related to wrong data types being used. Take a look at DllStructCreate, there are some type which change "depending on if the x86 or x64 version of AutoIt is used", and often these are not used correctly. E.g. INT in x86 is 32bit and INT_PTR is 32 bit too. But if you change to x64 INT_PTR is 64 bit and must not be used for INT datatypes and vice versa. Check the documentation of OpenCV for the datatypes to use and valid the definition against the datatypes used in the UDF.

Posted
  On 3/25/2023 at 9:53 PM, skijve said:

And, without surprise, it does not work if I just replace the X86 dll by the X64 I downloaded

Expand  

You also need to specify that you want to use x64 of AutoIt

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

It comes from the following line that make crash the code : 

 

Local $_aResult = DllCall($_opencv_core, "int64:cdecl", "cvGetSize", "ptr", $pimage)

But no idea why 🙂

Posted

X64 doesn't use the cdecl calling convention.

  Reveal hidden contents

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Posted

Hello,

Didn't know that.  Thx for the hint.

I also found an interresting tutorial

Working on that 🙂

Thx again for the help guys

Posted

Some work has already been done regarding newer versions of OpenCV code as well as 64 bit code. It seems to start in this post and continue through  out the rest of the thread.

By quickly skimming through the posts, it doesn't appear to be completely trivial, but also not completely unmanageable. May be it was an idea to start a new project under Projects and Collaboration to gather interested forces. After all, it's about the core areas of application of AutoIt, and therefore not uninteresting.

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
  • Recently Browsing   0 members

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