I already tried it with this functions but then i get all the time a runtime error or buffer is too small.
Can you please help me? its urgent. if i would have time to read books then i wouldnt post it here and search for help .
when i did it like above:
pubtable.serialnr_A = interntable.serialnr_A;
i get at least the adress of the value (it seems like that).
i know that you should not treat it like that.
But i need a way how to to give the string to the struct and then i make my memcpy for the struct to transfer it to labview.
So i dont know how the c string should look like (length and byte-size) that i can transfer it to labview.
And how could i make it in Labview to get the value if i would get this adress from the pointer?
Or is it only solveable with C?
if you can post a code-example how i can implement it by me in C and Labview i would be grateful.
Update:
Actually i saw that the result should be "0204". This means in the memory 0x30, 0x32, 0x30, 0x34. So it is in my opinion 4 byte big.
Is it somehow possible without transferring the wchar to a char in C that i can make this visibile in Labview?? or what can i do?