那位懂C++和dephi的朋友帮忙转下这个代码,把下面的C++代码转成DELPHI的
// IMyIEUnknow.h: interface for the IMyIEUnknow class.
//
//////////////////////////////////////////////////////////////////////#if !defined(AFX_IMYIEUNKNOW_H__BCBEA441_D89E_4D2E_B7B9_0ACD800CD3F1__INCLUDED_)
#define AFX_IMYIEUNKNOW_H__BCBEA441_D89E_4D2E_B7B9_0ACD800CD3F1__INCLUDED_#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ocidl.h"
#include "atlbase.h"extern const IID IID_MYIEClient;
extern const IID IID_MYIEServer;class  __declspec(uuid("a893efb0-d4fe-4ade-9245-55d3af9684ea")) IMyIEClient;
  
class IMyIEServer;/*---------------------------defination for client interface-----------------------*///=============================================================================================
// Other interface that the plugin may also want to implement (Compatiable with IE)
// 1. IObjectWithSite : Any plugin that wants to interact with the browser window 
// : inside myie2 shall implement this interface.
// Note: Unlike IE, the IObjectWithSite::SetSite will be called each time
// : a browser windows inside myie2 is activated.
//
// 2. IDeskBand : Any plugin that wants to have a window (mostly a toolbar) displayed
// : inside myie2 top panel, left panel or the bottom panel should 
// : implement this interface. See MSDN for more help.
//
//  3. IInputObject : Any plugin that wants to handle user input should implement this 
// : interface. See MSDN for more help.
//  4. IOleCommandTarget: Any plugin wants to add a button,or menu, to myie2 plugin bar shall implement
//   interface, when the button,or menu is clicked, the IOleCommandTarget::Exec will 
//   be called.
//=============================================================================================//=============================================================================================
// Interface name : IMyIEClient
// Description     : MyIE plugin should at least implement this interface
// : Note, it is derived from IUnknow, which means the server will 
// : be able to query other interface through this one .
// : 
//=============================================================================================class IMyIEClient:public IUnknown  
{
protected:
// DWORD m_dwRef;
public:
// =============================================================================================
// Function name : Init
// Description     : It is called when the plugin is loaded
// Return type : BOOL
// Argument         : IMyIEServer* pServer : A interface pointer of MyIEServer, client can query any other interface through this one
// =============================================================================================
virtual BOOL Init(IMyIEServer* pServer) = 0;  // =============================================================================================
// Function name : Exit
// Description     : It is called when the plugin is unloaded
// Return type : BOOL
// Argument         : 
// =============================================================================================
virtual BOOL Exit() = 0; // called when the plugin is unloaded

// =============================================================================================
// Function name : Config
// Description     : It is called when user want to config the plugin
// Return type : BOOL
// Argument         : HWND hParent: It should be used as the parent window of client config window
// =============================================================================================
virtual BOOL Config(HWND hParent) = 0;};
/*------------------------------------defination for server interface---------------------*/
struct MyIEInfo
{
HWND hMainWnd;
HMENU hMainMenu;
};
class IMyIEServer:public IUnknown  
{
public:
virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, void** ppvObject) = 0;
virtual ULONG STDMETHODCALLTYPE AddRef() = 0;
virtual ULONG STDMETHODCALLTYPE Release() = 0;
virtual MyIEInfo* STDMETHODCALLTYPE GetInfo()=0;
IMyIEServer(){};
virtual ~IMyIEServer(){};
};
#endif // !defined(AFX_IMYIEUNKNOW_H__BCBEA441_D89E_4D2E_B7B9_0ACD800CD3F1__INCLUDED_)