| Newsgroups |
gmane.comp.lang.eiffel.gobo.general |
| Message-ID |
<[email protected]> |
--------------BB156880B87DD1F68E82D833
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable
Hi, I'm having a problem with this code:
int param_action(Ihandle* dialog, int param_index, void* user_data) {
=C2=A0 return ((int (*) (EIF_REFERENCE, EIF_POINTER, EIF_INTEGER_32,
EIF_POINTER)) param_cb_FniV) (eif_access (obj), dialog, param_index,
user_data);
}
int get_param_dialog (const char* title, void* user_data, const char*
format, int param_count, int param_extra, void** param_data) {
=C2=A0 return IupGetParamv(title, param_action, user_data, format,
param_count, param_extra, param_data);
}
These functions are implemented in a header file (eiffel-iup.h). The
second function (get_param_dialog) call the IUP function "IupGetParamv"
which create a preferences panel. The second parameter (param_action) is
the callback called when the user change some value at preferences
panel. As you can see this is the first function, which call the Eiffel
routine "param_cb_FniV". The problem is that the application crash when
"IupGetParamv" is called. It seems to be the Eiffel routine
(param_cb_FniV is attached, I can check it with "param_cb_FniV !=3D
NULL"). If I comment the line where this routine is called and add
"return 1;" below, the application run without problem. But I can't get
the changes made at panel. This is almost the same code I had with
Liberty Eiffel, only the line where the Eiffel routine is called was
changed. I don't see the problem here, but my C knowledge is basic. Any
Advice? Thanks.
Germ=C3=A1n
--------------BB156880B87DD1F68E82D833
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<head>
<style type=3D"text/css">
<!--
/* start of attachment style */
.ygrp-photo-title{
clear: both;
font-size: smaller;
height: 15px;
overflow: hidden;
text-align: center;
width: 75px;
}
div.ygrp-photo{
background-position: center;
background-repeat: no-repeat;
background-color: white;
border: 1px solid black;
height: 62px;
width: 62px;
}
div.photo-title=20
a,
div.photo-title a:active,
div.photo-title a:hover,
div.photo-title a:visited {
text-decoration: none;=20
}
div.attach-table div.attach-row {
clear: both;
}
div.attach-table div.attach-row div {
float: left;
/* margin: 2px;*/
}
p {
clear: both;
padding: 15px 0 3px 0;
overflow: hidden;
}
div.ygrp-file {
width: 30px;
valign: middle;
}
div.attach-table div.attach-row div div a {
text-decoration: none;
}
div.attach-table div.attach-row div div span {
font-weight: normal;
}
div.ygrp-file-title {
font-weight: bold;
}
/* end of attachment style */
-->
</style>
</head>
<html>
<head>
<meta http-equiv=3D"content-type" content=3D"text/html; charset=3DUTF-8=
">
</head>
<body>
<!-- |**|begin egp html banner|**| -->
<br><br>
<!-- |**|end egp html banner|**| -->
<p>Hi, I'm having a problem with this code:</p>
<p><br>
</p>
<p><font size=3D"-1">int param_action(Ihandle* dialog, int
param_index, void* user_data) {<br>
=C2=A0 return ((int (*) (EIF_REFERENCE, EIF_POINTER, EIF_INTEGER_32=
,
EIF_POINTER)) param_cb_FniV) (eif_access (obj), dialog,
param_index, user_data);<br>
}<br>
<br>
int get_param_dialog (const char* title, void* user_data, const
char* format, int param_count, int param_extra, void**
param_data) {<br>
=C2=A0 return IupGetParamv(title, param_action, user_data, format,
param_count, param_extra, param_data);<br>
}</font><br>
</p>
<p><br>
</p>
<p>These functions are implemented in a header file (eiffel-iup.h).
The second function (get_param_dialog) call the IUP function
"IupGetParamv" which create a preferences panel. The second
parameter (param_action) is the callback called when the user
change some value at preferences panel. As you can see this is the
first function, which call the Eiffel routine "param_cb_FniV". The
problem is that the application crash when "IupGetParamv" is
called. It seems to be the Eiffel routine (param_cb_FniV is
attached, I can check it with "param_cb_FniV !=3D NULL"). If I
comment the line where this routine is called and add "return 1;"
below, the application run without problem. But I can't get the
changes made at panel. This is almost the same code I had with
Liberty Eiffel, only the line where the Eiffel routine is called
was changed. I don't see the problem here, but my C knowledge is
basic. Any Advice? Thanks.</p>
<p>Germ=C3=A1n<br>
</p>
<br>
=20=20
<!-- |**|begin egp html banner|**| -->
<br>
<br>
<!-- |**|end egp html banner|**| -->
<div width=3D"1" style=3D"color: white; clear: both;"/>__._,_.___</div>
=20=20=20=20=20=20
=20=20
=20=20=20=20
<div id=3D"fromDMARC" style=3D"clear:both; margin-top: 10px;">
<hr style=3D"height:2px ; border-width:0; color:#E3E3E3; backgroun=
d-color:#E3E3E3;">
Posted by: =3D?UTF-8?Q?Germ=3Dc3=3Da1n_Arias?=3D <germanandre@g=
mx.es> <hr style=3D"height:2px ; border-width:0; color:#E3E3E3; =
background-color:#E3E3E3;">
</div>
<!-- Start Recommendations -->
<!-- End Recommendations -->
<!-- |**|begin egp html banner|**| -->
<br><br>
<tt>
To Post a message, send it to: [email protected]<BR>
To Unsubscribe, send a blank message to: gobo-eiffel-unsubscribe-B11MqFFcr06IwRZHo2/[email protected]=
m</tt>
<br><br>
<!-- |**|end egp html banner|**| -->
<!-- |**|begin egp html banner|**| -->
<img src=3D"http://geo.yahoo.com/serv?s=3D97476590/grpId=3D1522270/grpspI=
d=3D1705006764/msgId=3D1878/stime=3D1571623796" width=3D"1" height=3D"1"> <=
br>
<!-- |**|end egp html banner|**| -->
=20=20=20=20
<!-- |**|begin egp html banner|**| -->
<br>
=20=20=20
=20=20=20=20=20
=20
<!-- |**|begin egp html banner|**| -->
<div id=3D"ygrp-vital" style=3D"background-color: #f2f2f2; font-fam=
ily: Verdana; font-size: 10px; margin-bottom: 10px; padding: 10px;">
<span id=3D"vithd" style=3D"font-weight: bold; color: #333; text-tr=
ansform: uppercase; "><a href=3D"https://groups.yahoo.com/neo/groups/gobo-e=
iffel/info;_ylc=3DX3oDMTJlbmM4MGthBF9TAzk3MzU5NzE0BGdycElkAzE1MjIyNzAEZ3Jwc=
3BJZAMxNzA1MDA2NzY0BHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTU3MTYyMzc5Ng--" style=
=3D"text-decoration: none;">Visit Your Group</a></span>
<ul style=3D"list-style-type: none; margin: 0; padding: 0; display: in=
line;">
</ul>
</div>
<div id=3D"ft" style=3D"font-family: Arial; font-size: 11px; margin-top: 5p=
x; padding: 0 2px 0 0; clear: both;">
<a href=3D"https://groups.yahoo.com/neo;_ylc=3DX3oDMTJkanEwZzFuBF9TAzk3ND=
c2NTkwBGdycElkAzE1MjIyNzAEZ3Jwc3BJZAMxNzA1MDA2NzY0BHNlYwNmdHIEc2xrA2dmcARzd=
GltZQMxNTcxNjIzNzk2" style=3D"float: left;"><img src=3D"https://s.yimg.com/=
ru/0.9.12/min/css/yahoo_en-US_f_pw_101x21.png" height=3D"21" width=3D"101" =
alt=3D"Yahoo! Groups" style=3D"border: 0;"/></a>
<div style=3D"color: #747575; float: right;"> • <a href=3D"https://i=
nfo.yahoo.com/privacy/us/yahoo/groups/details.html" style=3D"text-decoratio=
n: none;">Privacy</a> • <a href=3D"mailto:gobo-eiffel-unsubscribe@yaho=
ogroups.com?subject=3DUnsubscribe" style=3D"text-decoration: none;">Unsubsc=
ribe</a> • <a href=3D"https://info.yahoo.com/legal/us/yahoo/utos/terms=
/" style=3D"text-decoration: none;">Terms of Use</a> </div>
</div>
<!-- |**|end egp html banner|**| -->
</div> <!-- ygrp-msg -->
=20=20=20
<br>
<!-- |**|end egp html banner|**| -->
<div style=3D"color: white; clear: both;"/>__,_._,___</div>
</body>
</html>
--------------BB156880B87DD1F68E82D833--