Re: How to write in VB.NET from this code?
- From: "Cor Ligthert [MVP]" <notmyfirstname@xxxxxxxxx>
- Date: Tue, 13 Feb 2007 12:38:51 +0100
Tom,
You old VB6 guys show in fact often a lack of that.
You all are experts in taken all kind of interfaces, Api's or whatever for
what is now mostly an easier to maintenance class not in the language but in
the .Net and therefore for everybody.
It was just the thought I wanted to deal with you.
(And tickling for a reaction from Herfried)
:-)
Cor
"Tom Shelton" <tom_shelton@xxxxxxxxxxxxxxxxxx> schreef in bericht
news:zZGdnT7Q2bWq5kzYnZ2dnUVZ_hqdnZ2d@xxxxxxxxxxxxxx
On 2007-02-13, Cylix <cylix2000@xxxxxxxxx> wrote:
The following is a c# code about using browser helper object(BHO)
anyone know in VB.NET?
[
ComVisible(true),
InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
Guid("FC4801A3-2BA9-11CF-A229-00AA003D7352")
]
public interface IObjectWithSite
{
[PreserveSig]
int SetSite([MarshalAs(UnmanagedType.IUnknown)]object site);
[PreserveSig]
int GetSite(ref Guid guid, out IntPtr ppvSite);
}
Thanks a lot.
hmmm, something like:
< _
ComVisible(true), _
InterfaceType(ComInterfaceType.InterfaceIsIUnknown), _
Guid("FC4801A3-2BA9-11CF-A229-00AA003D7352") _
Public Interface IObjectWithSite
<PreserveSig> _
Function SetSite _
(<MarshalAs(UnmanagedType.IUnknown)> site As Object) As Integer
<PreserveSig> _
Function GetSite _
(ByRef guid As Guid, ByRef ppvSite As IntPtr) As Integer
End Interface
Anyway, that should be fairly close :)
--
Tom Shelton
.
- Follow-Ups:
- Re: How to write in VB.NET from this code?
- From: Tom Shelton
- Re: How to write in VB.NET from this code?
- References:
- How to write in VB.NET from this code?
- From: Cylix
- Re: How to write in VB.NET from this code?
- From: Tom Shelton
- How to write in VB.NET from this code?
- Prev by Date: Re: DataTable or Array
- Next by Date: Re: Secure OleDb Connection to a Microsoft Excel Workbook
- Previous by thread: Re: How to write in VB.NET from this code?
- Next by thread: Re: How to write in VB.NET from this code?
- Index(es):
Relevant Pages
|