C language function:D3D10CreateEffectFromMemory sample codes

Search sample code in the internet.It is the result.


TITLE : Effects for Direct3D 11 Update – Games for Windows and the DirectX SDK
However, now D3D10CreateEffectFromMemory() doesn't like the compiled effect anymore, and return E_FAIL. I have no other information but this error code........
http://blogs.msdn.microsoft.com/chuckw/2012/10/23/effects-for-direct3d-11-update/


TITLE : D3D10CreateStateBlock function (Windows)
HRESULT D3D10CreateEffectFromMemory(.......
http://msdn.microsoft.com/en-us/library/windows/desktop/bb205088(v=vs.85).aspx
TITLE : D3D10CreateStateBlock function (Windows)
hr = D3D10CreateEffectFromMemory((void *)effectBuffer,pos,0,g_pd3dDevice,NULL,&g_pEffect);.......
http://msdn.microsoft.com/en-us/library/windows/desktop/bb205088(v=vs.85).aspx
search Google

https://www.google.com/#q=D3D10CreateEffectFromMemory