Implement Network Ants "Use XXXXXX Download" features in IE Menu menu

zhaozj2021-02-17  38

Implement Network Ants "Use XXXXXX Download" features in IE Menu menu

[Author: 111222 Add Time: 2001-9-5 11:44:23]

Less nonsense, open VC , create a new ATL's DLL project, project name catchtxt

After seeing the wizard, I click Finish directly, and then add an interface to catchtxt: New ATL Object

The interface name is called Catch, then fill a method for this Catch interface: method is AddTxtTxt parameter BSTR BSTR

OK, open the Catch interface via Script and then call the Addtxt method.

We will make the addtxt pop-up dialog in successfully.

STDMETHODIMP CCATCHT :: Addtxt (BSTR BSTR)

{

Uses_Conversion;

CHAR * STR = OLE2A (BSTR);

MessageBox (NULL, STR, "from IE", MB_OK); // << ---

Return S_OK;

}

The desired HTM is written below