Hi to all!Im new, im from spain, that im sorry for my english.
I have a problem with DX7/D3D hybrid engine. im triying to use it on a Dx7 game that im modding. Well,when i init engine i have a Runtime error:
the err.number is 2005532572. I think it happens for a conflict whit the library dx7vb.dll. Well, I downloaded the hybrid example located in vb lucky web. It works perfectly for me.
When i tryed to discover where the problem was, i saw the problem was here:
Code:
With SurfaceDesc
.lFlags = DDSD_CAPS
'.ddsCaps.lCaps = DDSCAPS_PRIMARYSURFACE Or DDSCAPS_3DDEVICE Or DDSCAPS_VIDEOMEMORY' Or DDSCAPS_FLIP Or DDSCAPS_COMPLEX
.ddsCaps.lCaps = DDSCAPS_PRIMARYSURFACE Or DDSCAPS_3DDEVICE Or DDSCAPS_FLIP Or DDSCAPS_COMPLEX Or DDSCAPS_VIDEOMEMORY
End With
Then i have found the line .ddsCaps.lCaps = DDSCAPS_PRIMARYSURFACE Or DDSCAPS_3DDEVICE Or DDSCAPS_FLIP Or DDSCAPS_COMPLEX Or DDSCAPS_VIDEOMEMORY without
Code:
Or DDSCAPS_FLIP Or DDSCAPS_COMPLEX
works perfectly and error dont happens. But hybrid engine dont works without DDSCAPS_FLIP DDSCAPS_COMPLEX. So i have a problem that cant solve off mi way. Anyone can help me?
Thanks a lot!
Edit: Im tryed to remove reference dx7 from visual basic, close VB6, reopen VB6 and add dx7 reference again. Too im tryed to put dx7vb.dll in program file and use that reference. The problem is always the same. But hybrid engine i downloaded dont give any problem.
Edit2: obiusly Dim SurfaceDesc As DDSURFACEDESC2
Edit3: if i had in .lFlags Or DDSD_BACKBUFFERCOUNT the err.number is 2005532447