From: Vic Newsgroups: comp.os.msdos.djgpp Subject: Re: HELP: accessing astructure members via VOID pointer?? Date: Tue, 27 Jan 1998 20:52:21 -0500 Organization: Communications Accessibles Montreal, Quebec Canada Lines: 11 Message-ID: <34CE8F55.1C12@cam.org> References: NNTP-Posting-Host: dialup-167.hip.cam.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk G DOT DegliEsposti AT ads DOT it wrote: > BTW, why are you trying to do something so strange? :-) > Isn't the usual way enough (I mean ((struct foo *)bar)->x = 55) ? :-) Because I'm trying to do a scripting language for a game engine. At compile time it's easy to say p->x, but at run time I just have a chunk of memory and no ideea about the member's types,names etc. I have to be able do declare those structs in my language and access their places in the game engine... This pointer thing was the first ideea that came to me...:) -- --> http://www.cam.org/~tudor <--