[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-build
Subject:    [Boost-build] [PING}Re: Jamfile setup for load on demand DLLS
From:       "Robert Ramey" <ramey () rrsd ! com>
Date:       2009-12-22 16:34:46
Message-ID: hgqs63$1c0$1 () ger ! gmane ! org
[Download RAW message or body]

Robert Ramey wrote:
> Here is a small piece of code which is part of one of my serialization
> tests:
>
> HINSTANCE hDLL; // Handle to DLL
> hDLL = LoadLibrary("dll_polymorphic_derived2.dll");
> BOOST_CHECK_MESSAGE((0 != hDLL), "Failed to find/load
> dll_polymorphic_derived2" );
> save_exported(testfile);
> load_exported(testfile);
> FreeLibrary(hDLL);
>
> This runs successfully when I test from the msvc ide where the file
> "dll_polymorphic_derived2.dll"
> has been placed in the same directory as the executable.  So far so
> good.
> When I update my Jamfile.v2 with
>
> lib dll_polymorphic_derived2_lib
>>
> polymorphic_derived2.cpp
> ../build//boost_serialization
>>
> <link>shared
> ;
>
> ...
>
> [ test-bsl-run test_dll_plugin : : dll_polymorphic_derived2_lib :
> <runtime-link>shared ]
>
> It's not clear to me where the dll is located.  That is, should the
> following be changed?
>
> hDLL = LoadLibrary("dll_polymorphic_derived2.dll");
>
> and if so to what?.
>
> Also, I make a new version of the above code for *nix which uses
> dlopen, dlclose, etc.
> But again, I'm not sure what the path names should be.
>
> Any help appreciated.
>
> Robert Ramey
>
>
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build 



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic