Results 1 to 13 of 13

Thread: VB: DX: drawing text...

Hybrid View

  1. #1

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Re: VB: DX: drawing text...

    Set ddSurface = DD.CreateSurfaceFromResource(File, Name, DDSD)
    automation error... File is "Map Editor.Res" name is "102"

    why ???

  2. #2
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    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.

  3. #3

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    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!!!

  4. #4
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    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
  •  



Click Here to Expand Forum to Full Width