Awarded

Load javascript into BHO (Internet Explorer AddOn)

Hey,

I am interested to load my JS into BHO c++ source.

Here is the source of BHO

(its IE addon) [url removed, login to view]

Your job would be just adding function to load javascript into BHO so its loading on every page. Someone suggested me this code will do the job:

IHTMLDocument* pHTMLDoc = /* however you can get the IHTMLDocument */

DISPID idMethod = 0;

OLECHAR FAR* sMethod = L"DoSomething";

IDispatch* pScript = 0;

pHTMLDoc->get_Script(&pScript);

HRESULT hr = pScript->GetIDsOfNames(IID_NULL, &sMethod, 1, LOCALE_SYSTEM_DEFAULT,

&idSave);

if (SUCCEEDED(hr)) {

// invoke assuming no method parameters

DISPPARAMS dpNoArgs = {NULL, NULL, 0, 0};

hr = pScript->Invoke(idSave, IID_NULL, LOCALE_SYSTEM_DEFAULT, DISPATCH_METHOD,

&dpNoArgs, NULL, NULL, NULL);

}

pScript->Release();

pHTMLDoc->Release();

Thats for javascript invoke.

I hope it helps,

you can tell me how much is price for adding JS into BHO example.

Best Regards

Skills: C++ Programming

See more: bho javascript, bho example, writing bho plain, bho get_script, bho load, bho javascript function, internet explorer bho javascript, javascript bho, BHO, www internet job, writing job on internet, job writing javascript, internet code, how to get writing job on internet, how to get into writing, code internet, best writing on the internet, load page javascript, http parameters javascript, javascript null, javascript page load, addon page, price javascript, load page, bho code

About the Employer:
( 0 reviews ) Solin, Croatia

Project ID: #2558056

1 freelancer is bidding on average $30 for this job

creatorul

Hired by the Employer

$30 USD in 5 days
(16 Reviews)
6.4