I have completed this tutorial, only in this part:

--- offapi/com/sun/star/ui/dialogs/XExecutableDialog.idl
2004-06-04 07:19:19.000000000 +0530
+++ offapi/com/sun/star/ui/dialogs/XHelloWorldDialog.idl
2005-07-21 14:46:31.000000000 +0530
@@ -59,8 +59,8 @@
  *
  ************************************************************************/

-#ifndef __com_sun_star_ui_dialogs_XExecutableDialog_idl__
-#define __com_sun_star_ui_dialogs_XExecutableDialog_idl__
+#ifndef __com_sun_star_ui_dialogs_XHelloWorldDialog_idl__
+#define __com_sun_star_ui_dialogs_XHelloWorldDialog_idl__

 #ifndef __com_sun_star_uno_RuntimeException_idl__
 #include <com/sun/star/uno/RuntimeException.idl>
@@ -79,25 +79,15 @@
 */


-published interface XExecutableDialog: com::sun::star::uno::XInterface
+published interface XHelloWorldDialog: com::sun::star::uno::XInterface
 {
        
//-------------------------------------------------------------------------
-       /**     Sets the title of the dialog.
-
-               @param aTitle
-               Set an abitrary title for the dialog,
-               may be an empty string if the dialog should not
-               have a title.
-       */
-       void setTitle( [in] string aTitle );
-
-
//-------------------------------------------------------------------------
        /**     Executes (shows) the dialog.

                @returns
                A status code of type <type>ExecutableDialogResults</type>.
        */
-       short execute();
+       void adios();
 };

 //=============================================================================



After the tutorial says I have to build ("so what is necessary is first a
'build' in the offapi/ directory that then updates its database of
types/interfaces"), but when I build generates the error:



   1. Entering /home/ivan/aoo/main/offapi/util
   2.
   3. EXISTENCE: published key
   "/UCR/com/sun/star/ui/dialogs/XExecutableDialog" exists only in registry
   1
   4. /home/ivan/aoo/main/solver/350/unxlngi6.pro/bin/regcompare:
   registries are incompatible: 1 differences!
   5. dmake:  Error code 11, while making '../
   unxlngi6.pro/misc/registrycheck.flag'
   6. ERROR: error 65280 occurred while making
   /home/ivan/aoo/main/offapi/util
   7.
   8. ivan@ivan-Presario-CQ43-Notebook-PC:~/aoo/main/offapi$

Of there what I can do?

The tutorial is too old. Has a solution?

Regards.


2013/2/21 Jürgen Schmidt <jogischm...@gmail.com>

> On 2/21/13 10:12 AM, Ariel Constenla-Haile wrote:
> > On Thu, Feb 21, 2013 at 09:01:14AM +0100, Jürgen Schmidt wrote:
> >> On 2/21/13 4:44 AM, jorge ivan poot diaz wrote:
> >>> Hello Juergen, What do you mean:
> >>>> A little bit more work... Let me check the tutorial later
> >>>> ...
> >>>
> >>> How I can solve this compatibility issue? Would you kindly tell
> >>> me step by step how to solve it, please.
> >>>
> >>
> >> I think it make no sense to explain this now in details because
> >> as I mentioned it should be rather seldom used.  The tutorial
> >> which I have never recognized before is introducing a new type
> >> XHelloWorldDialog and here it should be allowed to change it.
> >>
> >> Which type do you try to change?
> >
> > The tutorial is replacing the css.dialogs.XExecutableDialog with
> > XHelloWorldDialog, no wonder he gets the registry mismatch... he
> > will also have to change all the places in the source tree where
> > XExecutableDialog is used... a complete waste of time, and it
> > doesn't teach anything; on the contrary, it will confuse
> > newcomers.
>
> ok I missed the replacement, I did only a very quick look on it. It
> makes really no sense.
>
> >
> > IMHO we should mark all these tutorials as obsolete and put a big
> > red warning on the pages.
>
> +1 this stuff makes no sense in this form. I would remove them directly.
>
> @Jorge, sorry for the confusion but we have indeed some outdated stuff
> in the wiki and we don't know all the places yet. As I mentioned
> before I never have seen this tutorial before.
>
> I recommend that you first try to complete a build and try debugging
> specific areas where you are most interested in. And please feel free
> to ask questions here.
>
> Juergen
>
>
> >
> >
> > Regards
> >
>
>

Reply via email to