OK Pritpal , I continue to read documentation

Bruno

2009/8/20 Pritpal Bedi <[email protected]>

>
> Hi
>
>
> Bruno Luciani wrote:
> >
> > Pritpal , if you read a litle this howto
> > http://doc.trolltech.com/4.3/plugins-howto.html#static-plugins
> >
> > , do you see that we only need
> > acces to this macro:
> > http://doc.trolltech.com/4.3/qtplugin.html#Q_IMPORT_PLUGIN
> >
> >
> >  You don't need to support creation of new plugins
> >
> > only load existing , do you think that's is dificult to you  ?
> >
> > I think is only create a wrapper to this function
> >
>
> No.
> Plugins do not work this way. I had already tried.
>
> See the error :
>
> #include <QtPlugin>
>
> HB_FUNC( QT_IMPORT_PLUGIN )
> {
>   Q_IMPORT_PLUGIN( hbqt_par_QString( 1 ) );
> }
>
> ../../../hbqt_slots.cpp:86:1: error: pasting ")" and "PluginInstance" does
> not give a valid preprocessing token
> ../../../hbqt_slots.cpp:86:1: error: pasting ")" and "PluginInstance" does
> not give a valid preprocessing token
> ../../../hbqt_slots.cpp:86:1: error: pasting ")" and "PluginInstance" does
> not give a valid preprocessing token
> ../../../hbqt_slots.cpp:86:1: error: pasting ")" and "Instance" does not
> give a valid preprocessing token
> ../../../hbqt_slots.cpp: In function 'void HB_FUN_QT_IMPORT_PLUGIN()':
> ../../../hbqt_slots.cpp:86: error: 'qt_plugin_instance_hbqt_par_QString'
> has
> both 'extern' and initializer
> ../../../hbqt_slots.cpp:86: error: expected primary-expression before
> 'class'
> ../../../hbqt_slots.cpp:86: error: expected ';' before 'class'
> ../../../hbqt_slots.cpp:2058: error: expected '}' at end of input
> ../../../hbqt_slots.cpp: At global scope:
>
>
> If you read the documentation properly, you will know that
> it requires that instance of plugin is known to the linker prehand.
> And I have no clue how it can be achieved in Harbour wrappers.
>
> You may forward any clues on the list to get advanced.
>
> Regards
> Pritpal Bedi
>
> --
> View this message in context:
> http://www.nabble.com/Howto-Load-PLugins-in-static-HBQT-tp25064810p25065310.html
> Sent from the Harbour - Dev mailing list archive at Nabble.com.
>
> _______________________________________________
> Harbour mailing list
> [email protected]
> http://lists.harbour-project.org/mailman/listinfo/harbour
>
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to