subtlelonging Posted March 20, 2022 Posted March 20, 2022 Hi, How to create this struct? Local $tagLpSYSText = DllStructCreate("int textCount;int sign;int textlen;char ptext;int x[4]; int y[4]") struct _SYSTextPoint { int x; int y; _SYSTextPoint():x(0), y(0) { } }; struct _SYSText { int textLen; char* ptext; _SYSTextPoint coordinate[4]; _SYSText() { textLen = 0; ptext = nullptr; } }; typedef struct _SYSRsText { int textCount; int sign; _SYSText* pSYSText; }SYSText, * LpSYSText;
Andreik Posted March 21, 2022 Posted March 21, 2022 Something like this $SYSTextPoint = DllStructCreate('int x; int y') $SYSText = DllStructCreate('int textLen; ptr ptext; int coordinate[8]') $SYSRsText = DllStructCreate('int textCount; int sign; ptr pSYSText')
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