Displaying 6 results from an estimated 6 matches for "multi_to_wide".
2007 Dec 05
21
Fwd: win32/process problem
Any ideas?
---------- Forwarded message ----------
From: Christian Kerth <christian.ke... at dynamicmedia.at>
Date: Dec 5, 8:28 am
Subject: win32/process problem
To: comp.lang.ruby
I have an application that consists of serveral independent parts.
I want to use the Windows Process API to spawn the different
processes.
e.g.
require ''rubygems''
require
2006 May 26
13
win32-dir, unicode
Hi,
I''ve got a preliminary version of the pure Ruby version of win32-dir in
CVS. However, I was hoping to work out the Unicode issue. Run this:
from = "C:\\test"
to = "?????"
Dir.mkdir(from) unless File.exists?(from)
Dir.create_junction(to, from)
It works, but my explorer (and dos) window shows the name garbled. I
don''t think it''s a font
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 result because of an embedding null? How do we deal
with it?
Thanks,
Dan
This communication is the property of Qwest and may contai...
2008 Jun 04
2
Win32-ole start
...132100,0,0,192,0,0,0,0,0,0,70].pack(''ISSCCCCCCCC'')
def initialize(server, host = Socket.gethostname)
@server = server
@host = host
clsid = 0.chr * 16
dispatch = 0.chr * 16 # I''m not sure what
hr = CLSIDFromProgID(multi_to_wide(server, CP_UTF8), clsid)
if FAILED(hr)
hr = CLSIDFromString(multi_to_wide(server, CP_UTF8), clsid)
if FAILED(hr)
raise Error, "unknown OLE server ''#{server}''"
end
end
# Fails here
hr...
2008 Jun 10
7
Unraveling a FAR*
...Vtbl->QueryInterface(
pUnknown,
&IID_IDispatch,
(void **)&pDispatch
);
Using win32-api, that would be something like:
IID_IUnknown = [0,0,0,192,0,0,0,0,0,0,70].pack(''ISSCCCCCCCC'')
clsid = 0.chr * 16
unknown = 0.chr * IID_IUnknown.size
hr = CLSIDFromProgID(multi_to_wide(server), clsid)
...
GetActiveObject(clsid, nil, unknown)
...
???
And here is where I''m stuck. How do I unravel a pointer to a struct and
then call a function on it? What is the equivalent of
pUnknown->lpVtbl->QueryInterface() ?
BTW, the prototype for GetActiveObject is:
HRESULT Ge...
2009 May 06
4
[ win32utils-Feature Requests-25792 ] Create a pure Ruby win32-ole library
Feature Requests item #25792, was opened at 2009-05-05 17:29
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=414&aid=25792&group_id=85
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Daniel Berger (djberg96)
Assigned to: Nobody (None)
Summary: Create a pure Ruby win32-ole library
Initial Comment:
The current Win32OLE