|
There is no such API to my understanding. If the client does not provide the server with more information, then there is nothing linking the them except for the pointer that the client holds and the reference count on the server-side.
Kuphryn
|
|
|
|
|
Is there a way (free, not commercial programs) to detect un-released COM
interfaces? I use alot of CComPtr and also regular interfaces and I want
to make sure that there are no problems with reference counting.
thanks
|
|
|
|
|
I guess you already use
_ATL_DEBUG_INTERFACES and _ATL_DEBUG_QI ?
|
|
|
|
|
Actually it's the first time I hear about those defines. But
aren't those for use in ATL projects? Besides, I tried searching
them in MSDN (web site) and found nothing.
Can you briefly explain what they do?
thank you
|
|
|
|
|
Ok, now you got me confused... You use CComPtr and don't use ATL?
Anyway, define those two and watch your debug output...
(To see how they work use the great "Goto definition" in the IDE.)
|
|
|
|
|
These macros are in atl based macros, so i'll need to do some work before
i can get them to work.
Why, can't I use CComPtr without ATL? Why not?
anyways, thanks alot. It's certainly a step in the right direction.
|
|
|
|
|
|
Oh, CComPtr is now shared with MFC.
*DOH* I should have figured that out.
|
|
|
|
|
well, actually it's not a MFC project neither.
|
|
|
|
|
Dear Sir,
I am new to COM/DCOM and looking for some good books/web site to understand the COM/DCOM . I am also looking for information about the difference in COM , OLE , ActiveX etc . After understanding COM concept , I want to develop COM components using VB and VC++
Kindly suggest some good books/websites to learn these concepts and programming practices .
With thanks and regards
B Mittal
|
|
|
|
|
I highly recommend Developer's Workshop to COM and ATL 3.0 by Andrew Troelsen.
Kuphryn
|
|
|
|
|
please give the internet address out
dupengfei
|
|
|
|
|
That would be tricky, since it's a printed book.
Steve S
|
|
|
|
|
how to know that the view of an activex control has changed?
thanks
regards
|
|
|
|
|
Call IViewObject::Draw twice before and after -- compare results.
I doubt you'll do that though.
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|
|
Hi Dears
I have to make a simple COM+ Application programatically to register my ATL COM Component.
Please guide me to build that in VC++ ........
I'll be really thankful.
God bless you.
Kind Regards.
Atif
Watch Your Thoughts for they will become your actions.
Watch Your Actions for they will become your habits.
Watch Your Habits for they will become your beliefs.
Watch Your Beliefs for they will determine your destiny.
|
|
|
|
|
Hello,
i have a short question and do not find the answer.
Is it possible that a local server COM module (runs as EXE) can run multiple times? If yes, how can i do it?
Problem: i have a com module as local server. Some requests to the module can take a long amount of time. (Indepth: the module uses another InProcServer com module with threating model "both" that does the real work. "My" com module is only a wrapper that wraps the InProcServer module to a LocalServer module, because i want not to run the com module in the same process as the calling application). The module works fine, but it seems to serialize the requests when used by different applications (which can run under different users in our multiuser environment). Means one application must wait till the request done by the other application is finished...
So my first thought was to configure the module with _ATL_FREE_THREATING that result in a CoInitializeEX(COINIT_MULTITHREADED), but that was not the solution ...
Thanks for your help...
Thomas Maier
|
|
|
|
|
It can be done if you will register your Class Factory with REGCLS_SINGLEUSE. For example, in ATL server
hRes = _Module.RegisterClassObjects(CLSCTX_LOCAL_SERVER,
REGCLS_SINGLEUSE);
With best wishes,
Vita
|
|
|
|
|
Hello,
thanks, works fine...
Thomas Maier
|
|
|
|
|
Hello,
i have a short question and do not find the answer.
Is it possible that a local server COM module (runs as EXE) can run multiple times? If yes, how can i do it?
Problem: i have a com module as local server. Some requests to the module can take a long amount of time. (Indepth: the module uses another InProcServer com module with threating model "both" that does the real work). The module works fine, but it seems to serialize the requests when used by different applications (which can run under different users in our multiuser environment). Means one application must wait till the request done by the other application is finished...
So my first thought was to configure the module with _ATL_FREE_THREATING that result in a CoInitializeEX(COINIT_MULTITHREADED), but that was not the solution ...
Thanks for your help...
Thomas Maier
|
|
|
|
|
How to use MSChart in C#?
|
|
|
|
|
Hi,
I am working on developing a test application in java. I use java for UI only. I use JNI to communicate with a VC MFC DLL. I launch a IE browser instance in one JNI method, which works fine. I store the browser pointer (IWebBrowser2 *) as a C++ class instance variable. BTW, I start a thread on the native side (_beginthread) which in turn calls the method that launches the browser. If I set the navigation URL (Navigate2) in the method that launches the browser then it works fine. But if I add the same code of navigation in some other JNI method then it does not work. It fails with an error code of 0. Why is this happening? Is there any special care to be taken while working with COM pointers? I am using COM smart pointers.
Thanks,
Nikhil
|
|
|
|
|
Hi,
I'm with problems, when I build DCOM componet, I need call back for client but my service is in DCOM and instance for almost clients, ask Do I do the call back ????
|
|
|
|
|
hi there everybody..
wanted some help.
ne ideas what can be the problem with mycontrol...
it gives a dialog "class not registered" followed by an other one "could not open the document"..
any ideas whether there is a problem with the container or the control?
and where to debug from ..ne ideas??
thanks..
|
|
|
|
|
Dear All,
I am developing an application in MFC VC++ Version 6.0 for Windows 2000. The application consists of two modules :
the application itself, and the other module is Autoupdate feature.
I have to integrate the autoupdate application with the application, but at same time there is no major data exchange b/w the two
modules.
I need to pass only two parameters to the autoupdate : The url containing the new exe , the version number and the name of exe.
The autoupdate feature is used to update the application exe. The autoupdate feature itself doesnot need any further upgradations
So is my questions is that whether it is advisable to make :::
a) the autoupdate feature as a COM component. OR
b) the autoupdate module as a seperate EXE which should be called on click of a button from the application OR
c) put whole of the code of autoupdate in the application it self. OR
d) any other way...which i am not thinking of.
Please send your useful suggestions stating what is the most appropriate way .
Feel free to ask any further queries in this regards,
Thanks
Rohit Dhamija
|
|
|
|