Click here to Skip to main content
15,911,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDLL questions Pin
13-Dec-01 19:51
suss13-Dec-01 19:51 
GeneralRe: DLL questions Pin
Nish Nishant13-Dec-01 20:10
sitebuilderNish Nishant13-Dec-01 20:10 
GeneralRe: DLL questions Pin
Joaquín M López Muñoz13-Dec-01 23:57
Joaquín M López Muñoz13-Dec-01 23:57 
GeneralRe: DLL questions Pin
Nemanja Trifunovic14-Dec-01 5:03
Nemanja Trifunovic14-Dec-01 5:03 
GeneralRe: DLL questions Pin
Joaquín M López Muñoz14-Dec-01 6:12
Joaquín M López Muñoz14-Dec-01 6:12 
GeneralRe: DLL questions Pin
Nemanja Trifunovic14-Dec-01 6:37
Nemanja Trifunovic14-Dec-01 6:37 
GeneralRe: DLL questions Pin
pba_14-Dec-01 6:40
pba_14-Dec-01 6:40 
GeneralRe: DLL questions Pin
Philip Patrick14-Dec-01 14:33
professionalPhilip Patrick14-Dec-01 14:33 
Well, providing destroy() works well. And this is true that memory allocated in DLL must be freed in DLL. But when you created a new VC++ project, you can look in its properties, C/C++ tab, Code genertion and you will see "Debug multithreaded DLL" option selected which is by default. With this option you can use your memory as you wish (I mean in case of DLLs).

Exporting classes throw .def file is not allowed as I know.

How people making plugins? Simple. There are many different ways. Fisrt to have only raw global functions. But if you want to use class, write an abstract class (which is need only header file) and derive your plugin's class from it. Now provide global function in your DLL like "GetPlugin()", returning the pointer to the abstract class and call it from your application. This way you "exported" a class from DLL Smile | :) And this way I did some time ago Smile | :)

But of course, not so simple. My suggestion is to open MSDN and read about DLLs, there are many information about it Smile | :)

Philip Patrick
GeneralDisabling buttons Pin
Cam13-Dec-01 16:21
Cam13-Dec-01 16:21 
GeneralRe: Disabling buttons Pin
Michael Dunn13-Dec-01 16:25
sitebuilderMichael Dunn13-Dec-01 16:25 
GeneralRe: Disabling buttons Pin
Nish Nishant13-Dec-01 18:06
sitebuilderNish Nishant13-Dec-01 18:06 
GeneralRe: Disabling buttons Pin
Cam13-Dec-01 18:36
Cam13-Dec-01 18:36 
GeneralGetting a pointer to the view object Pin
Cam13-Dec-01 15:12
Cam13-Dec-01 15:12 
GeneralRe: Getting a pointer to the view object Pin
Rick York13-Dec-01 15:35
mveRick York13-Dec-01 15:35 
GeneralRe: Getting a pointer to the view object Pin
Cam13-Dec-01 15:52
Cam13-Dec-01 15:52 
GeneralRe: Getting a pointer to the view object Pin
Ravi Bhavnani13-Dec-01 17:05
professionalRavi Bhavnani13-Dec-01 17:05 
GeneralRe: Getting a pointer to the view object Pin
Eugene Pustovoyt13-Dec-01 23:48
Eugene Pustovoyt13-Dec-01 23:48 
GeneralHelp me create .inf file in win2000!! Pin
Jerry Hu13-Dec-01 14:30
Jerry Hu13-Dec-01 14:30 
GeneralRe: Help me create .inf file in win2000!! Pin
Nish Nishant13-Dec-01 18:15
sitebuilderNish Nishant13-Dec-01 18:15 
GeneralCDataGrid in C++ Pin
13-Dec-01 12:08
suss13-Dec-01 12:08 
GeneralRe: CDataGrid in C++ Pin
14-Dec-01 0:50
suss14-Dec-01 0:50 
GeneralStupid Compiler Tricks Pin
Cam13-Dec-01 11:51
Cam13-Dec-01 11:51 
GeneralRe: Stupid Compiler Tricks Pin
13-Dec-01 12:33
suss13-Dec-01 12:33 
GeneralRe: Stupid Compiler Tricks Pin
Cam13-Dec-01 13:01
Cam13-Dec-01 13:01 
GeneralRe: Stupid Compiler Tricks Pin
Michael Dunn13-Dec-01 13:15
sitebuilderMichael Dunn13-Dec-01 13:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.