Hi,
My goal: size different map of boxes, which are of different colors, redrawing realtime as it's content is changing. It should be as fast as possible.
My tries:
> Gdi:: too slow
> Gdi with direct pixel access (dPa), boxes created as two cycles of pixels:: too slow
> Gdi, map created as only pixel map dPa, resized by Gdi to boxes:: slow for bigger maps
> DD resized pixel map dPa ... bit faster as gdi
> DD, boxes precreated as surfaces :: fast enough, see problem no 1
> D3D... not initialized, see problems with initialisation of d3d
Problems:
1) how to stop forms invalidating or erasing and repainting
I tried:
> ValidateRect from user32, no effect
> override (oR) OnPaint & OnPaintBackground ... incomplete effect (maybe invalidate oR needed)
> SetStyle(ControlStyles.UserPaint, True), SetStyle(ControlStyles.AllPaintingInWmPaint, True) :: no effect at all
2) how to build directdraw project in order to run that on machine with dx9, without message "direct draw not installed in GAC (global assembly cache)
if you can help me... I would be very glad
download and see my test projects :: direct draw, direct3d,
if you have your d3d demo running with dx9, in visual basic 2005 express, give me link

My project, help (directdraw, direct3d, gdi)
kian_z20
Gerhard
Sorry but I'm out of ideas. I can only guess at a bad SDK or glitched DirectX install somehow.
The fact that all your code is failing at the same point suggests to me that something is very wrong.
Unisntall/Reinstall the SDK Try to upgrade your graphic driver
B. Gargle
Something is very odd.
Can you run the DirectX web installer just to make sure you have all the valid runtimes on your machine and then try again.
cowanm
I'm running out of ideas now.
I just ran tutorial 1 in VB Express just fine.
Couple of things.
1. Are you on the final release version of VB Express
2. What graphics card do you have (though usually the compiled samples fail too if its a hardware problem)
SufferTheFools
cydrakonis
i will try to find some d3d and vbexpress installation forum or i don't know ..
if no success i will do all that stuff in direct draw, trying your first advice with
overriding form paint and erasebackground...
d3d! thanks for your help...
Steve Cook MSFT
Microsoft Visual Studio 2005
Version 8.0.50727.42 (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727
Installed Edition: VB Express
Microsoft Visual Basic 2005 76541-000-0000011-00124
2)
Intel Corporation 810 Graphics Controller Hub, but samples which are compilled run very well and dxdiag d3d test too...
I can't catch where it is...
cerebrate
Problem1. I think you have to set your background to opaque or somethng to stop winforms from clearing the background for you. You are better asking this question in the winforms forum
Problem2. I'm not sure what is wrong with the code you are using, but the VB.Net SDK samples I converted work jsut fine so try starting with those http://www.thezbuffer.com/articles/315.aspx