   could i use d3dx api compile effect file to binary format?
  i want to generate fx file in run time,is there any way to generate fx file with binary format?i know fxc.exe could compie the text-format fx to binary format,but i want to use it in run time, if i use fxc.exe in a sub process, i think it will spend much time in synchronization.   
  Sure.  In D3D9 you have to create an ID3DXEffectCompiler and use that to generate the binary description.  In D3D10 you can just use D3D10CompileEffectFromMemory, or D3DX10CompileFromFile.   ;  thanks!i still have some questions,i look up the DX9's SDK doc, i find the api:D3DXCreateEffectCompiler,HRESULT D3DXCreateEffectCompiler(  LPCSTR pSrcData,  UINT SrcDataLen,  CONST D3DXMACRO * pDefines,  LPD3DXINCLUDE pInclude,  DWORD Flags,  LPD3DXEFFECTCOMPILER * ppEffectCompiler,  LPD3DXBUFFER * ppParseErrors);i do not know how to use it. i need pass the whole fx's string to 1st parameter? and pass the string's length to 2nd parameter?this api seems that i could use to compile a string to a Effect.   ;ParameterspSrcData [in] Pointer to a buffer containing an effect description. SrcDataLen [in] Length, in bytes, of the effect data. As the documentation says, pSrcData is a pointer to a buffer containing the effect description.( Answer: Yes )   