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. Com With multiple reference conflict

Com With multiple reference conflict

Scheduled Pinned Locked Moved C / C++ / MFC
comtutorial
6 Posts 2 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.
  • A Offline
    A Offline
    Ash_VCPP
    wrote on last edited by
    #1

    Hi All, I am using one com dll and have multiple clients on the same machine which are creating pointers for same interface, so is there can be any conflict. Example: SomeComComponentLib::IsomeInterface objInterfaceptr; .....create instance Now all the client applications are using objInterfaceptr in same way...Please provide me some suggestion to avoid conflict.

    Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

    C 1 Reply Last reply
    0
    • A Ash_VCPP

      Hi All, I am using one com dll and have multiple clients on the same machine which are creating pointers for same interface, so is there can be any conflict. Example: SomeComComponentLib::IsomeInterface objInterfaceptr; .....create instance Now all the client applications are using objInterfaceptr in same way...Please provide me some suggestion to avoid conflict.

      Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

      C Offline
      C Offline
      CPallini
      wrote on last edited by
      #2

      What conflict? :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      A 1 Reply Last reply
      0
      • C CPallini

        What conflict? :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
        [My articles]

        A Offline
        A Offline
        Ash_VCPP
        wrote on last edited by
        #3

        Actually i want to ask that can it cause any coflict... in my situation: Some times i am not able to use the method of the interface object. like application doesnt acknowledge the object and returns without performing the task.

        Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

        C 1 Reply Last reply
        0
        • A Ash_VCPP

          Actually i want to ask that can it cause any coflict... in my situation: Some times i am not able to use the method of the interface object. like application doesnt acknowledge the object and returns without performing the task.

          Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

          C Offline
          C Offline
          CPallini
          wrote on last edited by
          #4

          Ash_VCPP wrote:

          Actually i want to ask that can it cause any coflict...

          I suppose not (but, without code, is a blind guess).

          Ash_VCPP wrote:

          Some times i am not able to use the method of the interface object. like application doesnt acknowledge the object and returns without performing the task.

          What do you mean with: "application doesn't acknowledge the object?". Do you get errors? :)

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
          [My articles]

          A 1 Reply Last reply
          0
          • C CPallini

            Ash_VCPP wrote:

            Actually i want to ask that can it cause any coflict...

            I suppose not (but, without code, is a blind guess).

            Ash_VCPP wrote:

            Some times i am not able to use the method of the interface object. like application doesnt acknowledge the object and returns without performing the task.

            What do you mean with: "application doesn't acknowledge the object?". Do you get errors? :)

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
            [My articles]

            A Offline
            A Offline
            Ash_VCPP
            wrote on last edited by
            #5

            Ok let me explain you the problem in detail... i am using msscript.ocx to get script support, now i am using one com dll and using its interface and adding interface object in script object, now script is using these object without initializing it, now i have same application running multiple times on same machine repeating the process, but some times vbscript doesnt acknoledge the interface objects. Example:

            m_ScriptObj.AddObject("DataIn", DataIn, false);
            m_ScriptObj.AddObject("DataOut", DataOut, false);
            m_ScriptObj.AddObject("Parser", Parser, false);
            m_ScriptObj.AddObject("Setting", Setting, false);

            now suppose i am using DataIn object inside my vbscript, and here comes the Inconsistent behaviour.

            Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

            C 1 Reply Last reply
            0
            • A Ash_VCPP

              Ok let me explain you the problem in detail... i am using msscript.ocx to get script support, now i am using one com dll and using its interface and adding interface object in script object, now script is using these object without initializing it, now i have same application running multiple times on same machine repeating the process, but some times vbscript doesnt acknoledge the interface objects. Example:

              m_ScriptObj.AddObject("DataIn", DataIn, false);
              m_ScriptObj.AddObject("DataOut", DataOut, false);
              m_ScriptObj.AddObject("Parser", Parser, false);
              m_ScriptObj.AddObject("Setting", Setting, false);

              now suppose i am using DataIn object inside my vbscript, and here comes the Inconsistent behaviour.

              Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

              C Offline
              C Offline
              CPallini
              wrote on last edited by
              #6

              Unfortunately it looks like there is no documentation about the script control (or I am not able to find it...). I have used it in the past, but I never needed the AddObject method. :(

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
              This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
              [My articles]

              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