search for: somefunca

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

Did you mean: somefunc
2007 Nov 13
1
win32-api idea - wide method first based on $KCODE
...de = rb_str_new3(v_proc); v_unicode = rb_str_cat(v_unicode, "W", 1); fProc = GetProcAddress(hLibrary, TEXT(RSTRING(v_unicode)->ptr)); ... So, for example, when you do this: Win32::API.new(''SomeFunc'',...) It looks for SomeFunc. If that fails it looks for SomeFuncA (which is what most of the functions actually default to). If that fails it looks for SomeFuncW. If that fails, then an error is raised. What about switching the order so that it looks for SomeFuncW -first- and SomeFuncA -second- if $KCODE = u? Does that seem reasonable? Regards, Dan This com...