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?
Printable View
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?
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:
Gives me this in VB:Code:HRESULT TxGetDC([out, retval] long* hDC);
So im gonna try and work with "[out, retval]" and see if i can get this thing to work.Code:Public Function ITextHost_TxGetDC() As Long
End Function