Also, their lengths have to be kept in separate variables. For example, VarSetCapacity allocates more memory than actually used. The following trick almost works:
VarSetCapacity(bin, len, 33) StringLeft bin, bin, len ; write binary data to the memory of binUnfortunately, the length information, which is correct in the ListVars window is not accessible. StrLen(bin) shows the length only until the first NULL.
It would be nice to have this basic binary functionality. I don’t know if ClipBoardAll could contain a NULL, but if it could, assignment to a variable would truncate it.