cvs.gedasymbols.org/archives/browse.cgi | search |
From: | "Rylan" <rylan AT intekom DOT co DOT za> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Altering Caller's local variables from an Allegro Dialog Func |
Date: | Tue, 8 Dec 1998 08:28:07 +0200 |
Organization: | The South African Internet Exchange |
Lines: | 35 |
Message-ID: | <74ih2n$us$1@news2.saix.net> |
NNTP-Posting-Host: | pc25-01-p03.saix.net |
X-Trace: | news2.saix.net 913098647 988 196.25.111.153 (8 Dec 1998 06:30:47 GMT) |
X-Complaints-To: | abuse AT saix DOT net |
NNTP-Posting-Date: | 8 Dec 1998 06:30:47 GMT |
X-Newsreader: | Microsoft Outlook Express 4.72.2106.4 |
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.2106.4 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
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 |