Original Post
How do I get this function working? It is returning D3DERR_INVALIDDATA. I imported my .fx file as a custom resource, and I'm calling the function like this: I imagine the problem lies with the second parameter, but since I don't actually know what it refers to (and the sdk is delightfully unhelpful in helping me to find out), I don't really know. Any help would be great. Thanks.
HRESULT hr = D3DXCreateEffectFromResource(d3dDevice, NULL,
MAKEINTRESOURCE(IDR_FX1), 0, 0, 0, 0, &g_shader, 0);