Jamal Mazrui Posted February 1, 2006 Posted February 1, 2006 I appreciate the many data types that can be used as parameters in DLL calls. I do not find mention of the Variant or BSTR data type. Using another development tool, I want to create a DLL that exports functions with these data types as parameters. I think AutoIt uses these types internally, but I do not know how to use them as DLL parameters. Suggestions?
w0uter Posted February 1, 2006 Posted February 1, 2006 you could always make a struct with DllStruct. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
Jamal Mazrui Posted February 11, 2006 Author Posted February 11, 2006 If anyone can provide sample code for passing and retrieving BSTR or variant data types with a DLL call, I would appreciate it. DLLs written for Visual Basic often use such data types, even for functions not related to COM automation or ActiveX controls. I would like to have such possibilities in AutoIt programming, but do not yet have the knowledge to implement the type conversions myself.
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