search for: stringvalueptr

Displaying 15 results from an estimated 15 matches for "stringvalueptr".

Did you mean: stringvaluecstr
2007 Jan 23
0
[853] trunk/wxruby2/swig: Replace deprecated STR2CSTR with StringValuePtr
...ch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[853] trunk/wxruby2/swig: Replace deprecated STR2CSTR with StringValuePtr</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>853</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-01-23 16:23:36 -0500 (Tue, 23 Jan 2007)</dd> </dl&g...
2007 Jun 25
0
[1069] trunk/wxruby2/swig/typemap.i: Fix big memory leak in methods taking wxString as a parameter
...###################################################### -%typemap(in) wxString& { -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp// $argnum: $1_type $1_name ($1_mangle) [$1_ltype] -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp$1 = new wxString(StringValuePtr($input), wxConvUTF8); -} </del><span class="cx"> </span><del>-%typemap(in) const wxString& { -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp$1 = new wxString(StringValuePtr($input), wxConvUTF8); -} - -%typemap(in) wxString* { -&nb...
2004 Nov 06
3
Calling CreateFile on an instance of File - possible?
...UE self, VALUE rbBool){ DWORD dwAttr; VALUE rbPath; HANDLE h; if((rbBool != Qtrue) && (rbBool != Qfalse)){ rb_raise(rb_eTypeError,"Argument must be true or false"); } rbPath = rb_funcall(self,rb_intern("path"),0,0); dwAttr = GetFileAttributes(StringValuePtr(rbPath)); h = CreateFile( (LPCTSTR)StringValuePtr(rbPath), FILE_ALL_ACCESS, FILE_SHARE_READ, NULL, OPEN_EXISTING, dwAttr, NULL ); if(h == INVALID_HANDLE_VALUE){ printf("Error opening file: %s\n",ErrorDescription(GetLastError()));...
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
2005 Aug 03
24
patch for Icon
...sed on GTK on other systems it is: wxIcon(const wxString& name, long type = wxBITMAP_TYPE_ICO_RESOURCE, int desiredWidth = -1, int desiredHeight = -1); So I wrapped this in a #ifdef __WXGTK__ #else #endif I also had to change: wxLogWarning(wxConvUTF8.cMB2WC(StringValuePtr(str))); I don''t know about other systems but on Windows wxLogWarning and wxLogStatus only take const char *formatString and that is what the docs show also. Kevin the refactored install works great also. I will be out of town for 5 days starting tomorrow so if you need any clarification...
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
2004 Jul 02
0
win32-eventlog-0.2.2 released
...ll, I''ve released 0.2.2 of win32-eventlog. There was a rather nasty bug in the read() method I hadn''t noticed before - it wasn''t reading all the records! In addition, this package officially requires Ruby 1.8.0 or later, as I have replaced the STR2CSTR() functions with StringValuePtr(). Let me know if you find any bugs. Thanks. Dan __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail
2004 Jul 14
0
New allocation framework and other stuff
Hi all, To be fully "1.8 compliant" I''ve been updating some of the packages recently as you may have noticed. Mostly this has been a matter of replacing STR2CSTR() with StringValuePtr(). I''d also like to start using the new allocation framework where relevant, too. I didn''t use this for a long time because we were using 1.6.8 at work, but that''s not an issue any more. I''ve modified win32-ipc and checked in the changes to CVS. Seems to buil...
2005 Aug 03
2
patch for text ctrl
This is to add back the << operator to TextCtrl it got removed somewhere along the way. Sean _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2008 Oct 06
1
[LLVMdev] Calling LLVM API from within an llvm::Module
...s --libs core` test.o # craps w/ following: http://pastie.textmate.org/private/t33luliw4mdf7l2zkj8hg Is that supposed to work? I also tried creating a Function w/ ExternalLinkage calling LLVM C API function with no success: Function *f = Function::Create(type, Function::ExternalLinkage, StringValuePtr("LLVMModuleCreateWithName"), module); Any pointer or explication would be greatly appreciated, thanks a lot, - ma
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"); }
2004 Nov 21
3
win32-file, overlapped added
Hi all, I''ve got overlapped and offset support in both nread and nwrite. The only thing left before I want to release this (as 0.4.0) is to get NO_BUFFERING to work. Unfortunately, I can''t get it to work. Park, I looked at that site you sent (and borrowed some code from it), but I don''t see anything special happening for NO_BUFFERING. I thought it required
2007 Feb 25
6
Crash occurs where EventMachine.connect is
Hi everyone, If you subclass EventMachine::Connection and call it outside an EventMachine::run event loop, EventMachine crashes! Example: class Put < EventMachine::Connection include EventMachine::Deferrable HOST="localhost" PORT=8080 def self.request(data) EventMachine.connect(HOST, PORT, self) {|c| c.instance_eval { @data = data } } end #
2007 Dec 14
21
Some silly benchs (was: 1.9)
Guys, Just for fun, I tried to see (I know, a silly way to test it) how much overhead we have calling the C functions of the extensions. the benchmark script and the results: http://pastie.caboo.se/128646 The naive C extension: http://pastie.caboo.se/128647 I compared 1.8.6 (VC6 and mingw builds) against a fresh checkout of ruby trunk. What I understand from that is 1.9 is slower than 1.8
2005 Aug 04
9
wxruby2 retooling
I finally gave up on swig 1.3.22, since it seems to be causing too many problems. Ubuntu breezy will have 1.3.24, so I''m retargeting wxruby2 to swig 1.3.24+. At the moment, I have 1.3.25 on my system, since that''s the current release. I''m finding all kinds of problems with the post-processors we have that clean up the .cpp files that swig creates. The