Displaying 1 result from an estimated 1 matches for "v_unicod".
Did you mean:
v_unicode
2007 Nov 13
1
win32-api idea - wide method first based on $KCODE
...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", 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 S...