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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Help with VC & IE

Help with VC & IE

Scheduled Pinned Locked Moved C / C++ / MFC
helpcsharpvisual-studiocombeta-testing
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cabadam
    wrote on last edited by
    #1

    OK... I had a program (originally written using VC 6.0) that, as part of its function, retrieves values from an open Internet Explorer window. However, when I compile the SAME EXACT code that works in VC6 in VS.NET, the retrieve function fails. In the code, once I get the IE window, I check for frames: IDispatchPtr dis; IHTMLDocument2Ptr doc; spBrowser->get_Document(&dis); //spBrowser is earlier declared and initialized dis->QueryInterface(&doc); IHTMLFramesCollection2* frames; long num; doc->get_frames(&frames); /* THIS IS THE PROBLEM if (frames == NULL) ///failed else { .... } In VC6, the get_frames function returns a valid address everytime, whether it is a framesize of 1, or 2 or whatever... However, when compiled in VS.NET, 'frames' ALWAYS ends up NULL. What would cause this? I am using the VS.net Beta 2. Is this a known problem that is fixed in the final release? Is there a solution?? Or is the problem something else entirely? This was tested and confirmed using both IE5.5 and IE6. Thanks! Adam cabadam@houston.rr.com

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

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