|
-
Jan 6th, 2005, 09:34 AM
#1
Thread Starter
Banned
Re: VB: DX: drawing text...
Set ddSurface = DD.CreateSurfaceFromResource(File, Name, DDSD)
automation error... File is "Map Editor.Res" name is "102"
why ???
-
Jan 6th, 2005, 09:53 AM
#2
Ex-Super Mod'rater
Re: VB: DX: drawing text...
For the -2147467259 error the SDK says:
HRESULT: 0x80004005 (2147500037)
Name: E_FAIL
Description: An undetermined error occurred
Severity code: Failed
Facility Code: FACILITY_NULL (0)
Error Code: 0x4005 (16389)
Personally I've never used CreateSurfaceFromResource() I only ever use CreateSurfaceFromFile().
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Jan 6th, 2005, 10:11 AM
#3
Thread Starter
Banned
Re: VB: DX: drawing text...
i tried it like here
http://216.5.163.53/DirectX4VB/Tutor...D_ResFiles.asp
on this line it says
Let DDSD.lWidth = LoadResPicture(Name, vbPicTypeBitmap).Width
it cant find the resource???????????!!!!!!!11
its there!!!
-
Jan 6th, 2005, 06:09 PM
#4
Re: VB: DX: drawing text...
Try CreateSurfaceFromFile.
Sorry I haven't posted in here for awhile. Girl problems.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|