Results 1 to 2 of 2

Thread: Help with ODL

  1. #1

    Thread Starter
    Addicted Member Xiphias3's Avatar
    Join Date
    Jan 2009
    Location
    Clarendon, Jamaica
    Posts
    188

    Help with ODL

    Hello.
    I'm trying to make a TLB for the ITextHost interface. What ive come up with compiles OK, but when i do the "Implements ITextHost" line, vb isnt letting me define the functions of the interface. Any idea?
    Attached Files Attached Files

  2. #2

    Thread Starter
    Addicted Member Xiphias3's Avatar
    Join Date
    Jan 2009
    Location
    Clarendon, Jamaica
    Posts
    188

    Re: Help with ODL

    It seems the functions defined in the TLB must return HRESULT. With that said, how is a function supposed to return a long and a HRESULT?

    EDIT:
    Well, this in ODL:

    Code:
    HRESULT TxGetDC([out, retval] long* hDC);
    Gives me this in VB:
    Code:
    Public Function ITextHost_TxGetDC() As Long
    End Function
    So im gonna try and work with "[out, retval]" and see if i can get this thing to work.
    Last edited by Xiphias3; Apr 26th, 2010 at 02:35 PM.

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