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. Other Discussions
  3. Article Writing
  4. Application Architecture

Application Architecture

Scheduled Pinned Locked Moved Article Writing
architecturequestion
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.
  • B Offline
    B Offline
    beowulfagate
    wrote on last edited by
    #1

    I've been trying to architect an application that will expose an object model similar to MS Office Applications. It will have a Top-level Application Object and some Document objects. I've been at this for nearly a week now and I have discarded everything I've tried. Any suggestions??

    E 1 Reply Last reply
    0
    • B beowulfagate

      I've been trying to architect an application that will expose an object model similar to MS Office Applications. It will have a Top-level Application Object and some Document objects. I've been at this for nearly a week now and I have discarded everything I've tried. Any suggestions??

      E Offline
      E Offline
      Erik Thompson
      wrote on last edited by
      #2

      Break it down into sections. What you want to expose, what you need to expose. Then sub group them into objects and collections. Then you pretty much have your DOM you just have to supply the methods, properties, and abilities you want them to do and have them interact with your application. Cheers, -Erik

      B 1 Reply Last reply
      0
      • E Erik Thompson

        Break it down into sections. What you want to expose, what you need to expose. Then sub group them into objects and collections. Then you pretty much have your DOM you just have to supply the methods, properties, and abilities you want them to do and have them interact with your application. Cheers, -Erik

        B Offline
        B Offline
        beowulfagate
        wrote on last edited by
        #3

        This is what I'vd got so far. public sub main() dim app as new App app.run end sub public class App private frm as new system.windows.forms.form private mDocs as new DocumentCollection 'Documents Collection public sub Run() application.run(frm) end sub end class public class DocumentCollection inherits CollectionBase 'Omitted for brevity, Normal CollectionBase implementation end class Question is: How do I get the currently running instance of the App Class from another application? I would like to be able to allow other applications to get my App Object through calls like GetObject(,"Excel.Application") returns the currently running instance of an Excel.Application Object. Is there a .NET method similar to VB'6 GetObject? Is there also a .NET Method similar to RegisterActiveObject? Thanks.:)

        J 1 Reply Last reply
        0
        • B beowulfagate

          This is what I'vd got so far. public sub main() dim app as new App app.run end sub public class App private frm as new system.windows.forms.form private mDocs as new DocumentCollection 'Documents Collection public sub Run() application.run(frm) end sub end class public class DocumentCollection inherits CollectionBase 'Omitted for brevity, Normal CollectionBase implementation end class Question is: How do I get the currently running instance of the App Class from another application? I would like to be able to allow other applications to get my App Object through calls like GetObject(,"Excel.Application") returns the currently running instance of an Excel.Application Object. Is there a .NET method similar to VB'6 GetObject? Is there also a .NET Method similar to RegisterActiveObject? Thanks.:)

          J Offline
          J Offline
          J Dunlap
          wrote on last edited by
          #4

          I don't know of any .NET BCL method that does this, but you can put your main application class into the ROT (Running Object Table) using the COM RegisterActiveObject() method as you mentioned. This is what a BCL registration method would do if there was one.

          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