Re: activex as ui for com



I'm still not sure I understand you, you paint a third view of your
design after this post... It appears you don't want any GUI from
your object, you want to raise notifications when certain events
occur and have your client display GUI as needed.

I'm sorry, unless you state in no uncertain terms what your
situation is, and what you want is in terms of what happens, not
what solutions you seek for it to happen, then perhaps you
can get a more sensible answer...

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

"alojzy" <all@xxxxxxxxx> wrote in message
news:%23H7bWDJ7FHA.1140@xxxxxxxxxxxxxxxxxxxxxxx
> Well not really. I have application which host that activex component
> which is supposed to send command (like start,stop etc) to the COM which
> can be activated also by that application. So my concern is only
> comminucation between the activex and COM, if I can do it by e.g
> (SendMessage api) or better way
> is using sink.
>
>
> "Alexander Nickolov" <agnickolov@xxxxxxxx> wrote in message
> news:%23axPl8I7FHA.2264@xxxxxxxxxxxxxxxxxxxxxxx
>>I guess I didn't understand your situation. I'm still not sure I
>> understand it correctly, but here's what I read from your post:
>> You have an out-of-proc server which you want to also display
>> UI indicating its status (or some such). Therefore, you want to
>> display a dialog, or some other top level window from your
>> server. In that case COM is irrelevant. You can display whatever
>> you want from your server process, though beware you can
>> have multiple objects exposed simultaneously, so don't put the
>> dialog (or watever) in the object itself. Another issue to be
>> aware of is that your server must be running in the interactive
>> windowstation, otherwise nobody will see your UI.
>>
>> --
>> =====================================
>> Alexander Nickolov
>> Microsoft MVP [VC], MCSD
>> email: agnickolov@xxxxxxxx
>> MVP VC FAQ: http://www.mvps.org/vcfaq
>> =====================================
>>
>> "alojzy" <all@xxxxxxxxx> wrote in message
>> news:ejOpY3I7FHA.3684@xxxxxxxxxxxxxxxxxxxxxxx
>>> All I need is simple commands to be send from activex
>>> to COM object. Both lives in same parent process. Parent initialize
>>> COM, so I thought that activex which sits in parent could only send user
>>> defined
>>> messages with commands to that COM object.
>>> Without necessity usuing e.g sink between these two. (what advantage
>>> would be if any in such case?)
>>> thanks
>>>
>>> "Alexander Nickolov" <agnickolov@xxxxxxxx> wrote in message
>>> news:OHLCOhI7FHA.2012@xxxxxxxxxxxxxxxxxxxxxxx
>>>>I suppose you actually need an ActiveX Control (it's hard to tell
>>>> from your somewhat garbled post...). A rule of thumb to remember
>>>> is that messages should not be used together with COM method
>>>> calls, e.g. your protoicol should not mix COM with messages.
>>>> Using Windows messages as part of the implementation of a
>>>> COM object is perfectly fine, however, since it does not affect
>>>> its clients.
>>>>
>>>> --
>>>> =====================================
>>>> Alexander Nickolov
>>>> Microsoft MVP [VC], MCSD
>>>> email: agnickolov@xxxxxxxx
>>>> MVP VC FAQ: http://www.mvps.org/vcfaq
>>>> =====================================
>>>>
>>>> "alojzy" <all@xxxxxxxxx> wrote in message
>>>> news:%23ENc5AA7FHA.2524@xxxxxxxxxxxxxxxxxxxxxxx
>>>>> Hello,
>>>>> I need to create simple activex as a user interface for some COM
>>>>> component.
>>>>> What would be the most proper way, It would be nice to send just
>>>>> messages,
>>>>> can COM hadle messages when it doesn't have window? Or I have to
>>>>> create sink?
>>>>> COM is inprocess.
>>>>> thanks
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>


.



Relevant Pages

  • Re: activex as ui for com
    ... ACTIVEX IS MY GUI ... >>my concern is only comminucation between the activex and COM ... > Microsoft MVP, MCSD ...
    (microsoft.public.vc.atl)
  • Re: ActiveX and MVP: Implementation Strategies Redux
    ... Conversation: ActiveX and MVP: Implementation Strategies Redux ... Codejock has a control called XtremeShortcutBar ...
    (comp.lang.smalltalk.dolphin)
  • Re: How do I get CFormView to move while busy processing.
    ... I should point out that the reason the PeekMessage doesn't work is that it quantizes the ... A similar problem arises if there is a lot of traffic from a thread to the main GUI ... you can fill the queue up with posted messages, which first of all makes the GUI ... See my essays on threading on my MVP Tips site. ...
    (microsoft.public.vc.mfc)
  • Re: MVC/MVP swing GUI
    ... open source project so I can look at more than just the GUI) written following the MVP pattern. ... - Swing's own architecture isn't modeled as "pure" MVC or MVP, ... Each text field has an own Model, or should the sum of the text entries (some kind of data set) be the Model? ...
    (comp.lang.java.gui)
  • Speed of C# and GDI+
    ... large amount of objects of geometries. ... Compact Framework does not support ActiveX ... GUI development but as I know there are performance limitations. ... Mateusz Łoskot ...
    (microsoft.public.dotnet.framework.compactframework)