|
Hello Daniel,
Please email me your email address so that I can send to you some sample codes.
Best Regards,
Bio.
|
|
|
|
|
Thanks! It works fine!
Cheers,
Daniel.
--
FIND A JOB YOU LOVE, AND YOU'LL NEVER HAVE TO WORK A DAY OF YOUR LIFE.
|
|
|
|
|
I add an interface to an OCX,
when I use the OCX, it throw an exception and pop a message box "parameter not optional".
Why? who can tell me reason?
Thanks a lot!
|
|
|
|
|
Are you passing a VT_EMPTY or a VT_NULL?
Well, you shouldn't
|
|
|
|
|
Just my 2 cents:
On insertion your OCX maybe querying container for some ambient property not supported by your container.
"...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
|
|
|
|
|
I have an out-of-proc COM server. In one of the method of my COM server, I need Thread Id of the client application who is calling the method. Is there any way to get thread id fo client process in COM server code?
Regards.
|
|
|
|
|
One solution is to require the client to pass in its ID as one of the parameters.
Kuphryn
|
|
|
|
|
You are right, but this is not a solution for the problem. I was looking for an API to get thread id of COM client.
|
|
|
|
|
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
|
|
|
|