delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/27/22:56:55

Message-ID: <351C39E1.B5F383B@pangea.ca>
From: Lee <jag*NOSPAM*@pangea.ca>
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Help : Allegro Menu *dp
Lines: 12
Date: Fri, 27 Mar 1998 23:42:32 GMT
NNTP-Posting-Host: 207.161.149.140
NNTP-Posting-Date: Fri, 27 Mar 1998 17:42:32 CST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In one of my menus, I need to pass more than one item of data thru the
dp pointer, so I tried to declare a struct like so:

struct moredata {
  int data1, data2;
};

mymenu[0].dp = &moredata;    //assuming I declared mymenu as a MENU type
earlier

However, I can't access the fields within the moredata struct from the
function called by my menu...it says something along the lines of data1
not being a structure or union.  Thanks for any help

jag AT pangea DOT ca

- Raw text -


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