Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Making standard application COM server
Message
From
24/10/2002 08:12:54
 
 
To
23/10/2002 21:00:12
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00714620
Message ID:
00714757
Views:
11
You cannot use a DLL COM (in-process) to act as a link between to process for the following reasons:
  • The COM is loaded in the current process (EXE) address space. Each application will load it's own COM instead of sharing one instance of it
  • A VFP DLL COM cannot display any form on screen and your current code does make use of forms

    An multi-Use EXE COM (out-of-process or DCOM) could be used. Other possibilities include:
  • Message queue (MSMQ)
  • Sockets (VFP is not a good choice for this. You could build a VB or VC COM for that)
  • Tables that are shared by both applications to distribute messages
  • Windows messages (again, a VB or VC COM would be better)

    HTH

    >I've got a standard application which is Win32 EXE.
    >Some code is below
    >DO MENUS\mainmenu.mpr
    >
    >IF is_logo( inifile )
    >    DO FORM splash NAME splashref LINKED
    >ENDIF
    >
    >DO FORM main_panel NAME searchref LINKED
    >
    >WITH _SCREEN
    >    oToBeHooked = _SCREEN
    >    _SCREEN.ADDOBJECT('MyObjectHook','MyHook')
    >ENDWITH
    >
    >READ EVENTS
    >Would it be difficult ( if possible ) to make it COM server for interapplication communication or intermediate COM DLL would a better approach.
    >
    >Application1_Com_server <===> Application2_Com_server
    >Application1_exe <==>Com_server<==> Application2_exe
  • Previous
    Next
    Reply
    Map
    View

    Click here to load this message in the networking platform