Re: MDI application embedded into DLL
- From: "AYARA Adel" <adel.ayara@xxxxxxxxxxx>
- Date: Wed, 5 Mar 2008 19:45:11 +0100
OK,
The main application (MFC MDI) has a lot of components called by clicking in
the main toolbar. Each component is embedded into DLL written in Delphi
language and the main application uses functions exported in these DLL. But
one must be written in C++ (let's say "cour") and must have the same
functionality that a MDI MFC application such as open several documents,
work in these documents and save them. The component "cour" have also its
main toolbar containing functionality like open, save, print, print preview,
copy, paste, undo, etc. and I want that this component (cour) be embedded
into DLL and shared by another main application (not written in C++). So, I
want to build the component "cour" in the form of DLL with its own MFC
classes (view, document, mainframe, etc.) and export some functions to be
called by the two main applications.
In summary, I want to have a DLL component that has the same behavior that a
MDI application but I can't do it with the three forms of MFC DLL. In these
three forms, I haven't the view, document and mainframe classes and I don't
know how to start the MFC framework in these DLL to open document or to
create new document in a child frame.
Thanks for interesting
Aa
"Ajay Kalra" <ajaykalra@xxxxxxxxx> a écrit dans le message de
news:75983db2-0a4d-40fa-818d-d7d230ff8a0d@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Its not clear what you are trying to do. Are you asking to execute
commands between two instances of an application? Why do you need to
use ShellExecute to execute commands?
---
Ajay
On Mar 5, 5:21 am, "AYARA Adel" <adel.ay...@xxxxxxxxxxx> wrote:
Hi,
Perhaps, I didn't explain very well what I want. In fact, i have a main
MFC
MDI application composed of some DLL components. One of these components
is
shared by more than one main application and it has a same behavior that a
MFC MDI application (open, save and close documents). So I want to build
this component into DLL to can share it between the two applications and
not
use simply "shellExecute" because with this solution there isn't
integration
between the component and the main application.
I hope that I'm clear now and i hope that i found a solution to this
problem.
Thanks
Aa
"Joseph M. Newcomer" <newco...@xxxxxxxxxxxx> a écrit dans le message
denews:820rs3du2otjc21r7jgd6suj60cibjtu57@xxxxxxxxxx
> An application can't be "converted" to a DLL. DLLs are DLLs, and
> applications are
> applications. There is no conceivable way you can convert an "MDI
> application" to a DLL;
> it doesn't even make sense; it is like saying "I tried to make
> applesauce
> out of oranges,
> and I can't find a way to do it"
> What do you want the DLL to do? It *is* reasonable to do things such as
> put a document
> class, a view class, or both, in a DLL (as an extension DLL, typically),
> but that's about
> as far as you can go. To be a DLL, it would have to be used in the
> context of another
> application, and it makes no sense to embed a CMainFrame in a DLL if it
> is
> going to be
> used in the context of another CMainFrame environment.
> You can "embed" one app in another, by using OLE embedding; but this is
> a
> very challenging
> undertaking, not at all something to do as a beginning project.
> joe
> On Tue, 4 Mar 2008 11:28:46 +0100, "AYARA Adel" <adel.ay...@xxxxxxxxxxx>
> wrote:
>>Hi,
>>I have an MFC MDI application that i want to convert into DLL. I tried
>>the
>>three types of MFC DLL but i can't have my MDI application. In fact, i
>>want
>>to add an export function to my dll that be called by other application
>>(not
>>MFC and not C++) wich run my MDI application embedded into the dll. How
>>can
>>i do it ?
>>thanks
>>Aa
> Joseph M. Newcomer [MVP]
> email: newco...@xxxxxxxxxxxx
> Web:http://www.flounder.com
> MVP Tips:http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: MDI application embedded into DLL
- From: Ajay Kalra
- Re: MDI application embedded into DLL
- References:
- MDI application embedded into DLL
- From: AYARA Adel
- Re: MDI application embedded into DLL
- From: Joseph M . Newcomer
- Re: MDI application embedded into DLL
- From: AYARA Adel
- Re: MDI application embedded into DLL
- From: Ajay Kalra
- MDI application embedded into DLL
- Prev by Date: Re: ShellExecuteEx with lpVerb = TEXT("properties") needs running app to Display Dialog,...
- Next by Date: Re: bug in common controls
- Previous by thread: Re: MDI application embedded into DLL
- Next by thread: Re: MDI application embedded into DLL
- Index(es):
Relevant Pages
|
Loading