#include "goodbye-widgets.h" #define gbbutton OurButton * OurButton::OurButton(QWidget* parent) : QPushButton(parent) { } void OurButton::SayGoodbye() { setText("Goodbye"); } #define cwbutton OurButton * extern "C" { #include "prototypes.h" } void gb_saygoodbye(cwbutton button) { button->SayGoodbye(); }