Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
传送生成Tapi3 c+时出错+;在eclipse中使用migw编译器的示例 当我尝试在Eclipse中使用明文W64编译器构建Tabi3C++实例时,我遇到了一个问题,我已经逐步从MSDN中继承了 #include <iostream> #include <tapi3.h> using namespace std; int main() { // Initialize COM. HRESULT hr = CoInitializeEx( NULL, COINIT_MULTITHREADED); if (hr != S_OK) cout << "CoInitializeEx Failed !!!" << endl; // Create a TAPI entry point object. ITTAPI *gpTapi; // globally allocated hr = CoCreateInstance(CLSID_TAPI, NULL, CLSCTX_INPROC_SERVER, IID_ITTAPI, (LPVOID *) &gpTapi); if (hr != S_OK) cout << "CoCreateInstance Failed !!!" << endl; // Initialize TAPI. hr = gpTapi->Initialize(); if (hr != S_OK) cout << "gpTapi->Initialize() Failed !!!" << endl; // Declare the interfaces used to select an address. IEnumAddress * pIEnumAddress; ITAddress * pAddress; ITMediaSupport * pMediaSupport; VARIANT_BOOL bSupport; // Use the TAPI object to enumerate available addresses. hr = gpTapi->EnumerateAddresses(&pIEnumAddress); // If (hr != S_OK) process the error here. // Locate an address that can support the media type the application needs. while ( S_OK == pIEnumAddress->Next(1, &pAddress, NULL)) { // Determine the media support. hr = pAddress->QueryInterface(IID_ITMediaSupport, (void **) &pMediaSupport); if (hr != S_OK) cout << "pAddress->QueryInterface() Failed !!!" << endl; // In this example, the required media type is already known. // The application can also use the address object to // enumerate the media supported, then choose from there. hr = pMediaSupport->QueryMediaType(TAPIMEDIATYPE_AUDIO | TAPIMEDIATYPE_VIDEO, &bSupport); if (hr != S_OK) cout << "pMediaSupport->QueryMediaType() Failed !!!" << endl; if (bSupport) { break; } } // pAddress is now a usable address. return 0; }_C++_Mingw W64_Tapi - Fatal编程技术网

传送生成Tapi3 c+时出错+;在eclipse中使用migw编译器的示例 当我尝试在Eclipse中使用明文W64编译器构建Tabi3C++实例时,我遇到了一个问题,我已经逐步从MSDN中继承了 #include <iostream> #include <tapi3.h> using namespace std; int main() { // Initialize COM. HRESULT hr = CoInitializeEx( NULL, COINIT_MULTITHREADED); if (hr != S_OK) cout << "CoInitializeEx Failed !!!" << endl; // Create a TAPI entry point object. ITTAPI *gpTapi; // globally allocated hr = CoCreateInstance(CLSID_TAPI, NULL, CLSCTX_INPROC_SERVER, IID_ITTAPI, (LPVOID *) &gpTapi); if (hr != S_OK) cout << "CoCreateInstance Failed !!!" << endl; // Initialize TAPI. hr = gpTapi->Initialize(); if (hr != S_OK) cout << "gpTapi->Initialize() Failed !!!" << endl; // Declare the interfaces used to select an address. IEnumAddress * pIEnumAddress; ITAddress * pAddress; ITMediaSupport * pMediaSupport; VARIANT_BOOL bSupport; // Use the TAPI object to enumerate available addresses. hr = gpTapi->EnumerateAddresses(&pIEnumAddress); // If (hr != S_OK) process the error here. // Locate an address that can support the media type the application needs. while ( S_OK == pIEnumAddress->Next(1, &pAddress, NULL)) { // Determine the media support. hr = pAddress->QueryInterface(IID_ITMediaSupport, (void **) &pMediaSupport); if (hr != S_OK) cout << "pAddress->QueryInterface() Failed !!!" << endl; // In this example, the required media type is already known. // The application can also use the address object to // enumerate the media supported, then choose from there. hr = pMediaSupport->QueryMediaType(TAPIMEDIATYPE_AUDIO | TAPIMEDIATYPE_VIDEO, &bSupport); if (hr != S_OK) cout << "pMediaSupport->QueryMediaType() Failed !!!" << endl; if (bSupport) { break; } } // pAddress is now a usable address. return 0; }

传送生成Tapi3 c+时出错+;在eclipse中使用migw编译器的示例 当我尝试在Eclipse中使用明文W64编译器构建Tabi3C++实例时,我遇到了一个问题,我已经逐步从MSDN中继承了 #include <iostream> #include <tapi3.h> using namespace std; int main() { // Initialize COM. HRESULT hr = CoInitializeEx( NULL, COINIT_MULTITHREADED); if (hr != S_OK) cout << "CoInitializeEx Failed !!!" << endl; // Create a TAPI entry point object. ITTAPI *gpTapi; // globally allocated hr = CoCreateInstance(CLSID_TAPI, NULL, CLSCTX_INPROC_SERVER, IID_ITTAPI, (LPVOID *) &gpTapi); if (hr != S_OK) cout << "CoCreateInstance Failed !!!" << endl; // Initialize TAPI. hr = gpTapi->Initialize(); if (hr != S_OK) cout << "gpTapi->Initialize() Failed !!!" << endl; // Declare the interfaces used to select an address. IEnumAddress * pIEnumAddress; ITAddress * pAddress; ITMediaSupport * pMediaSupport; VARIANT_BOOL bSupport; // Use the TAPI object to enumerate available addresses. hr = gpTapi->EnumerateAddresses(&pIEnumAddress); // If (hr != S_OK) process the error here. // Locate an address that can support the media type the application needs. while ( S_OK == pIEnumAddress->Next(1, &pAddress, NULL)) { // Determine the media support. hr = pAddress->QueryInterface(IID_ITMediaSupport, (void **) &pMediaSupport); if (hr != S_OK) cout << "pAddress->QueryInterface() Failed !!!" << endl; // In this example, the required media type is already known. // The application can also use the address object to // enumerate the media supported, then choose from there. hr = pMediaSupport->QueryMediaType(TAPIMEDIATYPE_AUDIO | TAPIMEDIATYPE_VIDEO, &bSupport); if (hr != S_OK) cout << "pMediaSupport->QueryMediaType() Failed !!!" << endl; if (bSupport) { break; } } // pAddress is now a usable address. return 0; },c++,mingw-w64,tapi,C++,Mingw W64,Tapi,请您帮我解决这个问题,对不起,我的英语是请确保添加了这些lib文件: version.lib ole32.lib oleaut32.lib uuid.lib (来源:) CLSID_TAPI和IID_ITMediaSupport是外部符号,因此需要LIB。 IID_ITTAPI是已知的,也可以直接添加为头声明,如下所示: const IID IID_ITTAPI = {0xB1EFC382,0x9355,0x11d0,{0x83,0x5C,0x00,0xAA,0x00,0x3C,0xCA,0x

请您帮我解决这个问题,对不起,我的英语是

请确保添加了这些lib文件:

version.lib ole32.lib oleaut32.lib uuid.lib
(来源:)

CLSID_TAPI和IID_ITMediaSupport是外部符号,因此需要LIB。 IID_ITTAPI是已知的,也可以直接添加为头声明,如下所示:

const IID IID_ITTAPI = {0xB1EFC382,0x9355,0x11d0,{0x83,0x5C,0x00,0xAA,0x00,0x3C,0xCA,0xBD}};

我没有问题,当我使用VisualStudioC++生成时,我有问题,当使用MigW64 G++BuffDelphi来构建。库搜索路径是否包括uuid.lib所在的目录?是否有使用-L开关添加的库?可能适用:确保path中的include和library目录不同时为32和64配置正常,编译器找到了lib,但我准备好了有错误吗?当我使用VSC++lib时,我有d:/MinGW/mingw64/x86\u 64-5.3.0-win32-sjlj/bin/。/lib/gcc/x86\u 64-mingw32/5.3.0/。/../../../../../../../x86\u 64-w64-mingw32/bin/ld.exe:搜索-lversion时跳过不兼容的C:\Program Files(x86)\Microsoft SDK\Windows\7.0A\lib version.lib
const IID IID_ITTAPI = {0xB1EFC382,0x9355,0x11d0,{0x83,0x5C,0x00,0xAA,0x00,0x3C,0xCA,0xBD}};