Forum Post: Re: Working With Mqseries (4gl)

  • Thread starter Thread starter Garry Hall
  • Start date Start date
Status
Not open for further replies.
G

Garry Hall

Guest
The elements in the structure are sequential as per the definition, determined by offset and length of the prior element, and also by alignment rules. Each element has a known length, and based on that the offset of any element of the structure is known. The API knows that the ObjectName starts at offset X in the structure, and ObjectQMgrName starts at offset Y, according to the definition. it is up to the caller to create the data in the memptr in a way that matches this structure. There are probably decent references online that explain the way structures are stored in memory. I would point you to the Wikipedia entries on "C structures" and "C structure alignment", but there are probably better tutorials. Someone in the OE community might have written a tool to assist structures, but OE does not provide this functionality by default. As I mentioned previously, once you start calling DLLs, you have to do the heavy lifting yourself.

Continue reading...
 
Status
Not open for further replies.
Back
Top