Hi, Steen -
Since a PB String is simply a zero-terminated array of (Unicode) characters, any time you declare a string argument in an external function declaration PB will pass (the array) as a pointer... the memory address of the first character in the string. In a 32-bit process, this pointer will be 32-bit and in a 64-bit process, it will be a 64-bit memory address. You need not do anything other than declare the argument as a String.
If you include the REF keyword, the exact same thing happens, except that PB also allows the called external function to make changes to the PB string (character array).
Hope this helps.
Best regards, John
Actually I need to pass in a numeric value. So your feeback solved my question. I need to use the LonLong() function.
I was unaware of that function.
Thanks so much
//Steen
ps. Migrating to PB2022 in x64 is NOT a walk in the park. Have to refactor all external calls and all variables that hold pointers and handles.
However it is worth it! :-)
Please mark as answered / resolved.
regards