benzrf Posted June 25, 2009 Share Posted June 25, 2009 I've been reading up (or trying to, I know painfully little of the stuff it involves) on the Windows Sockets API, but the documentation assumes that you're using C++. It says to create a "SOCKET object", which I assume is a type defined in WS2_32.dll. C++ is designed specifically for this kind of thing, so it's easy to do in it. But what of AutoIT? How do I find the COM address of a type defined in a DLL file? Would it be WS2_32.SOCKET? Someone please help! Link to comment Share on other sites More sharing options...
Authenticity Posted June 25, 2009 Share Posted June 25, 2009 (edited) What documentation are you referring to? By "SOCKET object" you may assume it means instantiating an object of a defined class and that is, whether it's a 4 double words class or 8 words class or something else it's just a linear memory block. If one function is expecting a POINT structure pointer you may send a pointer pointing to a class defined as: typedef struct tagPOINT { INT nX, nY; } POINT, *LPPOINT; //.... In AutoIt it's DllStructCreate() and DllStructGetPtr(). Correct me where I misunderstood. Edited June 25, 2009 by Authenticity Link to comment Share on other sites More sharing options...
benzrf Posted June 25, 2009 Author Share Posted June 25, 2009 PLEASE NOTE: The following is NOT meant to be offensive to you, merely self-derogatory. PARSE ERROR: line 2 col 8. Explanation too confusing. ???????????????????????? Link to comment Share on other sites More sharing options...
benzrf Posted June 25, 2009 Author Share Posted June 25, 2009 BUMP Link to comment Share on other sites More sharing options...
Richard Robertson Posted June 25, 2009 Share Posted June 25, 2009 In reality, "objects" in C++ are more like blocks of memory that hold pieces of data and have functions that can be called to operate on those pieces of data. To create one in AutoIt, you'll have to fully understand the C++ one and translate it. Link to comment Share on other sites More sharing options...
benzrf Posted June 27, 2009 Author Share Posted June 27, 2009 (edited) In reality, "objects" in C++ are more like blocks of memory that hold pieces of data and have functions that can be called to operate on those pieces of data.To create one in AutoIt, you'll have to fully understand the C++ one and translate it.Thanks, I guess (not to be rude!)... Oh, man. Isn't C++ the ultimately confusing programming language or something? Edited June 27, 2009 by benzrf Link to comment Share on other sites More sharing options...
Richard Robertson Posted June 28, 2009 Share Posted June 28, 2009 C++ is not for the faint of heart. It takes work, but it's worth it. Link to comment Share on other sites More sharing options...
benzrf Posted June 28, 2009 Author Share Posted June 28, 2009 C++ is not for the faint of heart. It takes work, but it's worth it.**Gulp** 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