草庐IT

com_error

全部标签

c++ - 是否可以在不在注册表中注册的情况下创建和使用 COM 类?

我需要制作一个最终看起来类似于此的自定义COM对象:staticconstGUIDIID_ClientCommunicator={0x5219b44a,0x874,0x449e,{0x86,0x11,0xb7,0x8,0xd,0xbf,0xa6,0xab}};staticconstGUIDCLSID_ClientCommunicator={0x5219b44b,0x874,0x449e,{0x86,0x11,0xb7,0x8,0xd,0xbf,0xa6,0xab}};classATL_NO_VTABLECClientCommunicator:publicCComObjectRootEx

windows - 线程 "main"com.jacob.com.ComFailException : Can't co-create object 中的异常

我正在学习本教程:http://www.joecolantonio.com/2014/07/02/selenium-autoit-how-to-automate-non-browser-based-functionality/在Windows中自动化非浏览器应用程序。importjava.io.File;importautoitx4java.AutoItX;importcom.jacob.com.LibraryLoader;importjava.lang.System;publicclassCalcTest{/****ReturnsiftheJVMis32or64bitversion*

windows - 是否存在函数 CreateFile 返回 INVALID_HANDLE_VALUE 而 GetLastError() 返回 ERROR_ALREADY_EXISTS 的情况

我在MSDN上搜索了一下HANDLEWINAPICreateFile(_In_LPCTSTRlpFileName,_In_DWORDdwDesiredAccess,_In_DWORDdwShareMode,_In_opt_LPSECURITY_ATTRIBUTESlpSecurityAttributes,_In_DWORDdwCreationDisposition,_In_DWORDdwFlagsAndAttributes,_In_opt_HANDLEhTemplateFile);如果dwCreationDisposition==CREATE_ALWAYS或OPEN_ALWAYS,它表

c++ - 使用 IOCTL_CHANGER_GET_PRODUCT_DATA 调用 DeviceIoControl 时出现 ERROR_ACCESS_DENIED

我的任务是获取安装为磁盘的设备的VendorId和ProductId。代码看起来像这样:intmain(){HANDLEhDevice;charcDisk='c';//GetmetadataabouttheC:\disk//Buildthelogicaldrivepathandgetthedrivedevicehandlestd::wstringlogicalDrive=L"\\\\.\\";wchar_tdrive[3];drive[0]=cDisk;drive[1]=L':';drive[2]=L'\0';logicalDrive.append(drive);hDevice=Cre

c++ - 在同一个 DLL 中使用 _COM_SMARTPTR CreateInstance 而无需注册

我目前正在尝试编写一个DLL,它使用在系统中注册的Typelib(.tlb)。此Typelib要求我使用自己的类实现两个接口(interface),并在运行对象表中注册其中一个,这是我在使用VisualStudio2015的ATL项目中完成的。使用我的DLL的应用程序应该完全不了解COM,一切都应该在幕后工作并隐藏在我正在实现的DLL中。在我的DLL中,有时我试图获取类MyClass的实例,它实现了上面提到的类型库的COM接口(interface)。代码如下所示:IInterfaceClassPtrdataPtr;hr=dataPtr.CreateInstance(CLSID_MyCl

windows - Apache prunsrv : error parsing command line

我正在尝试将Java程序作为Windows服务启动。谷歌搜索我找到了一个install.bat来安装和启动我的服务。正如我在Internet上找到的那样,我已将prunsrv.exe重命名为IdentificationService.exe。D:\IdentificationService\bin\IdentificationService.exe//IS//IdentificationServiceD:\IdentificationService\bin\IdentificationService.exe//US//IdentificationService--Install=D:\

windows -/var/www/html/myanants/lib/Cake/Error/ErrorHandler.php 中给出的 ParseError 实例

我第一次上传cakephp项目到服务器后,出现了这个fatalerror。FatalErrorError:UncaughtTypeError:Argument1passedtoErrorHandler::handleException()mustbeaninstanceofException,instanceofParseErrorgivenin/var/www/html/myanants/lib/Cake/Error/ErrorHandler.php:116Stacktrace:#0[internalfunction]:ErrorHandler::handleException(Ob

python - 无法在 Windows : fatal error C1083: Cannot open include file: 'io.h' : No such file or directory error: 中安装 pycocotools

我是机器学习的新手,刚开始使用配备GeForceGTX540M的Windows8.1电脑。我跟着这个tutorial开始使用对象检测模型。我构建了自己的数据集并尝试按照教程对其进行训练,但使用“ssd_mobilenet_v1_coco_2017_11_17”模型。但无法成功执行,因为我在教程中给出的“train.py”文件上遇到了麻烦。所以我搜索了一下,发现我们必须使用“model_main.py”来训练模型。在尝试使用“model_main.py”进行训练时出现此错误:“ImportModuleError:没有找到名为‘pycocotools’的模块”所以我尝试从这个link安装c

django - eb 创建 : ERROR: PermissionError - [Errno 13] Permission denied: './catroot2\\edb.log'

我是这个服务器设置的新手。让我进入正题:我有一个要部署在AWS上的Django项目,我遵循链接中的文档:DeployingaDjangoApplicationtoElasticBeanstalk但是当我到达(创建环境并部署您的Django应用程序)第3点。创建环境并使用ebcreate将您的应用程序部署到其中:我遇到了这些问题:(FATWebsite)C:\WINDOWS\system32>ebcreatedjango-envCreatingapplicationversionarchive"app-190212_105329".ERROR:PermissionError-[Errno

ruby-on-rails - rails 上的 ruby : Bundle update giving errors in Windows

我正在尝试运行我的Rails服务器。第一次跑的时候报这样的错误找不到时区数据源。要解决此问题,请安装TZInfo:我通过更新gem文件中tzinfo-data的x64版本解决了这个错误。之后,当我运行bundleupdate时,出现以下错误*extconf.rbfailed*CouldnotcreateMakefileduetosomereason,probablylackofnecessarylibrariesand/orheaders.Checkthemkmf.logfileformoredetails.Youmayneedconfigurationoptions.Provided