<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to codesys mysql connection for free</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/01f2196599/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/01f2196599/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/01f2196599/</id><updated>2020-02-27T14:09:15.286000Z</updated><subtitle>Recent posts to codesys mysql connection for free</subtitle><entry><title>codesys mysql connection for free</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/01f2196599/?limit=25#60bd" rel="alternate"/><published>2020-02-27T14:09:15.286000Z</published><updated>2020-02-27T14:09:15.286000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com79a626b811194d5084c4c9ced8de921f3eb95a88</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
this has nothing to do with the CODESYS development system,&lt;br/&gt;
I would recommend to use always the 64Bit Version for this.&lt;/p&gt;
&lt;p&gt;His problem is, that he try to use the RTE plc as 64bit version, as result he get this errors.&lt;br/&gt;
probably  these mysql libs need to be adapted to be platform indempendent (usable for 32bit and 64bit runtime systems)&lt;/p&gt;
&lt;p&gt;Use interface lib CmpError2 and SysTypes2 instead of CmpError and SysTypes, but namespaces are the same: RTS_INVALID_HANDLE is now in SysTypes and no longer in CmpErrors! There may be more interface libs that need to be raised.&lt;br/&gt;
Replace 32 Bit Pointer Variables with 64 Bit (__XWORD or Alias XWORD) &lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>codesys mysql connection for free</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/01f2196599/?limit=25#49fd" rel="alternate"/><published>2020-02-27T14:09:14.969000Z</published><updated>2020-02-27T14:09:14.969000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/</uri></author><id>https://forge.codesys.comb78356107f7b3ed93febb0d5cd852c30a04ba764</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You changed the target arch going for RTE 64bits. Just stay in 32 bits then … &lt;a class="" href="https://store.codesys.com/codesys.html?___store=en#All%20versions" rel="nofollow"&gt;https://store.codesys.com/codesys.html?___store=en#All%20versions&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>codesys mysql connection for free</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/01f2196599/?limit=25#e731" rel="alternate"/><published>2020-02-27T14:09:14.007000Z</published><updated>2020-02-27T14:09:14.007000Z</updated><author><name>mos89@yahoo.com</name><uri>https://forge.codesys.com/u/mos89-yahoo-com/</uri></author><id>https://forge.codesys.com73434992ba2b726f11c327983494fa417a820fb6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;dFx hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
That may be because DWORD is 32 bits, and you are working on 64bits version, which suppose that pointers are 64 bits long.&lt;br/&gt;
Change for a 32 bit version or adapt the code to be 64 bits compatible.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;As i see each time there is an update code is not any more portable, i understand that 32 to 64 bit is a big change but the goal of codesys is to keep the code independant of hardware, or do i miss something&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>codesys mysql connection for free</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/01f2196599/?limit=25#ffdd" rel="alternate"/><published>2020-02-27T14:09:13.684000Z</published><updated>2020-02-27T14:09:13.684000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/</uri></author><id>https://forge.codesys.com8d9d89d47cdae288569064fb3839eb10675eef97</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;That may be because DWORD is 32 bits, and you are working on 64bits version, which suppose that pointers are 64 bits long.&lt;br/&gt;
Change for a 32 bit version or adapt the code to be 64 bits compatible.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>codesys mysql connection for free</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/01f2196599/?limit=25#b507" rel="alternate"/><published>2020-02-27T14:09:13.360000Z</published><updated>2020-02-27T14:09:13.360000Z</updated><author><name>mos89@yahoo.com</name><uri>https://forge.codesys.com/u/mos89-yahoo-com/</uri></author><id>https://forge.codesys.comf92109da8a6ec260326872db3da08090a6744713</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi &lt;br/&gt;
I found a sample programm done for raspberry Pi to connect to mysql DB:&lt;br/&gt;
&lt;a class="" href="https://www.youtube.com/watch?v=CxTWELke8dU" rel="nofollow"&gt;https://www.youtube.com/watch?v=CxTWELke8dU&lt;/a&gt;&lt;br/&gt;
from PASK PLC&lt;/p&gt;
&lt;p&gt;I try to test it in my application on RTE 64 bit and i have some error on Precompile files&lt;br/&gt;
C0032:  Cannot convert type 'POINTER TO BYTE' to type 'DWORD'&lt;br/&gt;
C0032:  Cannot convert type 'POINTER TO BYTE' to type 'DWORD'&lt;br/&gt;
C0032:  Cannot convert type 'DWORD' to type 'POINTER TO BYTE'&lt;/p&gt;
&lt;p&gt;Any idea ?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>