similar to: Fwd: fix Choice.cpp unicode string

Displaying 20 results from an estimated 300 matches similar to: "Fwd: fix Choice.cpp unicode string"

2005 Aug 03
24
patch for Icon
I just checked out a fresh copy and had to tweak wxIcon.h to get it to compile on Mac OS X and windows. The problem is with: wxIcon(const wxString& filename, wxBitmapType type = wxBITMAP_TYPE_XPM, int desiredWidth=-1, int desiredHeight=-1); that signature is only used on GTK on other systems it is: wxIcon(const wxString& name, long
2007 Jan 23
0
[853] trunk/wxruby2/swig: Replace deprecated STR2CSTR with StringValuePtr
<!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:
2005 Oct 06
9
Grid.GetTextExtent
Wow. Look what SWIG does to GetTextExtent in Grid.cpp: void SwigDirector_wxGrid::GetTextExtent(wxString const &string, int *x, int *y, int *descent, int *externalLeading, wxFont const *font) const { ... if (swig_get_up()) { wxWindow::GetTextExtent(string,x,y,descent,externalLeading,font); return; } obj0 = rb_str_new2((const char *)(&string)->mb_str());
2005 Oct 09
0
[Fwd: Re: [Swig] Re: Object return problem]
Forwarded from the SWIG mailing list, so we have a copy in our archives. Kevin -------- Original Message -------- Subject: Re: [Swig] Re: Object return problem Date: Sun, 09 Oct 2005 18:31:40 -0400 From: Kevin Smith <wxruby@qualitycode.com> To: Charlie Savage <cfis@interserv.com> CC: Swig@cs.uchicago.edu References: <4347277E.1030700@mindspring.com>
2004 Feb 25
5
Wide strings and LPCTSTR types
All, I was experimenting with converting LPCTSTR strings to wide strings with something like this: // Converts a Ruby string to a LPWSTR LPCTSTR AllocWideLString(VALUE rbString){ char* str = STR2CSTR(rbString); int length = (strlen(str)+1) * sizeof(WCHAR); LPCTSTR lpStr = (LPCTSTR)malloc(length); MultiByteToWideChar( CP_ACP, 0, str, strlen(str)+1,
2005 Aug 02
1
Latest tarball
The latest tarball won''t compile on Windows: src/Functions.cpp(582) : error C2664: ''wxLogWarning'' : cannot convert parameter 1 from ''const class wxWCharBuffer'' to ''const char *'' No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called src/Functions.cpp(592) : error
2004 Dec 22
2
(no subject)
Hi, While running the sample application controls/control.rbw I encountered the following error: controls.rbw:1064:in `onAbout'': undefined method `free'' for #<Wx::BusyCursor:0x2 827db0> (NoMethodError) from controls.rbw:1039:in `initialize'' from controls.rbw:1039:in `call'' from controls.rbw:1164:in `main_loop''
2004 Feb 25
1
More on etc and other stuff
I seem to have gotten the bugs worked out of win32-etc. It seems it had to do with using WCHAR vs LPWSTR. Once I used AllocWideLString() vs AllocWideString() everything seemed to work ok. One question I have now is this - should I always use AllocWideLString() instead of casting like (LPCWSTR)STR2CSTR(rbVal); ? It would seem so, but I''m not sure. Also, I''ve committed the
2006 Jun 13
0
Help debugging superodoctor
I've tried several times to get superOdoctor to run on this machine, and have had no luck yet. Aside from this error message, # superodoctor ***************************************************************************** Supero Doctor II - Linux version 2.24(060523) Copyright(c) 1993-2006 by Super Micro Computer, Inc. http://supermicro.com/
2008 Jan 24
2
Problems when compiling MFC application
<table cellspacing='0' cellpadding='0' border='0' ><tr><td style="font: inherit;"><font size="2">Dear All,</font><br> &nbsp;<br> <font size="2">&nbsp;&nbsp;&nbsp;&nbsp; This is my first post on the wine organisation mailing lists, i would like to inform all of you i am using
2005 Aug 02
3
compile fix for wx2.6
building on ubuntu with wx2.6 gives only one error: an argument type has changed from long to wxBitmapType in a constructor of the wxIcon class. These changes were needed to fix the build. This brings up the question what is the status of the swig/classes/include files which were generated using the xml extract script which is no longer available in CVS. Should that script be rerun using wx2.6
2005 Jun 26
10
wxruby + GTK2.0
I have a newly-installed Ubuntu linux box that I''m planning to use for wxruby development (thanks for the advice on remote desktops from this group). However, turns out that Ubuntu comes with GTK2.0, annd wxwidgets 2.6 is reportedly better and easier to build than 2.4.2 against this. Before I set off on a potentially fruitless compiling journey, I was wondering if anyone had had
2006 Nov 13
0
[732] trunk/wxruby2/samples: Fixed a few crashes related to the about box menu.
<!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 25
0
[1069] trunk/wxruby2/swig/typemap.i: Fix big memory leak in methods taking wxString as a parameter
<!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:
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
2005 Jul 16
28
wxruby (was: Some questions)
Roy Sutton wrote (on the FreeRIDE list): > Really? That''s interesting. I haven''t checked out WxRuby but I would > be much happier using something that interfaces to the underlying > operating system''s widgets. As a member (and former leader) of the wxruby team, I thought I would share the state of the wxruby world. The current release is 0.6, and it has
2005 Mar 14
11
[Fwd: Re: Help a newbie pick a gui tool kit]
Hey Guys, This just came over the rubytalk list. Does anybody have any Debian experience? BTW, one thing this project *really* could use is people to package wxruby for <your distro here>. You don''t need SWIG/C++ experience for it, and a little work could help a lot of people. Nick -------- Original Message -------- Subject: Re: Help a newbie pick a gui tool kit Date: Sun, 13
2006 Jul 25
6
Wizards
Hi Please find attached a set of patches and swig files to implement Wizards for wxruby. Also a brief sample. Quick q - the C declarations of evt_xxx_xxx methods and their attaching to Ruby classes seems to be duplicated across Events.i and EvtHandler.i - is one of these the right place to be adding them? or both? Thanks alex _______________________________________________
2005 Aug 04
8
swigwin
Anyone on the list have some pointers for getting swig working properly on Windows? Anytime I reswig a file it breaks wx.cpp. I''m sure I''ve got a setup problem but I haven''t been able to put my finger on it yet. Roy
2006 Jul 24
6
MiniFrame.i
Hi Another little patch, adding MiniFrame (a frame with small title bar and buttons which doesn''t appear in the desktop taskbar). Also a sample - not very interesting, happy to roll this into something else if that''s better. cheers alex _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org