2 #include <salhelper/dynload.hxx>
3 #include <rtl/ustring.hxx>
5 #include "samplelib.hxx"
8 using namespace salhelper
;
13 : public ::salhelper::ODynamicLoader
<SampleLib_Api
>
17 ::salhelper::ODynamicLoader
<SampleLib_Api
>
18 (::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( SAL_MODULENAME( "samplelib") ) ),
19 ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(SAMPLELIB_INIT_FUNCTION_NAME
) ))
25 int main( int argc
, char *argv
[ ], char *envp
[ ] )
27 SampleLibLoader Loader
;
28 SampleLibLoader Loader2
;
30 SampleLib_Api
*pApi
= Loader
.getApi();
32 sal_Int32 retint
= pApi
->funcA( 10);
33 double retdouble
= pApi
->funcB( 3.14);