Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > Problems getting a wx_find_replace_data
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 25th February 09:40
rogerolivet
External User
 
Posts: 1
Default Problems getting a wx_find_replace_data


Hi all.
I'm working with the eiffel wx_find_replace_dialog, and I'd be really
great if you'd help me. Thanks.

I can get the string i want to search doin'
s_search := wx_find_replace_data.find_string
But when I what to get the string I want to replace with, doing
s_replace := wx_find_replace_data.replace_string
it gives my the string I want to search ( it seems it returns the same
as s_search := wx_find_replace_data.find_string)

The code I have is:
....
create wx_find_replace_data.make (0)
create wx_find_replace_dialog.make (wxw_parent, wx_find_replace_data,
"Search & Replace", 1)
....
  Reply With Quote


  sponsored links


2 25th February 09:40
geoff
External User
 
Posts: 1
Default Problems getting a wx_find_replace_data


In the following interface file:

${ELJ}\elj-2002\lib\ifs\c\ewxw\eljfindrepldlg.cpp

you will need to modify the following function from:

-- note: `GetFindString' used instead of `GetReplaceString'
-- (looks like an initial cut and paste error)

--8<--
EWXWEXPORT(int,wxFindReplaceData_GetReplaceString) (void* _obj, void* _ref) {
wxString tmp = ((wxFindReplaceData*)_obj)->GetFindString();
if (_ref)
memcpy(_ref, tmp.c_str(), tmp.Length()); return tmp.Length(); }
-->8--

to:

--8<--
EWXWEXPORT(int,wxFindReplaceData_GetReplaceString) (void* _obj, void* _ref) {
wxString tmp = ((wxFindReplaceData*)_obj)->GetReplaceString();
if (_ref)
memcpy(_ref, tmp.c_str(), tmp.Length()); return tmp.Length(); }
-->8--

You will need to regenerate your wxEiffel.dll and wxEiffel.lib files as per:

http://cvs.sf.net/viewcvs.py/elj/elj-2002/lib/ifs/c/ewxw/make-2.4/README

or locally:

${ELJ}\elj-2002\lib\ifs\c\ewxw\make-2.4\README

Hope this helps ..

I will update the CVS in case there is a future release of wxEiffel [1].

Geoff

[1] http://elj.sourceforge.net/status/
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666