A problem when i pass "this" pointer to XtAddCallb

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
A problem when i pass "this" pointer to XtAddCallb

Submitted by Anonymous on Sun, 06/09/2002 - 02:14. Developers
it seems that i can`t get the right member var of "this" pointer in callback function,just core dumped. Then i make the callback function the static , and pass a usually pointer to XtAddCallback, it`s OK ..why?

ICS_support

The Doug Young book on using Motif and C++ (the forerunner of ViewKit) explains this nicely, as does, I believe, the comp.windows.x.motif FAQ.