Doc/View in a DLL
Chris F. Bennett -- cimlogic!cfb@bort.mv.net
Monday, October 28, 1996
Environment: NT 3.51, VC 4.1
Assembled MFC minds,
My Doc/View based App needs to:
(1) Reside in a DLL.
(2) Be callable from an EXE.
(3) Act like a modeless dialog.
(4) Be statically linked to MFC
I realize this is "Something Nature Never Intended".
I've managed to make it act like a modeless dialog by
deriving a document template class from CSingleDocTemplate
and overriding CreateNewFrame() so the MainFrame is created
with a parent window (instead of NULL). This works pretty
well except that my App's OnIdle() function is never called
and consequently my toolbar controls are never updated.
BTW:My App is a CAD file browser that will link as a DLL to
another party's CAD package.
Any suggestions ?
TIA,
Chris Bennet
cfb@cimlogic.mv.com
Mark Anderson -- fizban@apu.et.byu.edu
Wednesday, October 30, 1996
On Mon, 28 Oct 1996, Chris F. Bennett wrote:
>
> Environment: NT 3.51, VC 4.1
>
> Assembled MFC minds,
> My Doc/View based App needs to:
> (1) Reside in a DLL.
> (2) Be callable from an EXE.
> (3) Act like a modeless dialog.
> (4) Be statically linked to MFC
> I realize this is "Something Nature Never Intended".
> I've managed to make it act like a modeless dialog by
> deriving a document template class from CSingleDocTemplate
> and overriding CreateNewFrame() so the MainFrame is created
> with a parent window (instead of NULL). This works pretty
> well except that my App's OnIdle() function is never called
> and consequently my toolbar controls are never updated.
>
> BTW:My App is a CAD file browser that will link as a DLL to
> another party's CAD package.
>
> Any suggestions ?
>
> TIA,
> Chris Bennet
> cfb@cimlogic.mv.com
>
I need to be able to do this same thing, except I need to be
able to call multiple instances of this Doc/View pair, or such
that I seem to call multiple instances, if I had an MDI app inside
a DLL, and the Mainframe was already instantiated, I would add a
document and view/views to the running copy application (which resides
inside a DLL)
Mark Anderson
fizban@bart.et.byu.edu 378-4538 CTB 75H
http://www.et.byu.edu/~fizban/
May the Force be with you. -- Obi Wan Kenobi
Mark Anderson -- fizban@apu.et.byu.edu
Wednesday, October 30, 1996
On Mon, 28 Oct 1996, Chris F. Bennett wrote:
>
> Environment: NT 3.51, VC 4.1
>
> Assembled MFC minds,
> My Doc/View based App needs to:
> (1) Reside in a DLL.
> (2) Be callable from an EXE.
> (3) Act like a modeless dialog.
> (4) Be statically linked to MFC
> I realize this is "Something Nature Never Intended".
> I've managed to make it act like a modeless dialog by
> deriving a document template class from CSingleDocTemplate
> and overriding CreateNewFrame() so the MainFrame is created
> with a parent window (instead of NULL). This works pretty
> well except that my App's OnIdle() function is never called
> and consequently my toolbar controls are never updated.
>
> BTW:My App is a CAD file browser that will link as a DLL to
> another party's CAD package.
>
> Any suggestions ?
>
> TIA,
> Chris Bennet
> cfb@cimlogic.mv.com
>
I need to be able to do this same thing, except I need to be
able to call multiple instances of this Doc/View pair, or such
that I seem to call multiple instances, if I had an MDI app inside
a DLL, and the Mainframe was already instantiated, I would add a
document and view/views to the running copy application (which resides
inside a DLL)
Mark Anderson
fizban@bart.et.byu.edu 378-4538 CTB 75H
http://www.et.byu.edu/~fizban/
May the Force be with you. -- Obi Wan Kenobi
| Вернуться в корень Архива
|