I’m tring to add OLE support to my program. I started by compiling one of the Qt examples: http://doc.qt.digia.com/stable/activeqt-comapp.html
This example, export 1 class and 2 types:
QAXCLASS(Application)
QAXTYPE(Document)
QAXTYPE(DocumentList)
In order to test it, I import it in Microsft Visual C++ (add class, MFC class from Typelib) The problem is that, after import, my classes are renamed:
CApplication
CDocument
CDocumentList
So when I call CApplication::Getdocuments() it returns a DocumentList* and this class is unknown! What am I doing wrong?
EDIT: tested in a VB project, and it works fine! So there must be something wrong when importing the tlb in VC++