search for: data_get_struct

Displaying 11 results from an estimated 11 matches for "data_get_struct".

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
2003 Nov 13
7
modified classes
-- +-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113 ]---------+ | http://www.mcl.hu/~kgergely "Olyan langesz vagyok, hogy | | Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom" | +-- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+ -------------- next part -------------- A non-text attachment was scrubbed... Name:
2004 Oct 23
0
win32-ipc, with blocks (code review please)
...32-ipc package ****************************************************************************/ #include "ruby.h" #include <windows.h> #include "ipc.h" static VALUE cIpcError; static char error[MAX_STRING]; static VALUE ipc_init(VALUE self, VALUE obj){ IpcStruct* ptr; Data_Get_Struct(self,IpcStruct,ptr); ptr->handle = (HANDLE)NUM2UINT(obj); return self; } static VALUE ipc_allocate(VALUE klass){ IpcStruct* ptr = malloc(sizeof(IpcStruct)); return Data_Wrap_Struct(klass,0,ipc_free,ptr); } static VALUE wait_for_multiple(VALUE klass,VALUE arr, BOOL fWaitAll,DWORD d...
2005 Jan 20
1
ChangeNotify help wanted
Hi all, I''ve checked in some code to win32-changenotify. Unfortunately, it doesn''t work right. I need some help. I don''t understand what, exactly, I''m supposed to pass to ReadDirectoryChangesW() for the 2nd argument, nor how to read the data back out. There''s also a WCHAR issue that needs to be worked out with regards to the FileName
2004 Feb 24
1
Tweaks for 0.2
...ile in there, I think the validator methods need to be renamed to proper ''wxruby'' things ("validate" instead of "Validate"). 2) The GetWindow method of WxValidator needs to be changed to: VALUE WxValidator::GetWindow(VALUE self) { wxRbValidator *ptr; Data_Get_Struct(self, wxRbValidator, ptr); return WxRbTypeTable::ConvertCppObject(ptr->GetWindow()); } 3) The following line needs to be added into dynamiccast.cpp Init method: WXRB_ADD_TYPE_CONV(WxStaticText,"wxStaticText"); also, the line #include "statictext.h" needs to...
2013 May 16
1
support remotely mounting disk images in p2v
Figure I'd share the latest revision to p2v I had regarding $subject. The patch now applies against HEAD and compiles fine. I was able to update the package on the client and run virt-p2v, though have yet to do a full end-to-end verification Most likely a little more work is needed to tidy up some edge cases and fully flush things out, but the majority of the work should be in place. On the
2007 Jan 23
0
[853] trunk/wxruby2/swig: Replace deprecated STR2CSTR with StringValuePtr
...uot;> </span><span class="cx"> } </span><span class="cx"> </span><span class="lines">@@ -35,11 +35,11 @@ </span><span class="cx"> wxFrame *ptr; </span><span class="cx"> Data_Get_Struct(argv[0], wxFrame, ptr); </span><span class="cx"> VALUE str = rb_f_sprintf(argc-1, &argv[1]); </span><del>- wxLogStatus(ptr,wxString(STR2CSTR(str), wxConvUTF8)); </del><ins>+ wxLogStatus(ptr,wxString(StringValuePtr(str), wxConvU...
2005 Nov 30
8
Compilation of ferret C-extension under Windows.
Hi, David. I have recently fixed ferret C sources and successfully compile extension with MSVC.Net The problem was that MS compiler is more stricter that GCC and require that all variables were declared before using. There was ~30 such declaration. I have fixed them all. But I am not sure that it works because tests failed with following error both on clean and patched versions. So seems that it
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
2013 Feb 04
1
[PATCH] generator: Add visibility to action struct
...unction *) pr "static VALUE\n"; - pr "ruby_guestfs_%s (" name; + pr "ruby_guestfs_%s (" f.name; if optargs = [] then ( pr "VALUE gv"; List.iter @@ -476,7 +475,7 @@ ruby_user_cancel (VALUE gv) pr " Data_Get_Struct (gv, guestfs_h, g);\n"; pr " if (!g)\n"; pr " rb_raise (rb_eArgError, \"%%s: used handle after closing it\", \"%s\");\n" - name; + f.name; pr "\n"; (* For optargs case, get the arg VALUEs into loc...
2009 Aug 03
1
[PATCH 1/2] Convert all TABs-as-indentation to spaces.
...topped by signal %d" i + failwithf "pod2text: process signalled or stopped by signal %d" i ); Hashtbl.add pod2text_memo key lines; let chan = open_out pod2text_memo_filename in @@ -7737,55 +7737,55 @@ static VALUE ruby_guestfs_close (VALUE gv) pr " Data_Get_Struct (gv, guestfs_h, g);\n"; pr " if (!g)\n"; pr " rb_raise (rb_eArgError, \"%%s: used handle after closing it\", \"%s\");\n" - name; + name; pr "\n"; List.iter ( - function - | String n | FileIn n | FileOut n...