Hi all,
I need a DLL like this:
http://www.indigorose.com/forums/thr...CODE-Intrigued
Please give me this.
Thanks.
I need a DLL like this:
http://www.indigorose.com/forums/thr...CODE-Intrigued
Please give me this.
Thanks.
String.AnsiToUnicode = function(s) local res = nil; local len = s:len(); local new = (len * 2) + 2; local buf = MemoryEx.AllocateEx(new); if(buf)then buf:String(len, MEMEX_UNICODE, s); res = buf:LString(new); buf:Free(); end return res; end;
Debug.ShowWindow(); local test = String.AnsiToUnicode("Hello World!!"); for i = 1, test:len() do local charCode = test:byte(i); Debug.Print(charCode.."\r\n"); end
String.AnsiToUnicode = function(s) local res = nil; local len = s:len(); local new = (len * 2) + 2; local buf = MemoryEx.AllocateEx(new); if(buf)then buf:String(len, MEMEX_UNICODE, s); res = buf:LString(new); buf:Free(); end return res; end;
Debug.ShowWindow(); local test = String.AnsiToUnicode("Hello World!!"); for i = 1, test:len() do local charCode = test:byte(i); Debug.Print(charCode.."\r\n"); end
Comment