cvs.gedasymbols.org/archives/browse.cgi | search |
Message-ID: | <000d01be2274$1dd67fe0$996f19c4@default> |
From: | rylan AT intekom DOT co DOT za (StefanViljoen,6599) |
To: | <djgpp AT delorie DOT com> |
X-Mailer: | Microsoft Outlook Express 4.72.2106.4 |
Subject: | Altering Caller's local variables from an Allegro Dialog Func |
Date: | Tue, 8 Dec 1998 08:28:07 +0200 |
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.2106.4 |
Reply-To: | djgpp AT delorie DOT com |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |