Thread: a browser control in a ATL DLL

  1. #1
    Registered User
    Join Date
    Nov 2005

    a browser control in a ATL DLL

    well, I am a newbie in C++ and I have some trouble to make an atl dll : in fact I want to create an atl dll called htmretiever ,using VC 7, with one single method retrieve(url as string).
    When I call the retrieve method using vbscript like this :

    set myObj = createObject("htmretiever.retriever")
    content = myObj.retrieve("")

    I want that the Atl object call a hidden browser control and tell him to browse the url given as parameter and then return the HTML content as string to my vbscript. I know that there is others method to get the content of the web page, but for some reason I need to call the ibrowser object to do this work.
    I think that my dll should implement CWindowImpl but I don't know how to write the DLL...
    Please help me and thanks in advance.

  2. #2
    Registered User
    Join Date
    Nov 2005
    Well no body can help me whith this!!

  3. #3
    Registered User
    Join Date
    Aug 2002
    Hermosa Beach, CA
    So you want the html text in your content variable, and you want to call this from vbscript? Do you want to write this yourself, or are you okay with using what is already there? I.e. I think this is what you want:

    targetURL = ""

    Set xml = CreateObject("Microsoft.XMLHTTP")

    xml.Open "GET", targetURL, False
    Wscript.Echo xml.Responsetext
    The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 12-01-2008, 10:09 AM
  2. Web Browser Control Help
    By dcboy in forum C# Programming
    Replies: 0
    Last Post: 10-22-2006, 09:25 AM
  3. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  4. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM
  5. Using AVI's from dll in animation common control
    By Unregistered in forum Windows Programming
    Replies: 0
    Last Post: 01-16-2002, 01:05 PM