Re: VS 2010 and VS 2008
"Mihai N." <nmihai_year_2000@yahoo.com> wrote in message
news:Xns9D841B7E732F6MihaiN@207.46.248.16...
Looking again, the only thing which jumps out at me is that the project
properties include the linker flag /NOENTRY
That is only to make the linker shut up.
But LoadLibrary should still fail, from what I know.
Weird, I have to check.
Just to be specific, here is my code, complete with old comments! (My
class USERMODULE manages the loading of menus and other resources when the
user wants one of the non-English language options. This is a low-level
private static member used by the class. I think the only reason this
member exists at all was to encapsulate my experiments on different
methods!)
HINSTANCE USERMODULE::muLanguageDllLoad( LPCTSTR pszName )
{
HINSTANCE hInstLanguage(NULL);
// Test various options for loading resource-only DLL:
// hInstLanguage = ::LoadLibraryEx( pszName, NULL,
LOAD_LIBRARY_AS_DATAFILE );
// hInstLanguage = ::AfxLoadLibrary( pszName );
hInstLanguage = ::LoadLibrary( pszName );
return hInstLanguage;
}
It appears I have been remiss in not noting *why* I chose that one of the
three options :-(
Dave
--
David Webber
Mozart Music Software
http://www.mozart.co.uk
For discussion and support see
http://www.mozart.co.uk/mozartists/mailinglist.htm