Click here to Skip to main content
16,005,697 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDll hell Pin
Rage7-Nov-07 5:22
professionalRage7-Nov-07 5:22 
AnswerRe: Dll hell Pin
toxcct7-Nov-07 5:27
toxcct7-Nov-07 5:27 
GeneralRe: Dll hell Pin
Rage7-Nov-07 5:34
professionalRage7-Nov-07 5:34 
GeneralRe: Dll hell Pin
toxcct7-Nov-07 5:37
toxcct7-Nov-07 5:37 
JokeOff Topic Pin
toxcct7-Nov-07 5:39
toxcct7-Nov-07 5:39 
JokeRe: Off Topic Pin
Matthew Faithfull7-Nov-07 5:58
Matthew Faithfull7-Nov-07 5:58 
AnswerRe: Dll hell Pin
Mark Salsbery7-Nov-07 7:00
Mark Salsbery7-Nov-07 7:00 
AnswerRe: Dll hell Pin
JudyL_MD7-Nov-07 10:35
JudyL_MD7-Nov-07 10:35 
Rage wrote:
I thought processes would have their own memory space, how come I can "exchange" data like this ? How can I avoid that ?


As Mark said, they do have unique memory spaces. You only have one app, therefore only one process space. Your problem is that you've managed to get two DLLs with the same names and the same entry points loaded into the same process space. What's a poor OS to do? I'm not surprised it's confused.

The "correct" solution to this is to have one and only one copy of your DLL (version 2.1) on the system (in system32 preferably) and to maintain support for version 1.0 inside your 2.1 DLL by using new names for functions that have changed or been added since 1.0. You know, like all those FunctionNameEx routines in the windows DLLs.

If you have functions with the same names that do different things in your two versions on an existing system, and the two plugin DLLs depend on the different functioning of the same-named functions and are trying to find a fix without making a coding change, IMHO you are up the proverbial creek without the proverbial paddle. You've got to resolve the ambiguity of which DLL / which function is which and I can't see a solution without a code change.

However, your third-party has obviously come across the problem and will be expecting some fix from you so you have the perfect opportunity to make that code change and fix the root issue.

Judy
GeneralRe: Dll hell Pin
Rage7-Nov-07 21:47
professionalRage7-Nov-07 21:47 
GeneralRe: Dll hell Pin
toxcct7-Nov-07 23:08
toxcct7-Nov-07 23:08 
GeneralRe: Dll hell Pin
Nelek7-Nov-07 23:49
protectorNelek7-Nov-07 23:49 
GeneralRe: Dll hell Pin
toxcct8-Nov-07 1:45
toxcct8-Nov-07 1:45 
QuestionCAPICOM Pin
Jim Crafton7-Nov-07 4:49
Jim Crafton7-Nov-07 4:49 
AnswerRe: CAPICOM Pin
led mike7-Nov-07 5:07
led mike7-Nov-07 5:07 
GeneralRe: CAPICOM Pin
Jim Crafton7-Nov-07 5:36
Jim Crafton7-Nov-07 5:36 
QuestionNew appended menu items are disabled [modified] Pin
followait7-Nov-07 3:49
followait7-Nov-07 3:49 
AnswerRe: New appended menu items are disabled Pin
led mike7-Nov-07 4:19
led mike7-Nov-07 4:19 
GeneralRe: New appended menu items are disabled Pin
David Crow7-Nov-07 4:26
David Crow7-Nov-07 4:26 
GeneralRe: New appended menu items are disabled Pin
led mike7-Nov-07 5:04
led mike7-Nov-07 5:04 
GeneralRe: New appended menu items are disabled Pin
David Crow7-Nov-07 5:10
David Crow7-Nov-07 5:10 
GeneralRe: New appended menu items are disabled Pin
led mike7-Nov-07 5:27
led mike7-Nov-07 5:27 
GeneralRe: New appended menu items are disabled Pin
Mark Salsbery7-Nov-07 7:07
Mark Salsbery7-Nov-07 7:07 
GeneralRe: New appended menu items are disabled Pin
led mike7-Nov-07 7:49
led mike7-Nov-07 7:49 
AnswerRe: New appended menu items are disabled Pin
Mark Salsbery7-Nov-07 7:10
Mark Salsbery7-Nov-07 7:10 
AnswerRe: New appended menu items are disabled Pin
Hamid_RT7-Nov-07 17:39
Hamid_RT7-Nov-07 17:39 

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.