I try to test it in my application on RTE 64 bit and i have some error on Precompile files
C0032: Cannot convert type 'POINTER TO BYTE' to type 'DWORD'
C0032: Cannot convert type 'POINTER TO BYTE' to type 'DWORD'
C0032: Cannot convert type 'DWORD' to type 'POINTER TO BYTE'
Any idea ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That may be because DWORD is 32 bits, and you are working on 64bits version, which suppose that pointers are 64 bits long.
Change for a 32 bit version or adapt the code to be 64 bits compatible.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
dFx hat geschrieben:
That may be because DWORD is 32 bits, and you are working on 64bits version, which suppose that pointers are 64 bits long.
Change for a 32 bit version or adapt the code to be 64 bits compatible.
hi,
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
this has nothing to do with the CODESYS development system,
I would recommend to use always the 64Bit Version for this.
His problem is, that he try to use the RTE plc as 64bit version, as result he get this errors.
probably these mysql libs need to be adapted to be platform indempendent (usable for 32bit and 64bit runtime systems)
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.
Replace 32 Bit Pointer Variables with 64 Bit (__XWORD or Alias XWORD)
BR
Edwin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I found a sample programm done for raspberry Pi to connect to mysql DB:
https://www.youtube.com/watch?v=CxTWELke8dU
from PASK PLC
I try to test it in my application on RTE 64 bit and i have some error on Precompile files
C0032: Cannot convert type 'POINTER TO BYTE' to type 'DWORD'
C0032: Cannot convert type 'POINTER TO BYTE' to type 'DWORD'
C0032: Cannot convert type 'DWORD' to type 'POINTER TO BYTE'
Any idea ?
That may be because DWORD is 32 bits, and you are working on 64bits version, which suppose that pointers are 64 bits long.
Change for a 32 bit version or adapt the code to be 64 bits compatible.
hi,
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
You changed the target arch going for RTE 64bits. Just stay in 32 bits then β¦ https://store.codesys.com/codesys.html?___store=en#All%20versions
Hi,
this has nothing to do with the CODESYS development system,
I would recommend to use always the 64Bit Version for this.
His problem is, that he try to use the RTE plc as 64bit version, as result he get this errors.
probably these mysql libs need to be adapted to be platform indempendent (usable for 32bit and 64bit runtime systems)
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.
Replace 32 Bit Pointer Variables with 64 Bit (__XWORD or Alias XWORD)
BR
Edwin