CBindStatusCallback<>::Download & IObjectWithSite 
Author Message
 CBindStatusCallback<>::Download & IObjectWithSite

Hello everyone,

I am trying to asyncrhronously download a file from an ATL ActiveX
Control.  Everything works when I implement IOleClientSite and
CComControl in my control.

But...if I instead implement IObjectWithSite, things don't work.
IE calls my SetSite() method and passes me "m_spUnkSite".  I pass
this value into CBindStatusCallback<>::Download as the 4rth parameter.
The failure scenario is simply that my onData function never gets

Is it possible to use CBindStatusCallback<>::Download
with IObjectWithSite...or do I HAVE to implement IOleClientSite??
I've also tried to pass in NULL rather than m_spIOleClientSite
and the failure mode is the same...I simply never get called.

How is the 4rth parameter used?

Below is some pertinent code...

ANY help would be GREATLY appreciated!!



Inside IObjectWithSite::SetSite()
   // QueryInterface for IOleClientSite
   m_spIOleClientSite = m_spUnkSite;
   ASSERT( m_spIOleClientSite );

Inside another method
   CComBSTR oURLGetEXE = " http://www.*-*-*.com/ ;;
   CBindStatusCallback<myclass>::Download( this,
                                             FALSE );

Sent via Deja.com

Tue, 15 Jul 2003 07:52:15 GMT  
 [ 1 post ] 

 Relevant Pages 

1. CBindStatusCallback<>::Download problem with server-side compression

2. ***&&&>>> HELP --- CXL --- HELP <<<&&&****

3. <<<<<<<Parsing help, please>>>>>>>>

4. File Format conversion, ascii freeform -->.csv <-->.wk1<-->dbf<-->?HELP

5. operator &, |=, |, >>, <<

6. <<<>>>Need C code advice with functions and sorting.<<<>>>

7. <><><>HELP<><><> PCMCIA Motorola Montana 33.6

8. >>>Windows Service<<<

9. asynchronous download, CBindStatusCallback and threads.

10. CBindStatusCallback::Download and local cache

11. CBindStatusCallback::Download and local cache

12. Purpose of <%Root%>/Assembly/Download


Powered by phpBB® Forum Software