in vs2010 c++ i used the following code to use some functions in a dll file that i don't have its header
Code:
#import "dll path" HRESULT hr = CoInitialize(NULL); if (hr==S_OK) {cout<<"INITIALIZED\n";} Trans_ATLLib::ITransCriptPtr Trans; hr = Trans.CreateInstance(__uuidof(Trans_ATLLib::TransCript)); if (hr==S_OK) {cout<<"INSTANCE CREATED\n";} hr =Trans->EnableLastCharTashkeel(true); if (hr==S_OK) {cout<<"EnableLastCharTashkeel DONE\n";} hr =Trans->EnableEmphaticLAM_RAA(true); if (hr==S_OK) {cout<<"EnableEmphaticLAM_RAA DONE\n";} VARIANT_BOOL test; test = Trans->SetText(arabic_string); if (test==0) {cout<<"error in setting the arabic sting\n";} string result; result = Trans->GetResult(); istringstream iss(result); vector<string> phonemes; copy(istream_iterator<string>(iss),istream_iterator<string>(),back_inserter<vector<string> >(phonemes)); return phonemes; }
but i found that qt doesn't use the same method
can any one help me in calling these functions in qt
thanks in advance