DirectDraw and DirectInput same time

gpmaker
08-16-2004, 11:12 PM
Here's wut i'm doing:

Imports Microsoft.DirectX.DirectDraw
Imports Microsoft.DirectX.DirectInput
.....

dim dev as device


Now, I get an error because device is used by both directdraw and directinput...how can i solve this?

gpmaker
08-16-2004, 11:19 PM
Nevermind, I solved it.....very easy
whenever there is something that is used by both DirectDraw and DirectInput(or DirectSound or watever), you have to define variables with the full name

Dim dev As Microsoft.DirectX.DirectDraw.Device

---------------------------------
dev.SetCooperativeLevel(Me, Microsoft.DirectX.DirectDraw.CooperativeLevelFlags.FullscreenExclusive )

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum