I tried a small program to use DirectX 9. It was simple: load an image and display it in a static frame in a dialog. I created an IDirect3DTexture9 object for the image and presented it following the normal steps (vertex setting, texture operation, bla bla bla...)
The wired thing is: when I used MFC as shared DLL, everything is fine. but when I statically link the MFC DLL, the image appeared on the screen is always grey.
Another prolem is: when I build the software and run it on another computer, the loaded image could not been properly shown no matter what.
I have checked every step in the program and it seems nothing was wrong (by returning S_OK for the calls).
Does any one know why?