[fpc-pascal]Conversion from c

Thomas Schatzl tom_at_work at yline.com
Mon Mar 18 09:48:08 CET 2002


Subject: [fpc-pascal]Conversion from c


>I would like to use a library written in C
>paragui

It's C++, not C.

>but it use classes like this :

That's why ^^ (and the paragui homepage says C++ as well)

>class DECLSPEC PG_Button : public PG_Widget  {
>public:
>/**
>Constructor for the PG_Button class
>@param parent pointer to the parent widget or NULL
>@param id id of the button (can be used in callbacks)
>@param r screen position of the button
>@param text button label
>@param style themestyle of the button
>*/
>PG_Button(PG_Widget* parent, int id, const PG_Rect& r, const char*
>text = NULL, const char* style="Button");
>virtual ~PG_Button();
>void LoadThemeStyle(const char* widgettype);
>
>is it possible to use it?

No, afaik C++ classes can't be used in FPC (yet?).

Regards,
  Thomas




More information about the fpc-pascal mailing list