Re: Compiler error creating managed c++ directx app
From: Rich [Microsoft Direct3D MVP] (legalize+jeeves_at_mail.xmission.com)
Date: 04/22/04
- Next message: Mark Snyder: "Re: Compiler error creating managed c++ directx app"
- Previous message: Mark Snyder: "Compiler error creating managed c++ directx app"
- In reply to: Mark Snyder: "Compiler error creating managed c++ directx app"
- Next in thread: Mark Snyder: "Re: Compiler error creating managed c++ directx app"
- Reply: Mark Snyder: "Re: Compiler error creating managed c++ directx app"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 22 Apr 2004 12:20:44 -0700
[Please do not mail me a copy of your followup]
"Mark Snyder" <snyderm@otc.edu> spake the secret code
<elZDW6IKEHA.3920@TK2MSFTNGP10.phx.gbl> thusly:
>I'm trying to create a simple program using managed C++ and DirectX. I
>can't even get started because I can't get my program to compile, when all
>I'm doing is trying to create a Device object.
>
>Here is the source code I am using:
>System::Void InitializeGraphics()
>{
> PresentParameters* pp = new PresentParameters();
> pp->Windowed = true;
> pp->SwapEffect = SwapEffect::Discard;
> pDevice = new Device(0, DeviceType::Hardware, this,
>CreateFlags::SoftwareVertexProcessing, pp);
>}
I thought in managed C++ you had to say __gcnew and not new?
--
"The Direct3D Graphics Pipeline"-- code samples, sample chapter, FAQ:
<http://www.xmission.com/~legalize/book/>
Pilgrimage: Utah's annual demoparty
<http://pilgrimage.scene.org>
- Next message: Mark Snyder: "Re: Compiler error creating managed c++ directx app"
- Previous message: Mark Snyder: "Compiler error creating managed c++ directx app"
- In reply to: Mark Snyder: "Compiler error creating managed c++ directx app"
- Next in thread: Mark Snyder: "Re: Compiler error creating managed c++ directx app"
- Reply: Mark Snyder: "Re: Compiler error creating managed c++ directx app"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|