Displaying 20 results from an estimated 2000 matches similar to: "Win32OLE ?"
2005 Mar 01
5
Open3.popen3 bug
Running this program:
require ''win32/open3''
i, o, e, pid = Open3.popen3("c:/ruby/bin/ruby.exe -e\"sleep 10\"")
i.close
Gives this result:
C:\_co\source\build\web\temp>ruby t.rb
t.rb:5: [BUG] Segmentation fault
ruby 1.8.2 (2004-06-29) [i386-mswin32]
This application has requested the Runtime to terminate it in an unusual way.
Please
2008 May 26
1
Interest in win32-installer
I was wondering if people would be interested in wrapping msi.dll
functionality,
I''ve started writing a small library to enable enumeration of products
installed via Windows Installer using win32api (I know I can also
query via win32ole to win32_product but I don''t seem to get all the
properties that are in msi.h).
It''s a little messy, and I''ve not got far as
2007 Apr 11
5
WIN32OLE MS Word Help
Hi all,
I am trying to create word document in ruby using WIN32OLE.
as..
require ''win32ole''
word = WIN32OLE.new("Word.Application")
word.visible = true
word.documents.add
selection = word.selection
word.Selection.TypeText "This is some text."
...
..
.
Can we set header and footer to document? I want to generate a
document such that its header contains an
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
2007 Nov 21
1
win32ole event handling
I''m evaluating FXRuby for my application. So far everything is going pretty
well. The news on the book is good, but I wish it were available today!
First off, I''m not much of a Windows programmer (that''s what makes FXRuby so
valuable to me). I''m using win32ole to interface to a custom ocx. Calling
methods of the ocx works fine. Now I need to receive event
2005 Feb 07
7
win32-driveinfo in CVS
Hi all,
I committed win32-driveinfo 0.1.0 to CVS.
What is it?
===========
A class for getting information of drives
Synopsis
========
include Win32::DriveInfo
(sectorsPerCluster,
bytesPerSector,
numberOfFreeClusters,
totalNumberOfClusters,
freeBytesAvailableToCaller,
totalNumberOfBytes,
totalNumberOfFreeBytes) = getDriveSpace(''c'').to_a
2004 May 16
1
com/dcom
Hi all,
I was just reading my "Python Programming on Win32" and I saw how easy it
was to setup a COM server and a class. I tried to download Ralph Mason''s
rubycom package, but the link is dead.
I''ve emailed Ralph, but if rubycom isn''t being maintained any more, I think
we should work on a COM/DCOM interface next.
Or, is this already possible with
2008 Jun 10
7
Unraveling a FAR*
Hi all,
Just looking over fole_s_connect() in win32ole.c and I noticed this bit:
hr = CLSIDFromProgID(pBuf, &clsid);
...
hr = GetActiveObject(&clsid, 0, &pUnknown);
...
hr = pUnknown->lpVtbl->QueryInterface(
pUnknown,
&IID_IDispatch,
(void **)&pDispatch
);
Using win32-api, that would be something like:
IID_IUnknown =
2005 Nov 10
3
[ win32utils-Feature Requests-2811 ] Add UNC support to file / dir
Feature Requests item #2811, was opened at 2005-11-10 15:17
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=414&aid=2811&group_id=85
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: graham foster (fosterg2)
Assigned to: Nobody (None)
Summary: Add UNC support to file / dir
Initial Comment:
I''d like to see win32
2008 May 28
0
WIN32OLE rewrite?
Hi everyone,
So, who wants to rewrite the WIN32OLE library? I think I''ve got most
everything you''ll need in the windows-pr library, such as
Windows::COM::Automation, Windows::Error, etc. I can add anything that''s
missing.
Advantages include:
* No compiler required
* Easier to debug
* A potentially better and more flexible interface
* The current WIN32OLE library is
2005 Feb 14
8
DONT_RESOLVE_DLL_REFERENCES info
For future reference, it looks like we should avoid
DONT_RESOLVE_DLL_REFERENCES in any extensions.
http://weblogs.asp.net/oldnewthing/archive/2005/02/14/372266.aspx
Regards,
Dan
2005 Feb 07
4
network drives
Another nicety may be handling network drives. I''ve been using a ruby
script which manipulate using the "net use" command to map network
drives, disconnect network drives, query to see what drives are
connected, etc..., but it''d be sweet if this type of functionality was
included in win32 package.
Maybe usage like:
nd = Win32::NetworkDrive.new(
2005 May 18
2
Networking functionality?
Is there (if not, can we get) the functionality to query for
workstations in the local workgroup or domain?
Zach
2005 Sep 12
0
WIN32OLE file context during unit test
Hello all,
I''m having trouble with the WIN32 file opening. I don''t'' know how to
tell if this is a WIN32OLE issue or an issue with the application (Adobe
Illustrator CS2)
Review the included files below, which exist within a rails application.
When IllustratorMinimalTest is run, #testFullPath succeeds,
#testFileName fails.
Thanks in advance for any advice on how to
2012 Mar 31
3
clear console
hi,
I use R - 2.15(32bit), and want to make a code to clear a console.
Actually, I used to run following code to do that but after update the
version of R from 2.14 to 2.15, it doesn't work.
cls <- function (t) {
require(RDCOMClient)
wsh <- COMCreate("Wscript.Shell")
wsh$SendKeys("\f")
invisible(wsh)
}
cls()
or
cls <-
2006 Oct 26
5
[ win32utils-Patches-6335 ] pure ruby implementation
Patches item #6335, was opened at 2006-10-26 16:51
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=413&aid=6335&group_id=85
Category: win32-shortcut
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Jano Svitok (janek)
Assigned to: Nobody (None)
Summary: pure ruby implementation
Initial Comment:
This is (not finished) pure-ruby
2006 May 06
3
[BUMP] conditional require? conditional action code?
Greetings all.
I have some controller code that uses win32ole (only available on
windows). This code is now solid, and I''d now like to resume
development on (any) other OS(grin).
But alas, the controller bails because the OS specific library can''t
be found.
Can I conditionally specify action code compilation (and a require
''win32ole'') based on OS or
2006 May 04
1
conditional require? conditional action code?
Greetings all.
I have some controller code that uses win32ole (only available on
windows). This code is now solid, and I''d now like to resume
development on (any) other OS(grin).
But alas, the controller bails because the OS specific library can''t
be found.
Can I conditionally specify action code compilation (and a require
''win32ole'') based on OS or
2009 May 03
2
clear screen?
I?ve been using this routine for several years. I?m sorry, I don?t remember
where I got it. It works as it should, viz. it blanks the R console. But
it requires package rcom and now that requires rscproxy.
cls <-
function ()
{
require(rcom)
wsh <- comCreateObject("Wscript.Shell")
comInvoke(wsh, "SendKeys", "\f")
invisible(wsh)
}
> cls()
2009 Jan 13
1
ROR - Excel Export Example
If you are running on Windows you can use create and read speadsheets
using the ''win32ole'' require
This sample should give you the basic idea
------
def export
require ''win32ole''
@sort_by = ''last_name''
current_user = ''steve''
@records = Contact.find(
:all,
:conditions =>