   Array of ID3DXEffect?
  Hi,I'm trying to make a dynamic array of Direct3D effects (ID3DXEffect).I tried to define it like this in the object declaration:ID3DXEffect **mEffect;and I tried to create it like this, further on:mEffect* = new ID3DXEffect[mNrEffects];But it's not allowed like this )-;Can someone give me some hints?Greets Cris   
  Try this:LPD3DXEFFECT *mEffect = new LPD3DXEFFECT[ mNrEffects ];D3DXCreateEffectFromFile( ..., mEffect[ 0 ] );for (int i = 0; i < mNrEffects; i++){    if (mEffect != NULL)<br>    {<br>   mEffect-&gt;Release();<br>    }<br>}<br><br><span class="cpp-keyword">if</span> (mEffect != NULL)<br>{<br>    <span class="cpp-keyword">delete</span>[] mEffect;<br>    mEffect = NULL;<br>}<br><br></pre></div><!–ENDSCRIPT–> ;  Hi steve.Thanks for the help.When I do it like that the var *mEffect is only part of the specific function where I create the array (new).I have a 'direct3d' class with *mEffects as a part of a direct3d object, so I can use it in different functions. Is this also possible?   ;  Never mind, I got it working.Thanks for the help, now I can adjust my engine so I can read several effect files and create effects for specific objects.