15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


Creating an Ole control with Document/View

rick cameron -- rick_cameron@msn.com
Saturday, November 16, 1996

Environment: VC 4.2b, Windows NT 4.0

Hi

I want to create an Ole control that uses the document/view paradigm for its 
presentation. Actually, since firing events isn't important to me, I'd settle 
for an in-process Ole embedding server that also supported Automation.

Unfortunately, AppWizard and the various MFC samples don't appear to give much 
guidance on doing this.

Has anyone created an Ole control that uses doc/view? Or an in-process Ole 
server with an Automation-creatable document?

If so, please help me get a leg up.

Thanks for listening!

- rick cameron



Scott Daniels -- scottdfl@sprynet.com
Thursday, November 21, 1996

Rick,

I am somewhat of an OLE novice, but from what I know (anyone please correct
me if I am wrong), OLE controls are in essence "dataless". Any data
displayed in them belongs to the owning application, just like it would be
in any windows control. In this case then, it does not follow that you can
have any kind of document associated with a control. 

What you really want is an OLE server. If you need higher performance, then
use a DLL, else a EXT server. The latter is created with all the bells and
whistles for you by AppWizard which makes it really easy to create one.

I hope this info helps.

Scott Daniels

----------
> From: rick cameron 
> To: MFC Mailing List 
> Subject: Creating an Ole control with Document/View
> Date: Friday, November 15, 1996 10:47 PM
> 
> Environment: VC 4.2b, Windows NT 4.0
> 
> Hi
> 
> I want to create an Ole control that uses the document/view paradigm for
its 
> presentation. Actually, since firing events isn't important to me, I'd
settle 
> for an in-process Ole embedding server that also supported Automation.
> 
> Unfortunately, AppWizard and the various MFC samples don't appear to give
much 
> guidance on doing this.
> 
> Has anyone created an Ole control that uses doc/view? Or an in-process
Ole 
> server with an Automation-creatable document?
> 
> If so, please help me get a leg up.
> 
> Thanks for listening!
> 
> - rick cameron



Mike Blaszczak -- mikeblas@nwlink.com
Saturday, November 30, 1996

At 03:47 11/16/96 UT, rick cameron wrote:
>Environment: VC 4.2b, Windows NT 4.0

>I want to create an Ole control that uses the document/view paradigm for its 
>presentation. Actually, since firing events isn't important to me, I'd settle 
>for an in-process Ole embedding server that also supported Automation.

>Unfortunately, AppWizard and the various MFC samples don't appear to give much 
>guidance on doing this.

Really? What's wrong with the INPROC sample in MSDEV\MFC\OLE\INPROC?  Doesn't
it make an in-place activation-capable OLE server?  Adding automation, if
it doesn't already have it, would be a trivial matter.

.B ekiM
http://www.nwlink.com/~mikeblas/
I'm afraid I've become some sort of speed freak.
These words are my own. I do not speak on behalf of Microsoft.




rick cameron -- rick_cameron@msn.com
Monday, December 02, 1996

owner-mfc-l@majordomo.netcom.com on behalf of Mike Blaszczak wrote:
> At 03:47 11/16/96 UT, rick cameron wrote:
> >Environment: VC 4.2b, Windows NT 4.0
> 
> >I want to create an Ole control that uses the document/view paradigm for 
its 
> >presentation. Actually, since firing events isn't important to me, I'd 
settle 
> >for an in-process Ole embedding server that also supported Automation.
> 
> >Unfortunately, AppWizard and the various MFC samples don't appear to give 
much 
> >guidance on doing this.
> 
> Really? What's wrong with the INPROC sample in MSDEV\MFC\OLE\INPROC?  
Doesn't
> it make an in-place activation-capable OLE server?  Adding automation, if
> it doesn't already have it, would be a trivial matter.

Hi, Mike

I'm afraid that the InProc sample is in in-process Automation server, not an 
Ole server. Adding Automation to an Ole server would, I agree, be pretty easy. 
Going the other way seems to me to be harder!

Perhaps you can cover in-process Ole servers in the next edition of your 
(apart from this omission, very fine) book ;^)

- rick

> 
> .B ekiM
> http://www.nwlink.com/~mikeblas/
> I'm afraid I've become some sort of speed freak.
> These words are my own. I do not speak on behalf of Microsoft.
> 
> 




Gareth Jones -- GarethJ@i2.co.uk
Thursday, March 27, 1997

>Environment: VC 4.2b, Windows NT 4.0
Some time ago on MFC-L, ekiM.B replied to rick cameron

>At 03:47 11/16/96 UT, rick cameron wrote:
>>Environment: VC 4.2b, Windows NT 4.0
>
>>I want to create an Ole control that uses the document/view paradigm for its
>>presentation. Actually, since firing events isn't important to me, I'd
>>settle
>>for an in-process Ole embedding server that also supported Automation.
>
>>Unfortunately, AppWizard and the various MFC samples don't appear to give
>>much
>>guidance on doing this.
>
>Really? What's wrong with the INPROC sample in MSDEV\MFC\OLE\INPROC?  Doesn't
>it make an in-place activation-capable OLE server?  Adding automation, if
>it doesn't already have it, would be a trivial matter.
>
>.B ekiM

I've had a look and INPROC doesn't appear to be an OLE document server,
merely an automation
server for an invisible string collection class.

Its a great example of collection programming for the novice, but sadly
a document server it aint.

It's possible that VC5 has made this question irrelevant (still no
subscriptions arrived in UK sadly), but is it possible to coerce MFC's
document implementation into working within a DLL
to produce an INPROC OLE document server.

Gareth
--------------------------------------------------------------
Gareth Jones         Software Consultant      GarethJ@i2.co.uk
                     i2 Ltd.                 Visualize2Analyse
+44 (0)1223 844032   Cambridge, UK           Information2Image
                                              

>
>
>




Become an MFC-L member | Вернуться в корень Архива |