Jump to content

Recommended Posts

Posted

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;

 

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
×
×
  • Create New...