search for: hex_name_array

Displaying 1 result from an estimated 1 matches for "hex_name_array".

2006 Feb 02
5
Fwd: win32-clipboard and Unicode zero bytes
...ried changing the strlen to _tcslen and strcpy to _tcscpy, but that didn''t help. I mucked around a bit with the MultiByteToWideChar function, too, but didn''t have any luck. Any ideas? Thanks, Dan # test.rb $:.unshift Dir.pwd require ''clipboard'' def unicopy(hex_name_array) Win32::Clipboard.set_data(win32unicode(hex_name_array), Win32::Clipboard::UNICODETEXT) true end def extract_flipped_bytes(unicode_char_string) [unicode_char_string[2,2].to_i(16), unicode_char_string[0,2].to_i(16)] end def win32unicode(unicode_char_strings)...