Displaying 20 results from an estimated 10000 matches similar to: "C extension question"
2005 Jan 25
3
Change Journals
Hi,
I''ve released win32-changenotify 0.3.0 today. Take a look.
Park and I have discussed a Ruby interface to change journals a little bit:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/creating_modifying_and_deleting_a_change_journal.asp
Park, would you like to do this, or did you want me to? I wasn''t sure from
your RubyForge post.
Also, do
2005 Jan 24
0
Test email
This is a test to see if the "from" line shows up as me instead the generic
list. I had to tweak a setting I didn''t know about (dammit).
Dan
In the immortal words of Socrates, "I drank what?"
2004 Nov 20
0
SIGINT in win32-process
Hi all,
I banged my head all day trying to make SIGINT work like you would expect on
Win32, to no avail. The goal is to allow the user to send a SIGINT (i.e.
CTRL_C_EVENT) to a remote process. I tried a CreateRemoteThread() +
GenerateConsoleCtrlEvent() approach with no luck. I also found this bit of
code:
2004 Oct 23
0
win32-ipc, with blocks (code review please)
Does this look right? The places to look are wait and wait_for_multiple
(which I modified to take the class as an argument, so that I could yield).
Dan
/****************************************************************************
* ipc.c - source for the win32-ipc package
****************************************************************************/
#include "ruby.h"
#include
2004 Apr 24
5
win32-taskscheduler alpha
Well, I''m going to release the first version of win32-taskscheduler today.
For now, I''ve kept the API about the same as it originally was because I was
spending way too much time futzing around and I wanted to get something out
the door.
For now, I''m calling this a BETA release, with the API subject to change.
See the ''Future Plans'' section of
2006 Dec 07
0
Fwd: win32-service problems with patch
Got this today. Please take a look and let me know what you think.
- Dan
---------- Forwarded message ----------
From: Kevin Burge <kevin.burge at systemware.com>
Date: Dec 7, 2006 6:45 AM
Subject: win32-service problems with patch
To: djberg96 at gmail.com
Hi Daniel,
Thanks for win32-service. In the process of using it for running a
reliable-msg (drb) server and clients, I had some
2004 Nov 06
3
Calling CreateFile on an instance of File - possible?
Hi all,
I''m going over win32-file this weekend. I''m creating instance methods for
setting (or unsetting) the various file attributes. So, you can do
something like:
f = File.open("foo.txt")
f.archive = true
f.hidden = true
f.close
This works for the basic attributes, but it requires extra work for others.
Specifically, I am having trouble trying to set the
2004 Oct 04
2
open3 for windows
Hi all,
The topic of creating a unified API for open3 for Windows came up at
RubyConf 2004 this year.
Park, I was wondering if you would mind if we modified win32_popen so that
the API matches the open3 library that ships with Ruby.
This also means deciding whether or not to leave in the open2, open4, and
posix stuff. I guess it doesn''t hurt to leave this in, although Open3.open4
2005 Nov 26
1
Another patch of win32-service for nice startup.
Hi,
I believe this patch would be a perfect solution for a lengthy
initialization application.
Added hStartEvent, service_init, checkpoint increments.
============================================================
--- temp/service.c 2005-11-27 00:03:30.000000000 +0900
+++ service.c 2005-11-27 00:01:58.000000000 +0900
@@ -14,6 +14,7 @@
static VALUE cDaemonError;
static VALUE rbServiceStruct,
2007 Sep 05
0
[ wxruby-Bugs-13676 ] xrc listctrl windows custom data crash
Bugs item #13676, was opened at 2007-09-05 14:01
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=13676&group_id=35
Category: Incorrect behavior
Group: current
Status: Open
Resolution: None
Priority: 3
Submitted By: Bela Babik (teki321)
Assigned to: Nobody (None)
Summary: xrc listctrl windows custom data crash
Initial Comment:
I have attached the
2007 May 31
0
[1039] trunk/wxruby2/swig/Events.i: Remove some debugging output
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2004 Nov 07
2
Problems with DeviceIoControl()
Hi all,
Thanks to Wayne and Park, I''ve got something like this
now:
static VALUE file_set_compressed(VALUE self, VALUE
rbBool){
HANDLE h;
BOOL rv;
DWORD dwBytesReturned;
int fn;
USHORT inBuf = COMPRESSION_FORMAT_DEFAULT;
if((rbBool != Qtrue) && (rbBool != Qfalse)){
rb_raise(rb_eTypeError,"Argument must be true or
false");
}
2007 May 29
0
[1035] trunk/wxruby2/swig/classes/EvtHandler.i: Removed a heap of redundant stuff that''s been #if 0''d for a while
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2013 Dec 27
0
[PATCH] ruby: Fix .new method (RHBZ#1046509).
The .new method was unintentionally broken in
commit 9466060201600db47016133d80af22eb38091a49.
This fixes the .new method and allows it to be called with multiple
parameters, so you can use:
Guestfs::Guestfs.new
Guestfs::Guestfs.new()
Guestfs::Guestfs.new(:close_on_exit => false)
etc.
For backwards compatibility, Guestfs::create may still be used.
This commit also adds regression
2004 Jan 22
1
code cleanup suggestion - error classes
Currently, most of the modules define an error class of some sort (e.g.
cWin32ServiceError). Within the code, the error is raised like this:
rb_raise(cWin32ServiceError,ErrorDescription(GetLastError()));
It seems logical that, instead of appending the message every time, that
we should simply call ErrorDescription(GetLastError()) simply by raising
an error (i.e. within the
2005 Jan 06
0
Some thoughts on win32-changenotify
Hi all,
As things stand now, you can do something like this with
win32-changenotify:
require "win32/changenotify"
include Win32
filter = ChangeNotify::FILE_NAME | ChangeNotify::DIR_NAME |
ChangeNotify::LAST_WRITE
cn = ChangeNotify.new("c:\\",false,filter){
puts "Something changed"
}
cn.wait
You can pass a block that''s executed when a change occurs, but
2007 May 31
0
[1038] trunk/wxruby2/swig/Events.i: Add missing EVT_COMMAND_TREE constants
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2007 Jun 23
0
[1064] trunk/wxruby2/swig/Events.i: Removed unused func, updated comments
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2004 Oct 06
0
Open3 progress
Hi all,
I''ve got an initial version of Open3.popen3 checked into CVS, along with a
test suite, a sample program and some of the usual files (README, etc).
This is just Park''s win32_popen package stripped down and modified to match
the Open3 API.
So far, so good. For the first release, I''ve decided that we should strip
it down to popen3 only. We can always add
2004 Jul 31
3
Bug in new_work_item
Hi all,
Windows 2000
Ruby 1.8.2 R7
VC++ 6.0
I noticed that if I try to call new_work_item and give
the task a name that already exists, I get a segfault:
C:\eclipse\workspace\win32-taskscheduler>ruby test.rb
"0.1.0"
test.rb:22:in `new_work_item'': NewWorkItem() function
failed (Win32::TaskSchedul
erError)
from test.rb:22
test.rb:22: [BUG] Segmentation fault
ruby