Ole Error Code 0x800a0046
Contents |
one word near order by: date subject thread id message id sort: ascending descending SEARCHRESULT Results 1 - 22 of 22 for 0x800a0046. (0.0469182 seconds) File copy problem Thread ID: 66837 Tariq mehmood
Ole Error Unknown Com Status Code Foxpro
File copy problem Dear Experts FSO = Createobject("Scripting.FileSystemObject") FSO.CopyFile((Sys(5)+Alltrim(Sys(2003)))+'\utility.*', "c:\windows") FSO = .Null. When ole error code 0x80131040 I run above codes, throug prg, it creats following error message OLE error code 0x800a0046 unknown COM status erro What
Ole Error Code 0x80040154
is wrong? should I use another command to copy file. Please help FoxBarCode OLE error code 0x800a0046 Thread ID: 308150 Soykan OZCELIK FoxBarCode OLE error code 0x800a0046 Hi Luis, i am getting error like ole error code 0x80030003 unknown com status code "OLE error code 0x800a0046" trying something below codes Set Procedure To Locfile("Source\FoxBarcode.prg"), Locfile("Source\gpImage2.prg") Additive *--- Create FoxBarcode Object Local loFbc loFbc = Createobject("FoxBarcode") *-- Set the properties With loFbc .cImageType = "PNG" .nBarcodeType = 110 &&159 && EAN 128 .nFactor = 1 .nMargin = 5 .cSet128 = "B" .nImageHeight = 60 && in pixels .lShowHumanReadableText = .T. Endwith *-- Generate image lcImage = loFbc.BarcodeImage("LA11.01x02.150") *-- Create form Local loForm As Form loForm = Createobject("Form") loForm.Caption Ole Com Thread ID: 92662 Daniel Hofford Ole Com Another OLE error code that is giving me fits is this one. OLE Error Code: 0x800a0046: Unknown Com Status Code This occurs when the following line tries to execute: owsh.DeleteFolder((CopyFrom),.T.) But not every time. I can run this program once and it will throw that error code, say 5 out of 20 times that it executes in the program. Since those 5 folders are still there, I can run the program again and four of them will be deleted but 1 might remain due to its problem with that line of code. In fact one is remaining (I've run it about 6x just for that one folder) and its the one listed below. All the folder names are structured similarly RE: File copy problem Thread ID: 66837 Eric den Doop RE: File copy problem Dear Experts FSO = Createobject("Scripting.FileSystemObject") FSO.CopyFile((Sys(5)+Alltrim(Sys(2003)))+'\utility.*', "c:\windows") FSO = .Null. When I run above codes, throug prg, it creats following error message OLE error code 0x800a0046 unknown COM status erro > What is wrong? should I use another command to copy file. > Please help I don't know what is wrong here, but
within the Windows environment. It is akin to the old DOS Batch files, but much more powerful. It is a COM Server so you can get a reference to its object model in any Windows COM compliant language, plus Windows (and DOS under Windows) can run the scripts itself. Beware, however: There are several releases of WSH that are not completely compatible with one another Not all Windows versions came with WSH Even Windows versions that had WSH available may not have had WSH installed (or may have had it removed). Microsoft's WSH page is at: http://msdn.microsoft.com/scripting/default.htm The Windows Scripting Host ActiveX control https://www.foxite.com/search.aspx?q=0x800a0046 is very deep and featureful, and I won't pretend to write a big topic about it, but here are things that it can do: To create a shortcut in the current directory: oWsh = CreateObject("WScript.Shell") oLink = oWsh.CreateShortcut("FoxWiki Web Site.URL") && The .URL is required oLink.TargetPath = "http://fox.wikis.com" oLink.Save() -- Steven Black To create a shortcut in the Desktop: oWsh = CreateObject("WScript.Shell") cDesktopDir = oWsh.SpecialFolders("Desktop") oLnk = oWsh.CreateShortcut(cDesktopDir + http://fox.wikis.com/wc.dll?Wiki~WSH~VFP "\\Shortcut to Notepad.lnk") oLnk.TargetPath = oWsh.ExpandEnvironmentStrings("%windir%") + "\notepad.exe" oLnk.Save() -- Alex Feldstein, Willson De Veas The Special Folders you can use are: AllUsersDesktop AllUsersStartMenu AllUsersPrograms AllUsersStartup Desktop Favorites Fonts MyDocuments NetHood PrintHood Programs Recent SendTo StartMenu Startup Templates -- Alex Feldstein With WScript.Shell::Run(), external commands can be run much more flexibly than from the VFP RUN (!) command. - ?lc > Not only that but it allows for synchronous execution of DOS programs avoiding the common problem when doing a standard RUN with DOS that VFP does not wait and merrily continues. #define SW_SHOW_NORMAL 1 #define SW_SHOW_MINIMIZED 2 #define SW_SHOW_MAXIMIZED 3 oShell = createobject("WScript.Shell") oShell.Run("notepad.exe",SW_SHOW_NORMAL,.T.) -- Alex Feldstein Another neat little piece of code - recurse a subtree without the vagaries of VFP3, 5 & 6 ADIR()'s improper handling of names (i.e., VFP converts names to upper case) and requirements to change directories to avoid picking up files as well: VFP8,7 and 6 (and probably 5) allow inclusion of directory as part of the file skeleton obviating the need to change directory. Also, in 7 and 8, an additional argument allows you to specify returning file names in the case that's stored on disk, making the Windows Scripting Host unnecessary for this task. * P
handle the request. Apache/2.2.31 (Unix) mod_ssl/2.2.31 OpenSSL/1.0.1e-fips mod_bwlimited/1.4 Server at www.fox-id.org Port 80
ProgramadoresIniciar sesiónCorreo: Contraseña: Entrar Recordar sesión en este navegadorRecordar contraseña?Iniciar sesiónCrear cuentaDocumentación y RecursosCursos y ManualesBiblioteca de TemasCódigo FuenteNoticias/ArtículosForos y ConsultasForos de ConsultaChats de prog.Nuevo!!Tablón de NotasDiccionario informáticoProgramadoresProgramadoresOfertas de TrabajoSolicitudes para prog.Lista de CorreoProgramasProgramas/UtilidadesNuestros ProgramasIconos y CursoresPreguntas/RespuestasOtrosUtilidadesColaboradoresEncuestas/EstadísticasContactarLWP » Foros » FoxPro/Visual FoxPro » OLE error code 0x80040154 FoxPro/Visual FoxPro - OLE error code 0x80040154 VolverNuevo Tema<<>> Vista: arbolcronológicoOLE error code 0x80040154Salvador Angeles(29/11/2006 22:09:12)25.819 visitas4 respuestasRE:OLE error code 0x80040154Luis Osorio(01/12/2006 16:05:06)RE:OLE error code 0x80040154Salvador Angeles(04/12/2006 22:41:46)RE:OLE error code 0x80040154gunther gomez rodriguez(03/02/2014 03:04:44)OLE error code 0x80040154Martin(21/09/2011 11:54:23) OLE error code 0x80040154Publicado por Salvador Angeles(33 intervenciones) el 29/11/2006 22:09:12Tengo un problema, desarrolle una forma de captura en donde hago uso del objeto acxdtpicker, en los equipos con windows xp presenta bien la forma pero con los equipos con windows 98 me envia el siguiente mensaje: OLE error code 0x80040154: Unknown COM status code. OLE object is being ignored. si algien puede ayudarme se los agradeceria de antemano.Valora esta pregunta0ResponderOtras secciones de LWP con contenido de FoxPro/Visual FoxPro- Código fuente de FoxPro/Visual FoxPro- Cursos de FoxPro/Visual FoxPro- Temas de FoxPro/Visual FoxPro- Chat de FoxPro/Visual FoxProCódigos de FoxPro/Visual FoxPro- Preguntas sobre las tablas de multiplicar- Mensajeria Interna- Conversión de Excel a una tabla dbf RE:OLE error code