Mail Archives: djgpp/1998/12/08/01:47:49
Hi,
How can I alter caller variables passed in the DIALOG struct when calling a
custom
Allegro dialog procedure using popup_dialog? I want to be able to pass an
int back
from the custom dialog procedure to the calling function, so that it can be
processed
after popup_dialog exists. I have tried passing the address of the variable
in the void
* dp field of the the DIALOG struct, but when I try to dereference it in
order to access
the "pointed to" int in the custom dialog procedure I have written, GCC
complains that I am dereferencing a "void *". How then can I alter a
variable using pass-by-reference in an Allegro dialog procedure using the
DIALOG struct? How do I dereference a
variable passed to a dialog procedure without getting the "attempting to
dereference void *" warning from GCC?
Please reply by email if at all possible!
Fanx!
Spawned By Rylan
Is truth beauty or beauty truth?
http://home.intekom.com/rylan/index.html
--
Spawned By Rylan
Is truth beauty or beauty truth?
http://home.intekom.com/rylan/index.html
- Raw text -