Re: MDI application embedded into DLL
- From: Ajay Kalra <ajaykalra@xxxxxxxxx>
- Date: Wed, 5 Mar 2008 09:44:45 -0800 (PST)
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: AYARA Adel
- Re: MDI application embedded into DLL
- From: AYARA Adel
- 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
- MDI application embedded into DLL
- Prev by Date: Re: Deplyment of MFC application
- Next by Date: ShellExecuteEx with lpVerb = TEXT("properties") needs running app to Display Dialog,...
- Previous by thread: Re: MDI application embedded into DLL
- Next by thread: Re: MDI application embedded into DLL
- Index(es):
Relevant Pages
|
Loading