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. Open Webpage in a new window from code

Open Webpage in a new window from code

Scheduled Pinned Locked Moved C / C++ / MFC
comquestion
2 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.
  • M Offline
    M Offline
    Mathias S
    wrote on last edited by
    #1

    To open a webpage from code i can to this ShellExecute(NULL, _T("open"), _T("http://www.codeproject.com"), NULL, NULL, SW_SHOWNORMAL); But if I already have some web pages open in IE, The page is opened in one of them. And I want a new instance of IE ( or whatever browser the user have installed ) to be opened. Is there any easy way of doing that? /Mathias

    M 1 Reply Last reply
    0
    • M Mathias S

      To open a webpage from code i can to this ShellExecute(NULL, _T("open"), _T("http://www.codeproject.com"), NULL, NULL, SW_SHOWNORMAL); But if I already have some web pages open in IE, The page is opened in one of them. And I want a new instance of IE ( or whatever browser the user have installed ) to be opened. Is there any easy way of doing that? /Mathias

      M Offline
      M Offline
      Mathias S
      wrote on last edited by
      #2

      I Found this article. http://www.codeproject.com/internet/urlnewwindow.asp problem fixed. Should have searched the site better from the start. :) /Mathias

      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