Displaying 2 results from an estimated 2 matches for "v_proc".
Did you mean:
__proc
2007 Nov 13
1
win32-api idea - wide method first based on $KCODE
All,
Currently, the Win32::API.new method will search for the function name,
then the ''A'' (ANSI) name, and finally the ''W'' (Wide) name. The code
looks something like this:
fProc = GetProcAddress(hLibrary, TEXT(RSTRING(v_proc)->ptr));
if(!fProc){
VALUE v_ascii = rb_str_new3(v_proc);
v_ascii = rb_str_cat(v_ascii, "A", 1);
fProc = GetProcAddress(hLibrary, TEXT(RSTRING(v_ascii)->ptr));
if(!fProc){
VALUE v_unicode = rb_str_new3(v_proc);
v_unicode = rb_str_cat(v_unicode, "W"...
2008 Nov 10
4
PathFindExtension and wide strings
Hi,
What''s happening here?
require ''windows/path''
require ''windows/unicode''
include Windows::Path
include Windows::Unicode
file_a = ''bar.txt''
file_w = multi_to_wide(file_a)
p PathFindExtensionA(file_a) # ''.txt'' => OK
p PathFindExtensionW(file_w) # ''.'' => WRONG
Is Ruby chopping the