Click here to Skip to main content
15,892,746 members
Home / Discussions / COM
   

COM

 
GeneralRe: invoke output parameters to javascript? Pin
Hongjun Ge7-Aug-09 5:57
Hongjun Ge7-Aug-09 5:57 
QuestionHow can I call a MSWord VBA macro from MFC *and* passing it arguments Pin
sashoalm4-Aug-09 4:34
sashoalm4-Aug-09 4:34 
QuestionCalling activeX method with array Pin
Nicolas Bonamy2-Aug-09 23:21
Nicolas Bonamy2-Aug-09 23:21 
QuestionICaptureGraphBuilder2:RenderStream strange problem Pin
Hristo-Bojilov30-Jul-09 11:48
Hristo-Bojilov30-Jul-09 11:48 
AnswerRe: ICaptureGraphBuilder2:RenderStream strange problem Pin
Hristo-Bojilov30-Jul-09 22:04
Hristo-Bojilov30-Jul-09 22:04 
QuestionCOM InprocServer32 Remoting Pin
sdk_tiger30-Jul-09 3:05
sdk_tiger30-Jul-09 3:05 
AnswerRe: COM InprocServer32 Remoting Pin
Baltoro2-Aug-09 11:34
Baltoro2-Aug-09 11:34 
GeneralRe: COM InprocServer32 Remoting [modified] Pin
sdk_tiger3-Aug-09 3:47
sdk_tiger3-Aug-09 3:47 
Hi Baltoro,

thank You for all that useful information - I am sure these links will push my project forward.
As I re-read my article, I agree with You that it's not written that clear - so I'd like to explain it more straight:

A company that quit business a while ago sold us some server application together with a client and an API to also write Your own clients to that server. All programs are compiled and I have no source - the only thing I got is a very detailed API documentation, a InProc32 COM DLL and it's includes for C++ projects. All was provided for use with Visual C++ 6.0.

The current situation is, that the server app runs together with the provided client app on workstation machines, and at night a client appwritten by me (using their API) queries the data and stores it in a central server with raid structure.

The provided server app accepts as many connections as I want (through the API-DLL-COM-Inproc32). Our bottleneck is currently the sync of all databases at night, we would like this to happen realtime. Instead of doing syncs several times a day, I would like to split the provided client and server from running together on one workstation. After the client should run on the desktop PC till API inproc32. There I would like to put sth. in between to lead the API calls through DCOM or TCP to a RAID server running the provided server app that would respond.

With DCOM it could be done like this:

-------------- Workstation ---------------------------
Client app -> Inproc32-FakerDLL -> DCOM |
------------------------------------------------------

Machine-boundary

------------- Server -------------------------------------------
| DCOM -> ActiveX-Exe -> Inproc32-DLL -> Server app
----------------------------------------------------------------

As I got no sources, I would create a fake Inproc32 COM DLL from the original API's ILD file.
Then a ActiveX exe providing DCOM support encapsulation the Inproc32 DLL running on server machine.
Now the fake Inproc32 DLL would forward through DCOM to that ActiveX-Exe-DCOM provider which would do the real calls to Inproc32-real-API-DLL on our RAID-server.

Again in other words:
What I try to do is split on a known COM-Inproc32-API and put client app and server app on different machines. Problem is - I got a ready-to-use client app that I cannot modify (compiled) and a server app that is compiled, too.

The question remaining is - is there a more elegant way without the need to writing a ActiveX-Exe that provides the COM-class of the inproc32-API for DCOM on the server machine - and a kind of fake/proxy DLL that forwards to this DCOM-ActiveX-Exe from client machines (to leave all clients-apps loading their Inproc32 DLL)? All is just for splitting server app and client app to different machines...

Let me add that we already verified - there is no license problem by doing what I try to.

Thank You very much for all Your support - I am reading the articles already!

Have a good time!

modified on Monday, August 3, 2009 9:53 AM

GeneralDamn, that is mind-boggling Pin
Baltoro6-Aug-09 11:37
Baltoro6-Aug-09 11:37 
QuestionHow to capture File->Save event in MS Word Pin
sashoalm29-Jul-09 23:07
sashoalm29-Jul-09 23:07 
AnswerRe: How to capture File->Save event in MS Word Pin
Garth J Lancaster30-Jul-09 12:30
professionalGarth J Lancaster30-Jul-09 12:30 
GeneralRe: How to capture File->Save event in MS Word Pin
sashoalm30-Jul-09 21:10
sashoalm30-Jul-09 21:10 
QuestionHow to provide the navigation inside the page Pin
peace_smyle28-Jul-09 0:08
peace_smyle28-Jul-09 0:08 
QuestionWIA set device to use ADF feeder instead of glass. Pin
CodeBase2527-Jul-09 9:27
CodeBase2527-Jul-09 9:27 
QuestionInheritance in COM Pin
Karismatic25-Jul-09 2:08
Karismatic25-Jul-09 2:08 
AnswerRe: Inheritance in COM Pin
Md. Marufuzzaman25-Jul-09 18:41
professionalMd. Marufuzzaman25-Jul-09 18:41 
AnswerRe: Inheritance in COM Pin
CurtD 228-Aug-09 14:00
CurtD 228-Aug-09 14:00 
QuestionHow to access Variant type 8204 Pin
BeerFizz23-Jul-09 11:09
BeerFizz23-Jul-09 11:09 
AnswerRe: How to access Variant type 8204 Pin
Vi224-Jul-09 1:57
Vi224-Jul-09 1:57 
GeneralRe: How to access Variant type 8204 Pin
BeerFizz24-Jul-09 2:59
BeerFizz24-Jul-09 2:59 
GeneralRe: How to access Variant type 8204 Pin
Vi227-Jul-09 0:27
Vi227-Jul-09 0:27 
QuestionCom BHO In Vista/IE7 Pin
abhi11shukla23-Jul-09 2:39
abhi11shukla23-Jul-09 2:39 
QuestionVirtual PC and COM Server Pin
gehbitte22-Jul-09 2:41
gehbitte22-Jul-09 2:41 
AnswerRe: Virtual PC and COM Server Pin
Stuart Dootson22-Jul-09 7:04
professionalStuart Dootson22-Jul-09 7:04 
GeneralRe: Virtual PC and COM Server Pin
gehbitte22-Jul-09 7:14
gehbitte22-Jul-09 7:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.