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. Message from external app should: Open document and goto line #

Message from external app should: Open document and goto line #

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
4 Posts 3 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.
  • S Offline
    S Offline
    Steve Schaneville
    wrote on last edited by
    #1

    I would like to have an external application supply VC++ with a filename and line number (when a user double-clicks in a window in the external app), and have VC++ open the file and go to the file number. Any ideas about how I might send that information and get VC++ to respond to it?

    L 1 Reply Last reply
    0
    • S Steve Schaneville

      I would like to have an external application supply VC++ with a filename and line number (when a user double-clicks in a window in the external app), and have VC++ open the file and go to the file number. Any ideas about how I might send that information and get VC++ to respond to it?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Search your docs for 'Developer Studio objects', these automation interfaces should allow you to control VC++ from an external application. Ben Burnett "It's all absolutely devastatingly true -- except the bits that are lies" - Douglas Adams

      S 1 Reply Last reply
      0
      • L Lost User

        Search your docs for 'Developer Studio objects', these automation interfaces should allow you to control VC++ from an external application. Ben Burnett "It's all absolutely devastatingly true -- except the bits that are lies" - Douglas Adams

        S Offline
        S Offline
        Steve Schaneville
        wrote on last edited by
        #3

        Thanks! Just what I was looking for. Don't know why I couldn't find this in the docs on my own... You wouldn't happen to have any example code that shows how to create an instance of the 'Developer Studio objects' in the other app (in C++, not VB)? It seems to have something to do with IRunningObjectTable::GetObject(...), but I'm having trouble putting it all together...

        B 1 Reply Last reply
        0
        • S Steve Schaneville

          Thanks! Just what I was looking for. Don't know why I couldn't find this in the docs on my own... You wouldn't happen to have any example code that shows how to create an instance of the 'Developer Studio objects' in the other app (in C++, not VB)? It seems to have something to do with IRunningObjectTable::GetObject(...), but I'm having trouble putting it all together...

          B Offline
          B Offline
          Ben Burnett
          wrote on last edited by
          #4

          No sample :( just a link, take a look at: Getting the most out of IDispatch http://www.codeproject.com/useritems/comdispatchdriver.asp seems to me that it could help you get going in no time flat. Ben Burnett "It's all absolutely devastatingly true -- except the bits that are lies" - Douglas Adams

          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