Hi Charles,
What do you mean with (A 10 jan) ?
Do you mean A.dll 10 january ?
The last dll has a bug, if I create a dll.
I use the dll 25.12.2o12 and there is no problem!
The SaveByte function works okay, there is nothing wrong on it.
include "minwin.inc"
Function SaveByte(string File,byref dest as any,sys count) as sys Export
sys handle,wc
handle=CreateFile File,GENERIC_WRITE,FILE_SHARE_WRITE,BYVAL 0,OPEN_ALWAYS,0,0
WriteFile handle,dest,count,&wc, Byval 0
CloseHandle handle
Return wc
End Function
string n="s.txt"
string a="one-two-three"
savebyte n,a,len a
print "okay"
savebyte "alien.txt","banana",len("banana")
print "banana"
X