<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ece9d8>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; I have a problem 
with&nbsp;pointer in my code,&nbsp; Here is the code and the question is 
after</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>// LED<BR>typedef struct<BR>{<BR>&nbsp;ushort 
Red;<BR>&nbsp;ushort Green;<BR>&nbsp;ushort Blue;<BR>}LedStruct;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>LedStruct *Led;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>// DMX<BR>ushort 
DMXBuffer[MAX_DMX];<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>void&nbsp;main()</FONT></DIV>
<DIV><FONT face=Arial size=2>{</FONT></DIV>
<DIV><FONT face=Arial size=2>Led = &amp;DMXBuffer[0];</FONT></DIV>
<DIV><FONT face=Arial size=2>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have declaire a array "DMXBuffer" of x byte, now 
I want to address this array by</FONT></DIV>
<DIV><FONT face=Arial size=2>using the LedStruct to have something 
like</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>
<DIV><FONT face=Arial size=2>Led[0].Red;&nbsp;&nbsp;&nbsp; &nbsp;// will give 
DMXBuffer[0]</FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2>Led[0].Green;&nbsp; // will give 
DMXBuffer[1]</FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2>Led[0].Blue;&nbsp;&nbsp;&nbsp; &nbsp;// will give 
DMXBuffer[2]</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>
<DIV><FONT face=Arial size=2>Led[1].Red;&nbsp;&nbsp;&nbsp; &nbsp;// will give 
DMXBuffer[3]</FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2>Led[1].Green;&nbsp; // will give 
DMXBuffer[4]</FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2>Led[1].Blue;&nbsp;&nbsp;&nbsp; &nbsp;//will give 
DMXBuffer[5]</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2></FONT>&nbsp;</DIV></DIV></DIV></DIV></DIV></DIV></DIV>
<DIV><FONT face=Arial size=2>Thanks for your help</FONT></DIV>
<DIV><FONT face=Arial size=2>Sylvain Bissonnette</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;</DIV></FONT></BODY></HTML>