I'm able to load the Skype COM library (Skype4COM.dll) into a C++ visual studio project, and here is the code to do so:
#import "C:\Program Files (x86)\Common Files\Skype\Skype4COM.dll"
using namespace SKYPE4COMLib;
int main(int argc, char* argv[])
{
CoInitialize(NULL);
ISkypePtr pSkype(__uuidof(Skype));
pSkype->Attach(6, VARIANT_TRUE);
IChatMessage *message;
message = pSkype->SendMessage(_bstr_t(L"user_name"), _bstr_t(L"Hello"));
printf("%s sent message", (char *)message->FromHandle);
pSkype = NULL;
CoUninitialize();
return 0;
}
Is there any way to load a COM library into Qt? Because it would be nice to use Skype's library to make a GUI in C++.