Mail Archives: djgpp/1998/12/11/01:36:17

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$>
X-Trace: 913098647 988 (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


How can I alter caller variables passed in the DIALOG struct when calling a
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
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!


Spawned By Rylan
Is truth beauty or beauty truth?

Spawned By Rylan
Is truth beauty or beauty truth?

- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019