Update ooo320-m1
[ooovba.git] / salhelper / test / Symbols / loader.cxx
blob2e2312b9d101b9389fa88dd448e9fc5a5b3defcc
2 #include <salhelper/dynload.hxx>
3 #include <rtl/ustring.hxx>
4 #include <stdio.h>
5 #include "samplelib.hxx"
8 using namespace salhelper;
9 using namespace rtl;
12 class SampleLibLoader
13 : public ::salhelper::ODynamicLoader<SampleLib_Api>
15 public:
16 SampleLibLoader():
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;
29 Loader= Loader2;
30 SampleLib_Api *pApi= Loader.getApi();
32 sal_Int32 retint= pApi->funcA( 10);
33 double retdouble= pApi->funcB( 3.14);
36 return 0;