CrashOverRideZX Posted May 17, 2006 Share Posted May 17, 2006 I am using a COM object that requires that an Array of Longs is used to pass in IDs as well as retrieve errors and values So what I need to know if there is any way I can declare an Arry of Longs or Array of Specific datatype? Link to comment Share on other sites More sharing options...
CodeMaster Rapture Posted May 17, 2006 Share Posted May 17, 2006 I am using a COM object that requires that an Array of Longs is used to pass in IDs as well as retrieve errors and valuesSo what I need to know if there is any way I can declare an Arry of Longs or Array of Specific datatype?I don't think you need to declare them specifically because AutoIt will properly pass the datatype when you call the DLL. I believe it if set when you use DLLCall() or DLLOpen(). Not sure though. Read up on DLL Structures in the helpfiles.-CMR Link to comment Share on other sites More sharing options...
CrashOverRideZX Posted May 17, 2006 Author Share Posted May 17, 2006 I don't think you need to declare them specifically because AutoIt will properly pass the datatype when you call the DLL. I believe it if set when you use DLLCall() or DLLOpen(). Not sure though. Read up on DLL Structures in the helpfiles.-CMRI was hoping do the calls through COM not the DllCalls .... but it would seem that it would be my only option....So no other methods to Declare Datatypes? Cause when I just pass byref a Variant Array I get type MisMatch Link to comment Share on other sites More sharing options...
CrashOverRideZX Posted May 17, 2006 Author Share Posted May 17, 2006 I was hoping do the calls through COM not the DllCalls .... but it would seem that it would be my only option.... So no other methods to Declare Datatypes? Cause when I just pass byref a Variant Array I get type MisMatch Here is what I am trying to interface with [id(0x6002000a)] HRESULT SyncReadRaw( [in, out] VARIANT* StartTime, [in, out] VARIANT* EndTime, [in] long NumValues, [in] VARIANT_BOOL Bounds, [in] long NumItems, [in] SAFEARRAY(long)* ServerHandles, [out] SAFEARRAY(VARIANT)* ItemValues, [out] SAFEARRAY(long)* Errors); It's the safearrays where I seem to have problems. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now