<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>14 Oct 2015 08:12:00 Z</lastBuildDate><pubDate>14 Oct 2015 06:16:00 Z</pubDate><description>I have several questions about data type.&#13;
&#13;
1. Does windev have similar function to Sizeof() ?&#13;
&#13;
2. For unsigned long in C, what is the corresponding type? System int?&#13;
How about this unsigned long (4 byte) is in a struct? Assuming we convert struct to structure. Will it affect other variable in the structure?&#13;
&#13;
3.&#13;
typedef struct FTRPACK&#13;
{&#13;
Unsigned long dwSize; // Length of data in bytes.&#13;
void *pData; // Data pointer. Most likely, it will be a byte array which length is 2001.&#13;
} FTR_DATA, *FTR_DATA_PTR;&#13;
&#13;
int myContext;&#13;
int FTR_PURPOSE_ENROLL;&#13;
FTR_DATA Template;&#13;
&#13;
Now I want to use API() function to call the following function (in a dll file).&#13;
FTREnroll(myContext, FTR_PURPOSE_ENROLL, &amp;Template);&#13;
How do I define the Template variable? I tried to make *pData as a fixed byte array. But it is telling me invalid argument.&#13;
&#13;
Any suggestion?</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54470-how-convert-type-struct-windev-structure/read.awp</link><title>How to convert C type struct to Windev structure</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54470-how-convert-type-struct-windev-structure-54476/read.awp</comments><pubDate>14 Oct 2015 08:12:00 Z</pubDate><description>Hi Bruce,&#13;
&#13;
Look at tools, WDTool WDAPI, it has a section to convert C to WL.&#13;
&#13;
Regards,&#13;
Piet</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54470-how-convert-type-struct-windev-structure-54476/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54470-how-convert-type-struct-windev-structure-54476/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54470-how-convert-type-struct-windev-structure/read.awp">How to convert C type struct to Windev structure</source><title>Re: How to convert C type struct to Windev structure</title></item></channel></rss>
