This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Function Tables...


Hi!

We're programming COM-like code here and when using C to call C++
functions we are using the following macro:

#define C_ADJUST_THIS(iface, This, member)  \
   (iface*)(((char*)(This))+(This)->lpVtbl->offset_##member)


This worked fine with GCC 2.95.2. Has the function table layout been
changed?

Right now we're getting SIGBUS all over the place because we cannot
find the functions within classes...

Anyone got any ideas?

Regards,
/ Peter



BEGIN:VCARD
VERSION:2.1
N:Torpman;Peter;R
FN:Peter R Torpman
ORG:Ericsson Infotech AB;EIN/T/P
TITLE:Software Designer
TEL;WORK;VOICE:+46 (0) 54 193505
TEL;PAGER;VOICE:ECN: 863 3505
ADR;WORK:;;Kanikenäsbanken 12;Karlstad;Värmland;S-65226;Sweden
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Kaniken=E4sbanken 12=0D=0AKarlstad, V=E4rmland S-65226=0D=0ASweden
EMAIL;PREF;INTERNET:Peter.R.Torpman@ein.ericsson.se
REV:20010713T134144Z
END:VCARD

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]