views:

89

answers:

0

I'm working on migrating from vc6 to vc9. Things are generally working well but I ran into a nasty snag today.

We have a whole pile of optional Dlls that were written as extension dlls. They get put into a sub-folder: mainapp/plugins/plugintype/*.dll

AfxLoadLibrary used to work nicely but it no longer does. A little experimenting revealed that if I put the extension dll into the mainapp folder, everything is fine. But in the subfolder, it is not happy.

What I'm deriving from this is, that the dlls that the extension dlls rely on (mfc, and our own) are not been "seen" because they are in my mainapp folder. It used to work without any problem.

I don't get it -- has AfxLoadLibrary() changed in some way that the search order for dlls no longer works?

Thanks :-)