Re: Create plugin on Windowx XP platform

From: J.M. Maurer <uwog_at_uwog.net>
Date: Fri Oct 14 2005 - 16:59:13 CEST

On Fri, 2005-10-14 at 09:50 -0400, Pierre wrote:
> Hi everydoy,
>
> I'm developping a plugin for Abiword 2.4.0 on Windows XP2 with Visual
> Studio.net.
>
> So I created a MFC DLL projet with the sample plugin "Wikipedia" in the
> source code. I have some problems to reach my goal.
> The main problem come in the function "Wikipedia_addToMenus()" at the
> felowing lines.
>
> // First we need to get a pointer to the application itself.
> XAP_App *pApp = XAP_App::getApp();
>
> The execution of my DLL set "pApp" to NULL. The static function
> "XAP_App::getApp()" must be import from Abiword application.
>
> I think, I have to build my DLL with the macro "ABI_DLL" but with this
> macro, there are some build errors.
>
> error C2491: 'UT_GenericVector<T>::__ctor' : definition of dllimport
> function not allowed.
>
>
> What I have to do to get "XAP_App" Object of Abiword application in my
> plugin?
>
> So, is someone can give me a hint.

I think no-one has ever compiled plugins using the MSVC IDE. Tomas, any
suggestions?

Marc
Received on Fri Oct 14 16:58:57 2005

This archive was generated by hypermail 2.1.8 : Fri Oct 14 2005 - 16:58:57 CEST