Click here to Skip to main content
16,006,749 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How I can do that? Pin
Christian Graus8-Jul-01 2:47
protectorChristian Graus8-Jul-01 2:47 
GeneralRe: How I can do that? Pin
8-Jul-01 8:24
suss8-Jul-01 8:24 
GeneralRe: How I can do that? Pin
Christian Graus8-Jul-01 12:37
protectorChristian Graus8-Jul-01 12:37 
QuestionDrag and drop within a TreeView? Pin
6-Jul-01 9:05
suss6-Jul-01 9:05 
AnswerRe: Drag and drop within a TreeView? Pin
Tomasz Sowinski8-Jul-01 23:49
Tomasz Sowinski8-Jul-01 23:49 
Generalusing OpenDocumentFile( ) to open series if bimaps Pin
mr20036-Jul-01 8:47
mr20036-Jul-01 8:47 
GeneralRe: using OpenDocumentFile( ) to open series if bimaps Pin
Ben Burnett6-Jul-01 13:48
Ben Burnett6-Jul-01 13:48 
GeneralDll Class Export Problem Pin
6-Jul-01 7:54
suss6-Jul-01 7:54 
I have a pretty difficult DLL problem to solve and I a little bit in the air right now.

I am developing a game engine with a "Resource Manager" which is in essence a linked list storing pointers to "Resource" classes. This setup deals with data that needs to be loaded/shared/released. All classes that load data are derived from "Resource" and on loading are registered with the global resource manager.
So that when the game requests e.g a texture a second time it gets the pointer to the already loaded texture object... Hope that is understandable..
This setup works quite well with the built in resource classes (Texture,Movie,Sound etc)

But now i allow extension DLLs which allow to add functionality to the game engine through plugin classes which are derived from "Object" and sent back to the game engine through a DLL exported function like extern "C" __declspec(dllexport) Object * CreateEngineObject( const char * classname )

This works ok too... But now i want to allow different Resource classes too in the extension DLL and here i get a crash when the resource manager tries to delete such a class (the destructor is never reached) There is one global resource manager in the engine dll ...

The engine is setup like this.
Game.exe // Small executable
Engine.DLL // All the engine classes, including ResourceManager,and Resource, those classes are also Exported via __declspec (dllexport)
Plugin1.dll the basic plugin for my tests. here i define a XMESH class derived from Resource which is alos __declspec(dllexport) exported....

The Runtime lib for all configs is of course "Multihreaded DLL"...

I don't have a clue what that could be anymore...

If anyone wants to see the code i can send a 18 MB Setup file which contains the whole project which is compilable via VC6 SP4 without anything additional ... out of the box..
Thanks in advance
Bernhard Glueck
GeneralRe: Dll Class Export Problem Pin
Oscar Londono6-Jul-01 8:01
Oscar Londono6-Jul-01 8:01 
GeneralRe: Dll Class Export Problem Pin
6-Jul-01 8:38
suss6-Jul-01 8:38 
GeneralRe: Dll Class Export Problem Pin
6-Jul-01 12:20
suss6-Jul-01 12:20 
GeneralRe: Dll Class Export Problem Pin
Pavlos Touboulidis6-Jul-01 14:16
Pavlos Touboulidis6-Jul-01 14:16 
GeneralRe: Dll Class Export Problem Pin
6-Jul-01 14:54
suss6-Jul-01 14:54 
QuestionPopup menus without MFC? Pin
6-Jul-01 6:13
suss6-Jul-01 6:13 
AnswerRe: Popup menus without MFC? Pin
Tomasz Sowinski6-Jul-01 6:33
Tomasz Sowinski6-Jul-01 6:33 
GeneralRe: Popup menus without MFC? Pin
6-Jul-01 8:25
suss6-Jul-01 8:25 
QuestionHow can I convert a LOGFONT's lfHeight into a CHARFORMAT's yHeight without a handle to a dc? Pin
Bart-Man6-Jul-01 6:02
Bart-Man6-Jul-01 6:02 
Generalquestion about memory allocation in win32 dll Pin
Jim Howard6-Jul-01 6:01
Jim Howard6-Jul-01 6:01 
GeneralRe: question about memory allocation in win32 dll Pin
Tomasz Sowinski6-Jul-01 6:40
Tomasz Sowinski6-Jul-01 6:40 
GeneralRe: question about memory allocation in win32 dll Pin
Jim Howard6-Jul-01 6:58
Jim Howard6-Jul-01 6:58 
GeneralRe: question about memory allocation in win32 dll Pin
Tomasz Sowinski6-Jul-01 7:07
Tomasz Sowinski6-Jul-01 7:07 
GeneralRe: question about memory allocation in win32 dll Pin
Jim Howard6-Jul-01 8:20
Jim Howard6-Jul-01 8:20 
GeneralFollowup to : question about memory allocation in win32 dll Pin
Jim Howard6-Jul-01 8:59
Jim Howard6-Jul-01 8:59 
GeneralWindow 2000 COM issue (maybe) Pin
Chris Klecker6-Jul-01 5:54
Chris Klecker6-Jul-01 5:54 
GeneralDrag and drop Pin
Kevnar6-Jul-01 5:52
Kevnar6-Jul-01 5:52 

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.