Device creation creates an error

JustMe84
11-14-2005, 03:37 PM
This code is contained within a class

EngineProperties.Windowed = True
EngineProperties.BackBufferCount = 1
EngineProperties.BackBufferHeight = 768
EngineProperties.BackBufferWidth = 1024
EngineProperties.SwapEffect = SwapEffect.Copy
EngineProperties.PresentationInterval = PresentInterval.Immediate
EngineProperties.BackBufferFormat = Format.A8R8G8B8
EngineProperties.AutoDepthStencilFormat = DepthFormat.D32
EngineProperties.EnableAutoDepthStencil = True

D3DHardware = New Device(0, DeviceType.Hardware, Form1.Handle, DevCreate, EngineProperties)

and it produces the following error at runtime

The specified module could not be found. (Exception from HRESULT: 0x8007007E)

i have no idea why, help would be appreciated.

ardman
11-16-2005, 01:07 AM
Have you added the References to Microsoft DirectX etc. to your project?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum