Jump to content
Sign in to follow this  
Phstiger

How to create a struct data

Recommended Posts

Phstiger

In Autoit, Can I define a struct data type as Student ?

Share this post


Link to post
Share on other sites
Richard Robertson

Structures have limited use in AutoIt. They are basically used for marshaling data to native dlls.

You can use them in code, but I don't know efficient they are under current implementation (seeing as I'm not a developer).

You'd be better off using an array to represent your structure and just use index 0 as name, 1 as address, etc.

Share this post


Link to post
Share on other sites
Phstiger

I can't understand about using DLL in Autoit. Function "DllStructCreate" in Autoit have to use datatype basic as "int;ubyte;uint". But I don't see them in "DataType" of Autoit in the part "Language Reference-->Datatypes". I want to know all datatypes in Autoit and datatype basic as int,float installed in hardware (in CPU) or in software.

I know from "Autoit Help" datatype Int

Int(0/0) returns -9.22337203685478e+018, if you were wondering.

So I think it can't installed in CPU. It installed in memory and I installed under functions.

I need to help

Share this post


Link to post
Share on other sites
Phstiger

I can't understand about using DLL in Autoit. Function "DllStructCreate" in Autoit have to use datatype basic as "int;ubyte;uint". But I don't see them in "DataType" of Autoit in the part "Language Reference-->Datatypes". I want to know all datatypes in Autoit and datatype basic as int,float installed in hardware (in CPU) or in software.

I know from "Autoit Help" datatype Int

Int(0/0) returns -9.22337203685478e+018, if you were wondering.

So I think it can't installed in CPU. It installed in memory and I installed under functions.

I need to help

Share this post


Link to post
Share on other sites
Richard Robertson

Dll[...] functions are only for marshaling calls to dlls. You don't use structs in AutoIt. Everything is a variant unless it is strongly typed into a dll struct.

Just learn how to use arrays to do what you need.

Share this post


Link to post
Share on other sites
FreeFry
:party::) :) ^_^:lmao:

Share this post


Link to post
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
Sign in to follow this  

×