Displaying 1 result from an estimated 1 matches for "v_ascii".
Did you mean:
m_ascii
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", 1);
fProc = GetProcAddress(hLibra...