I'm trying to use the Skype4COM library in a Qt application. Now with dumpcpp I've created the h and cpp file.
I can collect User in my friends list and make a call but I don't know how I could receive events from Skype itself.
Watching the generated header file I found this:
// skipping event interface _ISkypeEvents
and is probably not a good sign. Does anyone know how I could get the (Skype) events working? If I do it in C# it is fairly easiliy but I want it in Qt.

Further more when using my (basic) application I get a segmentation fault when exiting my app. Am I missing something do destroy the ActiveX component?
Qt Code:
  1. delete m_Skype;
To copy to clipboard, switch view to plain text mode 
doesn't get rid of the segmentation fault.

Some code:
header:
Qt Code:
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3.  
  4. #include <QMainWindow>
  5. #include <QAxObject>
  6. #include "skype4comlib.h"
  7.  
  8. using namespace SKYPE4COMLib;
  9.  
  10. namespace Ui {
  11. class MainWindow;
  12. }
  13.  
  14. class MainWindow : public QMainWindow
  15. {
  16. Q_OBJECT
  17.  
  18. public:
  19. explicit MainWindow(QWidget *parent = 0);
  20. ~MainWindow();
  21.  
  22. private:
  23. Ui::MainWindow* m_UI;
  24. Skype* m_Skype;
  25.  
  26. };
  27.  
  28. #endif // MAINWINDOW_H
To copy to clipboard, switch view to plain text mode 

the cpp:
Qt Code:
  1. #include "mainwindow.h"
  2. #include "ui_mainwindow.h"
  3. #include <QDebug>
  4.  
  5. MainWindow::MainWindow(QWidget *parent) :
  6. QMainWindow(parent),
  7. m_UI(new Ui::MainWindow)
  8. {
  9. m_UI->setupUi(this);
  10.  
  11. m_Skype = new Skype();
  12. m_Skype->Attach(6, true);
  13. //m_Skype->SetSilentMode(true);
  14.  
  15. IUserCollection* friends = m_Skype->Friends();
  16.  
  17. for (int i = 1; i <= friends->Count(); i++)
  18. {
  19. IUser* user = friends->Item(i);
  20. qDebug() << i << ":" << user->FullName();
  21. }
  22. }
  23.  
  24. MainWindow::~MainWindow()
  25. {
  26. delete m_UI;
  27. }
To copy to clipboard, switch view to plain text mode