File Not Found, even though it exists!
Hi I'm making an MMORPG in DirectX7 (NOT DirectX9, simply because DirectX7 is easier). I have made a 261-frame rendered intro sequence, and I have placed all these images into a DLL, which works fine and has absolutely no problems whatsoever.
The problem is, when I extract the images to disk, then try and read them again in a surface loader, DirectDraw returns a File Not Found exception, even though the previous line of code tested the file's existence and found that it really did exist!
Here's the code:
Sub LoadIntro()
Dim k
Dim ddsdAs DDSURFACEDESC2
ddsd.lFlags = CONST_DDSURFACEDESCFLAGS.DDSD_CAPSOr CONST_DDSURFACEDESCFLAGS.DDSD_HEIGHTOr CONST_DDSURFACEDESCFLAGS.DDSD_WIDTH
ddsd.ddsCaps.lCaps = CONST_DDSURFACECAPSFLAGS.DDSCAPS_OFFSCREENPLAIN
ddsd.lHeight = 600
ddsd.lWidth = 800
For k = 1To LG_IG.Num_Frames
LG_IG.Image(k).Save(My.Computer.FileSystem.SpecialDirectories.AllUsersApplicationData +"\LegerDomain\intro_" & k.ToString &".bmp")
IfMy.Computer.FileSystem.FileExists(My.Computer.FileSystem.SpecialDirectories.AllUsersApplicationData +"\LegerDomain\intro_" & k.ToString &".bmp") =FalseThenEnd' The application NEVER exits at this point
IntroSurface(k) = DD.CreateSurfaceFromFile(
My.Computer.FileSystem.SpecialDirectories.AllUsersApplicationData &"\LegerDomain\intro_" & k.ToString &".bmp", ddsd)' This line invokes a File not Found exception, although the file exists!NextEndSubAny suggestions?

