<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.fr.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>16 Apr 2020 20:25:31 Z</lastBuildDate><pubDate>16 Apr 2020 18:19:56 Z</pubDate><description>J'ai un petit algorythme en langage C qui effectue un calcule de CRC &#13;
quelqu'un pourrait il m'aider à le traduire en langage windev?&#13;
Merci bcp&#13;
&#13;
#define TCP_CRC_8_SEED 0x55&#13;
#define TCP_CRC_8_POLY 0xD5&#13;
&#13;
unsigned char cal_crc_8_tcp(unsigned char l, unsigned char* p, unsigned char seed, unsigned char poly)&#13;
{&#13;
    int i = 0;&#13;
    unsigned char crc = seed;&#13;
    do&#13;
        crc = crc ^ p[i++];&#13;
    while(i&lt;l);&#13;
&#13;
    return crc;&#13;
}&#13;
&#13;
//txBufferLength = Your packet data lenght&#13;
//txData = Your packet data&#13;
&#13;
unsigned char crc = cal_crc_8_tcp(txBufferLength, txData, TCP_CRC_8_SEED, TCP_CRC_8_POLY);&#13;
&#13;
unsigned char crcL = "0123456789ABCDEF"[(unsigned char)(crc &amp; 0x0F)];&#13;
unsigned char crcH = "0123456789ABCDEF"[(unsigned char)((crc &gt;&gt; 4) &amp; 0x0F)];</description><ttl>30</ttl><generator>WEBDEV</generator><language>fr_FR</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/238769-vers-windev/read.awp</link><title>C vers Windev</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>Philippe Pasquali</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/238769-vers-windev-238773/read.awp</comments><pubDate>16 Apr 2020 20:25:31 Z</pubDate><description>Bonjour&#13;
Sauf erreur de ma part cela devrais ce traduire par (j'ai simplifié un max et il faut tester que taille(p) &gt;0)&#13;
[code:w…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/238769-vers-windev-238773/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/238769-vers-windev-238773/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/238769-vers-windev/read.awp">C vers Windev</source><title>Re: C vers Windev</title></item></channel></rss>
