On Tuesday 17 July 2007 22:35, Benjamin Franksen wrote:
> Anyway, it should be possible to work around this issue, too, by making
> the field special(SPC_DBADDR) in the dbd and adding an appropriate
> cvt_dbaddr method to the record support. This method is called prior to
> the request and can change all the values of the DB_ADDR that it
> receives. So, whenever you get a request of type DBR_STRING, just change
> the field pointer of the structure to point to the correct string in you
> string table.
Oh, and you must of course also change the field type in the DBADDR struct
to DBF_STRING, otherwise your string data gets interpreted as a DBF_ENUM
which would be, ahem, bad.
Cheers
Ben
- Replies:
- Re: MEDM enum not displaying correctly? Benjamin Franksen
- References:
- MEDM enum not displaying correctly? Heinrich du Toit
- Re: MEDM enum not displaying correctly? Benjamin Franksen
- Navigate by Date:
- Prev:
Re: IPac driver organisation Andrew Johnson
- Next:
RE: ai, soft channel, and breakpoint table Allison, Stephanie
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
<2007>
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: MEDM enum not displaying correctly? Benjamin Franksen
- Next:
Re: MEDM enum not displaying correctly? Benjamin Franksen
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
<2007>
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|