I have a code snippet and it will not compile.
PresentParameters *pp = new PresentParameters();
pp->Windowed = true;
pp->SwapEffect = SwapEffect:
iscard;
this->m_Device = new Device(0, DeviceType::Hardware, target, CreateFlags::SoftwareVertexProcessing, pp);
"target" is a System::Windows::Forms::Control object. The constructor seems to be ok and all data being passed to it as well. I get this compile-time error:
error C2664: 'Microsoft:
irectX:
irect3D:
evice:
evice(int,Microsoft:
irectX:
irect3D:
eviceType,System::IntPtr,Microsoft:
irectX:
irect3D::CreateFlags,Microsoft:
irectX:
irect3D:
resentParameters __gc * __gc[])' : cannot convert parameter 5 from 'Microsoft:
irectX:
irect3D:
resentParameters __gc *' to 'System::IntPtr'
This makes no sense because in this constructor there is no parameter that needs to be an IntPtr... the constructor is this
Device(int, DeviceType, Control __gc *, CreateFlags, PresentParameters __gc * __gc[]);
Does anyone know why this will not compile?
PresentParameters *pp = new PresentParameters();
pp->Windowed = true;
pp->SwapEffect = SwapEffect:
this->m_Device = new Device(0, DeviceType::Hardware, target, CreateFlags::SoftwareVertexProcessing, pp);
"target" is a System::Windows::Forms::Control object. The constructor seems to be ok and all data being passed to it as well. I get this compile-time error:
error C2664: 'Microsoft:
This makes no sense because in this constructor there is no parameter that needs to be an IntPtr... the constructor is this
Device(int, DeviceType, Control __gc *, CreateFlags, PresentParameters __gc * __gc[]);
Does anyone know why this will not compile?