Displaying 20 results from an estimated 10000 matches similar to: "Pass by reference bug in win32/api?"
2007 Sep 28
1
Help with win32/api, windows-api
Hi all,
I must have been testing windows-pr with an old version of windows-api,
because now when I run ''rake test'' for windows-pr I get this:
C:\Documents and Settings\djberge\workspace\windows-pr>rake test
C:0:Warning: require_gem is obsolete. Use gem instead.
(in C:/Documents and Settings/djberge/workspace/windows-pr)
C:/ruby/lib/ruby/site_ruby/1.8/windows/api.rb:288:
2007 Feb 28
3
[ win32utils-Bugs-8942 ] several typo in windows-pr.
Bugs item #8942, was opened at 2007-02-28 23:59
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=411&aid=8942&group_id=85
Category: windows-pr
Group: Code
Status: Open
Resolution: None
Priority: 3
Submitted By: Katsuyuki MIYAMUKO (miyamuko)
Assigned to: Nobody (None)
Summary: several typo in windows-pr.
Initial Comment:
I found typo in windows-pr.
Attached
2006 Aug 08
2
win32 eventlog dup
That''s weird. Line 296 is just a call to FormatMessage().
Folks on the mailing list - could this be a wide character issue? Buffer
too small maybe?
Regards,
Dan
Pe?a wrote:
> forgot:
>
> it segfaults on the win2k3 server (domain controller).
>
> it has _not_ segfault on my winxp pro though.
>
>
>
> # -----Original Message-----
> # From: Pe?a, Botp
2006 Aug 21
1
[ win32utils-Bugs-5479 ] Incorrect SetLastError declarations
Bugs item #5479, was opened at 2006-08-21 07:43
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=411&aid=5479&group_id=85
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: Incorrect SetLastError declarations
Initial Comment:
windows-pr-0.5.3
lib\windows\error.rb
2007 Sep 28
3
[ win32utils-Bugs-14298 ] windows-api 0.2.0/windows-pr 0.7.1 causes segfault with require of win32/file
Bugs item #14298, was opened at 2007-09-28 10:23
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=411&aid=14298&group_id=85
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Lars Olsson (lasso)
Assigned to: Nobody (None)
Summary: windows-api 0.2.0/windows-pr 0.7.1 causes segfault with require of win32/file
Initial Comment:
2007 Sep 25
2
Bug in win32-api with void prototypes?
Hi all,
It seems that a void prototype requires an explicit argument in our
version of win32/api:
C:\>irb
irb(main):001:0> require ''win32/api''
=> true
irb(main):002:0> include Win32
=> Object
irb(main):003:0> require ''Win32API''
=> true
# Our version
irb(main):004:0> GetLastErrorA = API.new(''GetLastError'',
2008 Dec 16
2
Syncing file with reference to another one
I have the following situation: file2 on remote host and file1 on
localhost. file1 and file2 are mostly the same. Simply running
rsync remotehost:file2 file2
will actually transfer the entire file. But I would like to use the
factt that I have local file1 that is mostly similar to file2. I.e.
how can I make rsync to use file1 as a reference while transferring
file2? (cp file1 file2 locally and
2007 Jan 21
1
[ win32utils-Bugs-8039 ] Cannot send data that includes a binary 0
Bugs item #8039, was opened at 2007-01-21 01:51
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=411&aid=8039&group_id=85
Category: win32-pipe
Group: Code
Status: Open
Resolution: None
Priority: 3
Submitted By: David Koontz (dkoontz)
Assigned to: Nobody (None)
Summary: Cannot send data that includes a binary 0
Initial Comment:
In pipe.c on lines 262 and
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 =
2007 Oct 25
2
Using strtok via win32/api
Hi all,
I''m having a little trouble with strtok:
require ''win32/api''
include Win32
strtok = API.new(''strtok'', ''PP, ''P'', ''msvcrt'')
string = "A string\tof ,,tokens\nand some more tokens";
seps = " ,\t\n";
puts "Tokens:"
token = strtok.call(string, seps)
while token
puts
2007 Aug 08
12
Some more win32-changenotify analysis
Hi all,
I decided to check the responsiveness of the pure Ruby vs C extension
versions of win32-changenotify. I setup this little file generator program:
a = []
10.times{ |n|
a << Thread.new{
File.open("File_#{n}", ''w''){ |fh| fh.puts "test #{n}" }
}
}
a.each{ |t| t.join }
The pure Ruby version did not do so well. In some cases it
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
2005 May 04
0
New win32-dir
Hi all,
In lieu of Timothy''s pure Ruby junction code, and Zach''s VC++ 6 issues,
I decided to just rewrite the dang thing in pure Ruby using Win32API.
That will solve''s Zach''s problem and make it easier to add Timothy''s
code, which I plan to add (slightly modified) to the 0.2.0 release.
The code is below. One thing I have a question about is how to
2015 Sep 03
1
Doubts on incremental backup and command repetition
Hi,
I am trying to use rsync for incremental backup and I am facing some issues. I would like to ask your help to understand what is going on and have the proper command line.
1) my goal is
I the following folders:
./dest:
file3.txt
./orig:
file1.txt file10.txt file2.txt file20.txt
And I would like to have as incremental backup
./dest:
backup file1.txt file2.txt file3.txt
2008 Mar 02
2
DO NOT REPLY [Bug 5298] New: xattrs and acls do not work well together along with fake-super, even worse on XFS
https://bugzilla.samba.org/show_bug.cgi?id=5298
Summary: xattrs and acls do not work well together along with
fake-super, even worse on XFS
Product: rsync
Version: 3.0.0
Platform: x86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P3
Component: core
AssignedTo:
2007 Oct 09
5
Playing with ReadFileScatter()
Hi all,
Looking at the IO.readlines source in io.c, it looks to me like they
grab 8k chunks, split on the input record separator, and buffer accordingly.
Since it looks like ReadFileScatter() does some of that work
automatically (in page file sized chunks), I thought I''d give it a try.
Here''s what I''ve got, but it doesn''t work. I have an incorrect parameter
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
2013 Jul 01
1
[PATCH v2] xfstests: btrfs/316: cross-subvolume sparse copy
This testscript creates reflinks to files on different subvolumes,
overwrites the original files and reflinks, and moves reflinked files
between subvolumes.
Originally submitted as testcase 302, changes are made based on comments
from Eric: http://oss.sgi.com/archives/xfs/2013-03/msg00231.html
Two new common/rc functions used in this script (_require_cp_reflink and
_verify_reflink) have been
2012 Mar 16
1
R merge two dataframes with different row?
Hi everyone,
I have a question for R code to merge.
Say I have two dataframes:
File1 is:
V1 V2 V3 V4
1 100 101 name1
2 200 201 name2
2 300 301 name3
3 400 401 name4
3 500 501 name5
4 600 601 name6
4 700 701 name7
File2 is:
V1 V2 V3 V4
1 50 55 p1
3 402 449 p2
4 550 650 p3
4 651 660
2011 Jul 19
1
list.files recursively to find files in a specific way...
Hi, all:
My folders are organized in such a way:
root
----branch1
---------------A
-----------------------file1.txt
-----------------------file2.txt
---------------B
-----------------------file1.txt
-----------------------file2.txt
----branch2
---------------A
-----------------------file1.txt
-----------------------file2.txt
---------------B
-----------------------file1.txt