I am trying to capture audio from the mic using the windows core audio APIs The relevant lines of code are const CLSID CLSID_MMDeviceEnumerator = __uuidof(MMDeviceEnumerator); const IID IID_IMMDeviceEnumerator = __uuidof(IMMDeviceEnumerator); IMMDeviceEnumerator *pEnumerator = NULL; hr = CoCreateInstance(CLSID_MMDeviceEnumerator,NULL,CLSCTX_ALL,IID_IMMDeviceEnumerator, (void**)&pEnumerator); hr returns the following value- > 0x800401f0 : CoInitialize has not [...] read more
As a proof of concept I am trying to install dummy DLL as a shared side-by-side assembly. I have created a .dll vith embedded version info resource, created manifest and .cat file, and used sxs.dll functionality to InstallAssembly() but this function kept returning 0x800736FD (ERROR_SXS_UNTRANSLATABLE_HRESULT:An HRESULT could not be translated [...] read more
I'm writing a simple multimedia application in Visual Studio 2013 and I need to enumerate camera devices connected to my computer and create a media source object to link to one of them. I use Media Foundation SDK and tried to run the guide here: https://msdn.microsoft.com/en-us/library/windows/desktop/dd940326(v=vs.85).aspx : #include <Mfapi.h> #include [...] read more
I'm using VS2010 and Windows 7, and my app is SDI shared DLL, upgraded from VC6. After installing my application, if the user double-clicks the registered file type, the application crashes at the MFC function: void CRecentFileList::Add(LPCTSTR lpszPathName, LPCTSTR lpszAppID) { // ... #if (WINVER >= 0x0601) // ... #ifdef [...] read more
#include "vss.h" #include "vswriter.h" #include <VsBackup.h> #include <stdio.h> #define CHECK_PRINT(result) printf("%s\n",result==S_OK?"S_OK":"error") int main(int argc, char* argv[]) { BSTR xml; LPTSTR errorText; IVssBackupComponents *VssHandle; HRESULT result = CreateVssBackupComponents(&VssHandle); CHECK_PRINT(result); result = VssHandle->InitializeForBackup(); printf("unexpected%x\n",result); system("pause"); return 0; } in the above program intializeforbackup fails with error code E_UNEXPECTED. The VSS service is [...] read more
I am trying to install Office 2003 SP3 on a windows 2003 EE server (used as a terminal server) which already have office 2003 SP2. I am getting an error that says "Update can not be applied". Below are the eventviewer entries for Application: 1. _ Event Type: Warning Event [...] read more
I'm connecting to an Azure SQL box, and have not had issues with it for months. Today, I get this error: Error: nanodbc/nanodbc.cpp:983: FA004: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server][Failed to authenticate user '' in Active Directory (Auth option is 'Active Directory Integrated') Error code 0x800401F0; state 10 CoInitialize [...] read more
I'm trying to read .doc file with ruby, I use win32ole library. IT my code: require 'win32ole' class DocParser def initialize @content = '' end def read_file file_path begin word = WIN32OLE.connect( 'Word.Application' ) doc = word.activedocument rescue word = WIN32OLE.new( 'Word.Application' ) doc = word.documents.open( file_path ) end word.visible [...] read more
I have written a SOAP Web Service that I'm trying to consume from an MFC application. The MFC application was not generated with ActiveX control support or Automation. When I run the MFC application from Vista or Win7, there's no problem accessing the Web Service. When I run the MFC [...] read more
I have an application which is written in managed code and runs sucessfully, however now i disabled the /clr option from visual studio 2008 and made necessary changes to remove the manages code and convert it to native, and successfully compiled the code, however, the function CoInitializeSecurity() is failing with [...] read more
I have set up Windows Server 2012 with Remote Desktop Services and RemoteApp aplications. Windows 7 clients are configured with web feed of RemoteApp aplications. Update is working when I manualy click "Update Now" in "RemoteApp and Desktop Connections" window, and new application icons are added. But automatic update always [...] read more
I am trying to install Office 2003 SP3 on a windows 2003 EE server (used as a terminal server) which already have office 2003 SP2. I am getting an error that says "Update can not be applied". Below are the eventviewer entries for Application: Event Type: Warning Event Source: MsiInstaller [...] read more
I'm trying to connect to SQL server from R and I'm using the Azure Active Directory Password authentication. My connection in R define as follow : ch <- odbc::dbConnect(odbc(), DSN = "myDSN", Database = "dbname", Authentication="ActivedirectoryPassword", UID = uid, PWD = password ) This is failing by the following error [...] read more
I am trying to install visual studio on my Ubuntu machine , I tried to to install it using WINE but without any success , because it is need Microsoft .net framework 4.0 , and I already installed version 4.7 . I removed 4.7 version and tried to install 4.0 [...] read more
Followed the description mentioned in below link: https://docs.microsoft.com/en-us/sql/tools/bcp-utility?view=sql-server-ver15#G Goal - Using BCP utility, trying to login to SQL server using Azure Active Directory Username and Password. Used below command : bcp tableName out "C:\temp\tabledata.txt" -c -t -S xxxxxxx.database.windows.net -d AzureDB -G -U xxxxxx@xxxxx.com -P xxxxx Getting below error: SQLState = [...] read more
As in the title, I am getting an error code that is not in the documentation of CoCreateInstance. The specific error code is 0x800401F0. Note: I am new to C++ and programming at this level in general. Trying to learn by building an audio visualization tool. #include <stdio.h> #include <Mmdeviceapi.h> [...] read more
I'm calling a COM DLL from a C# application. The DLL is an SDK for an application. When called from the application itself it works correctly, so I'm happy it's installed okay. I'm trying to call it from a C# console application though, and I'm getting the error below when [...] read more
are there any objects when running wxWidget's common dialogs on a separate thread? I'm developing a browser plugin and so I need to put lengthy operations outside the main browser thread. I did a small test and it seems to work but a warning appears: ....\src\msw\dirdlg.cpp(333): 'CoCreateInstance(CLSID_FileOpenDialog)' failed with error [...] read more