Click here to Skip to main content
16,004,991 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
Questiontemplate class c2995 operator<< overloading [modified] Pin
ky_rerun17-Apr-07 11:11
ky_rerun17-Apr-07 11:11 
AnswerRe: template class c2995 operator<< overloading Pin
ky_rerun17-Apr-07 19:10
ky_rerun17-Apr-07 19:10 
Questionlinker error in VC6 while linking to VC8 MSXML exports [modified] Pin
chervu17-Apr-07 7:24
chervu17-Apr-07 7:24 
AnswerRe: linker error in VC6 while linking to VC8 MSXML exports Pin
Michael Dunn17-Apr-07 18:00
sitebuilderMichael Dunn17-Apr-07 18:00 
QuestionCombine multiple text files into one ! Pin
snailflying16-Apr-07 14:46
snailflying16-Apr-07 14:46 
QuestionHow to customise IE toolbar Addon [modified] Pin
shivditya16-Apr-07 0:53
shivditya16-Apr-07 0:53 
QuestionIs possible to allocate strictly physical mem. (RAM) instead of page file (virtual mem) Pin
marcelse12-Apr-07 4:49
marcelse12-Apr-07 4:49 
QuestionAdvising to the embedded flash object events Pin
Tomek.Sergey10-Apr-07 13:14
Tomek.Sergey10-Apr-07 13:14 
Hi.
Let us say, we have a banner on some site, embedded as a flash object. In my BHO I need to catch some events from this banner. I do this way:

1. Wait until the document is completed.
2. Enumerate all OBJECT elements.
3. On the needed element perform this:

Code:
<br />
                         CComQIPtr<IHTMLObjectElement> pObj=pElem;<br />
                        CComPtr<IDispatch> pD;<br />
                        pObj->get_object(&pD);<br />
                        if (pD==NULL) return;<br />
                        CComObject<CFlashSunk> *sink;<br />
                        sink=new CComObject<CFlashSunk>();<br />
                       <br />
                        CComQIPtr<IConnectionPointContainer> pCont;<br />
                        HRESULT hr;<br />
                        pCont=pD;<br />
                        CComPtr<IConnectionPoint> pPoint;                        <br />
                        hr = pCont->FindConnectionPoint(ShockwaveFlashObjects::DIID__IShockwaveFlashEvents, &pPoint);<br />
                        if (FAILED(hr)) return;<br />
                        DWORD dwCookie;<br />
                        hr = pPoint->Advise((ShockwaveFlashObjects::_IShockwaveFlashEvents *)sink, &dwCookie);<br />
                        if (FAILED(hr))return;<br />


4. Here the class CFlashSink:
<br />
#import "C:\\WINDOWS\\system32\\Macromed\\Flash\\Flash.ocx"  named_guids <br />
<br />
#include "Debug\Flash.tlh"<br />
<br />
class ATL_NO_VTABLE CFlashSunk :<br />
    public CComObjectRootEx<CComSingleThreadModel>,<br />
    public CComCoClass<CFlashSunk>,<br />
    public IDispatchImpl<ShockwaveFlashObjects::_IShockwaveFlashEvents, &ShockwaveFlashObjects::DIID__IShockwaveFlashEvents,&ShockwaveFlashObjects::LIBID_ShockwaveFlashObjects>    <br />
{<br />
<br />
public:<br />
<br />
<br />
    BEGIN_COM_MAP(CFlashSunk)<br />
        COM_INTERFACE_ENTRY(IDispatch)<br />
        COM_INTERFACE_ENTRY(ShockwaveFlashObjects::_IShockwaveFlashEvents)        <br />
    END_COM_MAP()<br />
<br />
 <br />
    <br />
    STDMETHOD(Invoke)(DISPID, REFIID, LCID, WORD, DISPPARAMS*,VARIANT*, EXCEPINFO*, UINT*);    <br />
    <br />
<br />
    // virtual HRESULT __stdcall raw_OnReadyStateChange (long newState) = 0;<br />
<br />
<br />
    STDMETHOD(OnReadyStateChange) (long newState); <br />
    STDMETHOD(OnProgress) (long percentDone);<br />
    STDMETHOD(FSCommand) (BSTR command, BSTR args);<br />
    STDMETHOD(FlashCall) ( BSTR request);<br />
};<br />


Problem: neither in Invoke nor in FSCommand nothing comes at all!
Where is the trouble ?
QuestionTELECOMMUNICATION Pin
ILHEM5-Apr-07 5:42
ILHEM5-Apr-07 5:42 
Questionhow to add check Box in MMC(through ATL) in Result pan Pin
mo_nica8811-Apr-07 23:54
mo_nica8811-Apr-07 23:54 
Questionargv does not equal string (char*) Pin
XTAL25630-Mar-07 19:45
XTAL25630-Mar-07 19:45 
AnswerRe: argv does not equal string (char*) Pin
Michael Dunn31-Mar-07 19:20
sitebuilderMichael Dunn31-Mar-07 19:20 
GeneralRe: argv does not equal string (char*) Pin
XTAL25631-Mar-07 20:09
XTAL25631-Mar-07 20:09 
Questionatl8.0 backward compatibility issue Pin
Shiva Prasad30-Mar-07 1:08
Shiva Prasad30-Mar-07 1:08 
AnswerRe: atl8.0 backward compatibility issue Pin
George L. Jackson10-Apr-07 16:24
George L. Jackson10-Apr-07 16:24 
QuestionConverting to/from UTF8 Pin
Rob Caldecott29-Mar-07 0:08
Rob Caldecott29-Mar-07 0:08 
AnswerRe: Converting to/from UTF8 Pin
Stuart Dootson29-Mar-07 2:45
professionalStuart Dootson29-Mar-07 2:45 
AnswerRe: Converting to/from UTF8 Pin
Nemanja Trifunovic2-Apr-07 5:26
Nemanja Trifunovic2-Apr-07 5:26 
QuestionHelp causing button click to an ATL contained button... Pin
markjmalin28-Mar-07 4:16
markjmalin28-Mar-07 4:16 
QuestionCreating MPEG-1 from series of JPEG Pin
yudhisthira27-Mar-07 1:05
yudhisthira27-Mar-07 1:05 
Questionmouse position in web form with c# asp.net Pin
kjhuut26-Mar-07 21:18
kjhuut26-Mar-07 21:18 
QuestionQuestion about ATL - add and control Composite control Pin
Yanshof26-Mar-07 11:41
Yanshof26-Mar-07 11:41 
AnswerRe: Question about ATL - add and control Composite control Pin
Christian Graus26-Mar-07 11:46
protectorChristian Graus26-Mar-07 11:46 
GeneralSomeone can help me with this one ? Pin
Yanshof26-Mar-07 18:00
Yanshof26-Mar-07 18:00 
QuestionHow to use listview in vb .net Pin
structures8322-Mar-07 9:44
structures8322-Mar-07 9:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.