mrchan
asked on
Managed Directx 9 in VC++.NET - Creating a device.
Hello,
I am having problems creating a directx 9 device in VC++.NET. Here is my code.
PresentParameters *pp = new PresentParameters();
pp->Windowed = true;
pp->SwapEffect = Direct3D::SwapEffect::Disc ard;
Device *device = new Device(0, DeviceType::Hardware, this, CreateFlags::SoftwareVerte xProcessin g, pp);
It does not work and generates many errors.
error C3377: 'Microsoft::DirectX::Direc t3D::Devic e::.ctor' : cannot import method - a parameter type or the return type is inaccessible
error C3377: 'Microsoft::DirectX::Direc t3D::Devic e::get_Unm anagedComP ointer' : cannot import method - a parameter type or the return type is inaccessible
..and so on.
The same code works fine in VB.NET. How do I create a device in VC++.NET? Any help is appreciated :).
I am having problems creating a directx 9 device in VC++.NET. Here is my code.
PresentParameters *pp = new PresentParameters();
pp->Windowed = true;
pp->SwapEffect = Direct3D::SwapEffect::Disc
Device *device = new Device(0, DeviceType::Hardware, this, CreateFlags::SoftwareVerte
It does not work and generates many errors.
error C3377: 'Microsoft::DirectX::Direc
error C3377: 'Microsoft::DirectX::Direc
..and so on.
The same code works fine in VB.NET. How do I create a device in VC++.NET? Any help is appreciated :).
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
include the d3d9.h header and its good.