Compiler: Visual Studio.NET 2002
I am learning DirectX 8. (I want to use DirectX 8 as this comes as standard in Windows XP install. If I write a program I know my ludite-XP-using-friends will be able to use it without having to download a new version of DirectX.)
I am writing a program that uses DirectX 8 and am trying to combine the Common Files into a MFC application that is based on the CView class rather than the CFormView used in the MFCFog example. The program I will write will be single document (as opposed to multi-document).
In the Fog example a derived class is created, of the type:
class CMyMFCAppForm : public CFormView, public CD3DApplication
I am trying to set up a class of the form:
class CMyMFCAppForm : public CView, public CD3DApplication
I am having real trouble doing this, as I am getting really confused about how I am meant to set the program up with Initialisers etc. Ideally I would like to use the Visual Studio.NET 2002 'New Project Wizards' to set up the MFC bit and then plug the common DirectX 8 files like d3dapp.h into it.
At the moment I am getting a 'Debug Assertion Failed'. It occurs at line:
ASSERT(AfxGetThread() == this);
in the function:
in the microsoft file 'appcore.cpp'
I am semi-new at programming. I find the DirectX stuff easier than the 'setting a program up' stuff. So this might even be an error related to my resources or something trivial.
I have a zipped file of my code if anyone is interested I can email it to them. If I include the *.ncb file it is a quarter of a Meg. If I do not include the *.ncb file it is very small.
Yours with hope,
Game Technologies: DirectX, XNA, XACT, etc.7