Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

Alex Cramer

@Alex Cramer
About
Posts
59
Topics
24
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Adding text to toolbar buttons into a standard MFC SDI App
    A Alex Cramer

    How to display it? I called SetButtonText, but nothing was changed...

    C / C++ / MFC c++ tutorial question

  • How to display standard shell properties for certain file?
    A Alex Cramer

    Subj (I need properties window like in Explorer).

    C / C++ / MFC linux tutorial question

  • IWebBrowser2 from IHTMLWindow2 - ?
    A Alex Cramer

    Hi all! My purpose: invoke my app from Internet Explorer's context menu, then my app must to connect to IE (IWebBrowser2) events. Step 1: Implementing script handler:

    var oISRC = new ActiveXObject("isrc.Application");
    var ieParentWin = external.menuArguments;
    oISRC.Initialize(ieParentWin);

    Step 2: Creating handler inside my app:

    STDMETHODIMP CIsrcApp::Initialize(VARIANT *vBrowser)
    {
    LPDISPATCH pDisp = (LPDISPATCH) (variant_t) (*vBrowser);
    CComQIPtr spWin;
    spWin = pDisp;
    spWin->alert(bstr_t("Test!"));
    spWin->moveBy(100, 100);

    return S\_OK;
    

    }

    Test works. Question: how to obtain IWebBrowser2* from IHTMLWindow2* ??

    C / C++ / MFC question tools tutorial

  • Whats the equivalent of CString.m_pchData in VS.NET?
    A Alex Cramer

    What there used instead?

    C / C++ / MFC csharp visual-studio c++ help question

  • Getting absolute URL from relative
    A Alex Cramer

    I have a Web Browser control and want to download external files like images, *.css, *.js and etc. The SRC attribute of can contains absolute and relative URLs. How to correctly obtain full URL for these files? May be there is a ready system function to download such files? I tried URLDownloadToFile, may be I must try URL monikers? Thanks! </x-turndown>

    C / C++ / MFC javascript css tutorial question

  • HTML Syntax Hilighting
    A Alex Cramer

    Thanks!!!!!!!!!! Scintella is EXACTLY THAT I looking for!!!!

    C / C++ / MFC html json help question

  • HTML Syntax Hilighting
    A Alex Cramer

    Both these projects too large. I need fast & small HTML viewer, not an editor... May be something else?

    C / C++ / MFC html json help question

  • HTML Syntax Hilighting
    A Alex Cramer

    Thanks! I will try it!

    C / C++ / MFC html json help question

  • HTML Syntax Hilighting
    A Alex Cramer

    Somebody help me! I need to implement HTML Syntax hilighting in application, which written in pure API. Are there exist the ready solutions? Thanks!

    C / C++ / MFC html json help question

  • Implementing IDispatch::GetIDSOfNames
    A Alex Cramer

    Yeah... My nick is ADK there...

    COM question

  • Implementing IDispatch::GetIDSOfNames
    A Alex Cramer

    Sorry, I thought I must allocate memory for rgDispId. Now all correct! P.S. Russian programmers answered me for the my last 4 questions. Hm...

    COM question

  • Implementing IDispatch::GetIDSOfNames
    A Alex Cramer

    Yes, thanks, but can I ask some more about memory management. How to allocate memory in IDispatch::GetIDSOfNames implementation? (hich function is needed?)

    COM question

  • Implementing IDispatch::GetIDSOfNames
    A Alex Cramer

    I need to implement IDispatch::GetIDSOfNames without creating type library, i.e. I need to return certain ID for certain name. How??

    COM question

  • HELP ME TO FIND AN ERROR
    A Alex Cramer

    Thanks. It's a strange thing occured. Yesterday, catch operator don't helped me (was Exception MessageBox). Today it works, both code:

    try{spFrameDoc = spFrame->document; }
    catch(_com_error e)
    {
    TRACE("Doc unavailable! %s\n", e.ErrorMessage());
    }

    try{spFrameDoc = spFrame->document; }
    catch(...)
    {
    TRACE("Doc unavailable!\n");
    }

    :eek: And pair questions more. 1) Under debugger I saw

    First-chance exception in IEEnumWindows.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.

    Is it correct? (I handled it). 2) Is it means, that it's impossible to access certain documents for my app? Or there is any way to pass security troubles?

    COM help com debugging

  • HELP ME TO FIND AN ERROR
    A Alex Cramer

    I'm trying to connect to IE events, and made quick & dirty demo ( it's here ). TROUBLE: when I'm getting document object of the IE frame, in which loaded document from another domain (not the same as top-level frame), an error occurs. And I can't to handle it correctly!! In debug mode message box with kernel exception popups... Demo Usage: 1) Run IE 2) Type address of page with frames from different domains ( www.search.msn.com for ex. ) 3) Press "Connect to OnMouseMove Button". When connected, if you will track mouse hover the doc, you woll listen short beeps. Help me to correctly handle an error in debug mode, when trying to access documents at search.msn.com and similar sites!!! Thanks!

    COM help com debugging

  • HELP ME TO FIND AN ERROR
    A Alex Cramer

    I'm trying to connect to IE events, and made quick & dirty demo ( it's here ). TROUBLE: when I'm getting document object of the IE frame, in which loaded document from another domain (not the same as top-level frame), an error occurs. And I can't to handle it correctly!! In debug mode message box with kernel exception popups... Demo Usage: 1) Run IE 2) Type address of page with frames from different domains ( www.search.msn.com for ex. ) 3) Press "Connect to OnMouseMove Button". When connected, if you will track mouse hover the doc, you woll listen short beeps. Help me to correctly handle an error in debug mode, when trying to access documents at search.msn.com and similar sites!!! Thanks!

    C / C++ / MFC help com debugging

  • Access denied when trying to access IE documents in frames, in which loaded docs from different domains
    A Alex Cramer

    I'm hosting Web Browser in my app. When document contains frames with pages from different domains, it causes acces denied (COM Error) when trying to access document in frame. How to avoid it?? I read MSDN article "Permission Denied Error Message When Scripting Across Frames", but there was written about scripts only...

    C / C++ / MFC com hosting help tutorial question

  • Enumerating IE Frames and connecting to its events
    A Alex Cramer

    How to correctly implement subj?

    C / C++ / MFC tutorial question

  • Connecting to IE Events
    A Alex Cramer

    You're not right, BODY object accessable before OnDocumentComplete firing. I'm trying to connect to BODY object when click button, and it was available before OnDocumentComplete!!! When I must connect to it???

    COM question

  • Connecting to IE Events
    A Alex Cramer

    I need to connect to some BODY object events as soon as possible. WHEN I must do it, check BODY availability by timer? Events like OnDonloadComplete comes too later... Question #2: if document contains frames, I need to enumerate it and connect to each frame events. Someone has code sample??

    COM question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups