|
-
Apr 30th, 2002, 07:44 PM
#1
MFC-Related: Is it possible?
Alright, this is what I am trying to do.
I've created a MFC-DLL with one exported function...
DoSomething()..
In DoSomething() it initialize and SDI/MDI application using MFC same as what would be found in your InitInstance() of the application object.
That way I can have the application contained in a DLL, so that I can open this application from with in a "parent" application from say a menu item ( I don't wanna spawn an executable ). But I could also have a separate executable which only calls the DoSomething() function.
If you are familiar with how the ODBC Administrator works it's the same idea.
I guess what I am asking is... is it possible? Or does the MFC Framework not allow it.
If the only comment you have is how MFC sucks, and API is better... please start a new thread for that. I know doing something like this is easy using API, but the time it would take me to create the interface as aposed to using MFC is why I'd like to stay away from API... if possible....
-
May 1st, 2002, 02:27 PM
#2
I'm not familiar with MFC-DLLs, but I'd say, why not simply try? Worst thing that can happen is the familiar "debug assertion error".
It may be a problem because the framework of the dll and the one of the exe might not like each other - or something like that. Other than that I see no problem.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
May 1st, 2002, 07:18 PM
#3
Oh... I've tried to do it... I just don't know its possible... I could be doing something completely wrong.
Just wanted to see if anyone out there figured something out that I haven't
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|