www.delorie.com/archives/browse.cgi | search |
From: | "CORNU.Nicolas" <CORNU DOT Nicolas AT wanadoo DOT fr> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: no pic with allegro bitmaps in a struct... (code) |
Date: | Mon, 5 Apr 1999 17:50:56 +0200 |
Organization: | Wanadoo - (Client of French Internet Provider) |
Lines: | 37 |
Message-ID: | <7eaman$122$1@platane.wanadoo.fr> |
References: | <7e8hkj$4ut$1 AT platane DOT wanadoo DOT fr> <37089FA2 DOT 4B718747 AT xoommail DOT com> |
NNTP-Posting-Host: | meaux12-121.abo.wanadoo.fr |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.00.2014.211 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2014.211 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
in fact my problem is that i want to draw a pic into a member of a typedef struct (vehicule_model) for that i use a function located in other .c file. when i call first the function (ini_vehicule) to create the bitmap (create_bitmap). no error but when i display it on the screen, using blit function, no pic it's drawn on the screen if i don't use the function located in other .c file , that works. i don't know how i must declare my varible car with the type of vehicule_model... In fact i want the function ini_vehicule to do something with a variable passed in arguments. i've read that "call by reference) done what i want. i have tryed this, instead of: ini_vehicule(car): i've wrote ini_vehicule(&car) is it the good way ? -- CORNU Nicolas E-mail: CORNU DOT Nicolas AT wanadoo DOT fr ICQ: 31463000 Homepage: http://perso.wanadoo.fr/nicolas.cornu/Index.htm
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |