Displaying 20 results from an estimated 4000 matches similar to: "Windows programming books?"
2007 Sep 21
3
win32-file-stat bug
Heya all,
Anyone have any ideas on this one?
http://rubyforge.org/tracker/index.php?func=detail&aid=13825&group_id=85&atid=411
It''s easy enough to rescue, I''d just like to know what MRI does in this
case, so we can duplicate it.
Regards,
Dan
2008 Jul 08
12
Some more win32-security: SID.create
Hi all,
How does this look as a general approach to a SID.create method:
# Creates and initializes
def self.create(authority, *sub_authorities)
if sub_authorities.length > 8
raise ArgumentError, ''maximum of 8 subauthorities allowed''
end
authorities = Array.new(8, 0)
authorities.replace(sub_authorities)
count = authorities.select{ |e| e > 0 }.size
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
2008 May 11
3
converting a RSTRING to an OLESTR
Hi,
I was going to modify the TaskScheduler#save method to take an optional
file name. But, I need to convert a Ruby string to an OLE string. I
thought I could use this:
http://msdn.microsoft.com/en-us/library/ms692615(VS.85).aspx
But, it only appears to accept literal string constants.
Any other suggestions?
Thanks,
Dan
2006 Oct 06
13
Need some help with latest win32-mmap
Hi all,
I''ve got the latest win32-mmap code checked into CVS. Unfortunately, it
seems that I''m not able to open an existing mapping and retrieve set
data. Below is a simple example that seems like it ought to work but
doesn''t. Any ideas?
# map1.rb
require ''win32/mmap''
include Win32
mmap = MMap.new(:name => ''alpha'', :size
2008 May 11
4
Latest rb_win32_select patch
Hi Park,
I tried your latest patch and ran the sample code:
readPipe, writePipe = IO.pipe
t = Thread.new{
sleep 5
while true
sleep 0.1
puts "got #{readPipe.readline.length} bytes"
end
}
i = 1
while true
i += 1
sleep 1
puts "hello from main"
if i > 3
writePipe.puts "a"*2048
end
end
t.join
At the console I typed the
2004 Nov 04
4
Attempt to build a gemspec
Hi all,
I''m trying to build a gemspec for win32-ipc, using a precompiled binary.
Here''s my gemspec file:
#win32-ipc.gemspec
require "rubygems"
spec = Gem::Specification.new do |s|
s.name = "win32-ipc"
s.version = "0.3.1"
s.platform = Gem::Platform::WIN32
s.summary = "A base class for Win32 synchronization
objects."
2007 Aug 04
10
Need some help with pure Ruby win32-changenotify
Hi all,
I know it''s deprecated, but people seem to still be using
win32-changenotify, so I thought I''d see if I could make it pure Ruby.
Also, I thought it would be a good opportunity to test passing a custom
Win32::Event object.
I''m mostly done I think, but I''m having trouble unraveling the
FILE_NOTIFY_INFORMATION struct buffer. Please check out the
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
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
2008 May 20
10
Asynchronous Pipe::Server problems
Hi all,
I''ve been working on the win32-pipe library (again) and I''ve reworked
the interface. Instead of Pipe.new_server or Pipe.new_client, there''s
now a base Pipe class, with Pipe::Server and Pipe::Client subclasses.
You can find the latest code in the CVS repo.
Oh, and you''ll need to update your windows-pr library with the latest
from CVS if you want to
2008 Jan 23
6
JRuby and callbacks?
Hi all,
Any Java/JRuby folks on the list? I''d like to see if we can implement
api.c for JRuby using JNA and see how it handles the callbacks.
I''m not a Java guy, nor do I know JNA, but I''ll take a stab at it if no
one else on the list does.
Here are a couple of useful links:
http://www.infoq.com/news/2007/09/jna-jruby
https://jna.dev.java.net/
Regards,
Dan
This
2008 Apr 30
8
Playing with NtQueryInformationFile
Hi all,
I''m trying to get the allocation size of a file via a file handle
(rather than its name). The example below works for FileNameInformation
but I can''t get it to work as expected for FileStandardInformation.
Here''s some sample code:
# query_test.rb
require ''windows/handle''
require ''windows/error''
include Windows::Handle
2010 Jan 23
5
Buying windows software
Hi all,
Just looking to buy Windows 7. Where do y''all shop for your Windows
software these days?
I found this:
http://elecsurf.com/win7u-64-dd.html
Seemed like a pretty good price.
Any other suggestions?
Regards,
Dan
2006 Jan 05
7
[Fwd: [win32utils-help][6822] Eventlog problem]
Dang, I thought we solved this.
Any ideas?
Dan
PS - I realized after reading this I forgot to bump the version number
for 0.3.3 - I''ve uploaded a new zip file with the correct version number.
-------------- next part --------------
An embedded message was scrubbed...
From: alain Fioretti <noreply at rubyforge.org>
Subject: [win32utils-help][6822] Eventlog problem
Date: Thu, 5
2011 Aug 22
2
Pure Ruby TCP Daemon
Hi all,
I created a "pure" branch on github that uses the code Heesob posted a while
back:
http://rubyforge.org/pipermail/win32utils-devel/2008-November/001274.html
However, I couldn''t make it work on my Vista laptop.
c:\Users\djberge\Repositories\win32-service\examples>ruby demo_daemon_ctl.rb
start
VERSION: 0.8.0
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
2007 Sep 12
2
RubyConf 2007?
Hi all,
Is anyone on the list going to RubyConf this year?
I don''t know yet if I''m going to go. I''m still thinking about it.
Regards,
Dan
2006 Jun 21
4
Yet another data structure + pack/unpack question (win32-service)
Hi all,
If you take a look at the service.rb file in the win32-service
repository (the new one in the toplevel repository path), I''ve got this
bit of code, which succeeds, but I can''t seem to unpack the data
structure properly. Did I pack it wrong to begin with? I should know
this but I''m spacing out.
proc_status =