USUÁRIO:      SENHA:        SALVAR LOGIN ?    Adicione o VBWEB na sua lista de favoritos   Fale conosco 

 

  Fórum

  Visual Basic
Voltar
Autor Assunto:  Erro: The Microsoft Layer for Unicode(unicows dll)
Anjo Miguel
PAULISTA
PE - BRASIL
ENUNCIADA !
Postada em 16/07/2005 00:37 hs            
Olá para todos!
Estou com um super problemão na hora de fechar o pacote de instalação e distribuição do software em vb6 + crystal 9.2 advanced.

Vejam o que ocorre:

Quando estou instalando a nova versão do progama em uma máquina por exemplo, na hora de atualizar o sistema, recebo a seguinte mensagem: "THE MICROSOFT LAYER FOR UNICODE (UNICOWS.DLL) CAN NOT BE FOUND. THIS PROGRAM WILL NOW EXIT"

Ai tudo se perde!!!!!!!!

Ele, não registra nenhum arquivo do sistema. Grande parte deles, eu registrei usando o regsvr32. Uns funcionavam e outros NÃO!

AGORA, o programa desenvolvido por mim, esta funcionando na máquina "X". O programa executa tudo que foi programado. Acessa banco de dados, faz alterações, excluir, inclui, vizualiza e imprime um relatorio em DATAREPORT e quando acesso o item que contem o atalho para o relatório gerado pelo crystal reports 9.0, recebo outra mensagem:

RUN-TIME ERROR: 50003
LOAD REPORT FAILED

Como este erro não foi tratado por mim, o sistema se encerra.

Agora, se a questão for tratar o erro, então eu o pego, jogo no lixo e acontece o que????

Ficaria muito grato se alguem pudesse me ajudar de verdade.
Grato desde já
   
X-Crow Original
Pontos: 2843
VITÓRIA
ES - BRASIL
ENUNCIADA !
Postada em 16/07/2005 11:33 hs         
Já tive problemas com a unicows.dll tb mas em outras circustâncias...
Eu uso a API SHBrowseForfolder para obter a janela de diálogo procurar pasta do windows... Para resolver o  problema em alguns micros tive que copiar a unicows.dll para a pasta raiz do programa.
 
Lá tem o MSLU(Microsoft Layer for Unicode) para Win9x e ME já que eles naum trabalham nativamente como unicode (exceto Win2k, WinXP e Win2K3)
 
Espero que ajude a resolver o problema...
Abraços, Sidnei
   
caco
Pontos: 2843

SP - BRASIL
ENUNCIADA !
Postada em 16/07/2005 14:36 hs            

Olá! Vou passar um guia antigo que já foi discutido aqui no forum para a distribuição das runtimes do CR9. O arquivo unicows.dll e atl.dll tem versões diferentes para Windows 98 e XP, fique atento a isso.

Dê uma olhada nesse link http://support.businessobjects.com/library/kbase/articles/c2011871.asp que fala sobre a unicows.dll

Dentro da pasta "arquivo de programasarquivos comuns" crie o diretório "crystal decisions2.0in".

copie o arquivo "cr9deploy.reg" para o diretório criado.

altere o conteúdo do arquivo para o diretório "arquivo de programasarquivos comunscrystal decisions2.0in" que você criou. após a alteração, execute o arquivo e depois clique em 'sim'.

dentro desse mesmo diretório copie os seguintes as arquivos.

UNICOWS.dll
*craxdrt9.dll
querybuilder.dll
ufmanager.dll
atl.dll
**implode.dll
*crqe.dll
*keycode.dll
*crviewer9.dll

*registre com o utilitário regsvr32
**necessário para relatórios criados nas versões anteriores do crystal

os arquivos de acesso a dados tem os nomes iniciados em crdb_*.dll ou p2*.dll. se você usa o ado, você deve copiar para esse diretório o arquivo "crdb_ado.dll"

espero ter ajudado. consegui instalar, depois que o fábio cr, um colega nosso aqui do fórum, me passou o seguinte texto.

============================================================
the runtime files you require to distribute an application developed using the rdc are listed below.

============================================================
note:

crystal reports components now support side-by-side installation. this type of installation allows multiple versions of previously shared dlls to be installed on the same machine.

the dlls are isolated on the machine allowing applications that require different versions of the same shared dll to be installed on the same machine. you could have an application using version 9 of the report designer component (rdc) running on the same machine as an application using a previous version of the rdc.
============================================================

the crystal reports runtime files required for distribution with your application are dependent on the following:

- the method used to access the crystal report engine.

- the data source your reports use.

- the exporting options you want available to end-users.

- any additional components you may be using such as charts, maps, additional formula language functions, and so on.

when using the rdc 9 there are four main components:

- craxdrt9.dll - the crystal reports 9 activex designer runtime dll. this dll is the reporting engine and it exposes the object model hierarchy. distribute this dll with all applications using the rdc.

- crviewer9.dll - the crystal reports view control. use this component to preview your report. if you are not previewing the report, then it is not necessary to distribute this dll.

- crdesignerctrl.dll - embeddable crystal reports 9 designer control. this dll exposes report creation and designer capabilities in your application and allows you to create a report at runtime using an activex designer.

- craxddrt9.dll - crystal reports 9 activex designer design and runtime dll. this dll is the engine used to design and format reports at design time, as well as to access and process reports at runtime.

not all of these dlls need to be distributed with your application. only distribute these dlls if you use them in your application. for example, if you do not use the embeddable designer control, then you do not distribute crdesignerctrl.dll and craxddrt9.dll.

for a listing of the dependency files for the report designer component and the embeddable crystal reports designer control, refer to 'runtime.chm' and look under 'method used to access the crystal report engine'.

============================================================
note:

in addition to the dependency files listed in 'runtime.chm', the four main components of the rdc also require these dependency files:

craxdrt9.dll: mfc42.dll, msvcrt.dll, msvcp60.dll, comdlg32.dll, comctl32.dll
crviewer9.dll: comctl32.dll
crdesignerctrl.dll: msvcrt.dll, comctl32.dll
craxddrt9.dll: mfc42.dll, msvcrt.dll, msvcp60.dll, comctl32.dll, comdlg32.dll, msvcirt.dll
============================================================

steps required to allow printing of a report through an application (no viewing):

- microsoft dependency files that must be in place
-- mfc42.dll (version 6.0.8447.0 or higher)
-- msvcrt.dll (version 6.0.8397.0 or higher)
-- msvcp60.dll (version 6.0.8168.0 or higher)

- other dependency files (to be placed in the <%systemroot%>system32 folder)
-- comdlg32.dll
-- comctl32.dll
-- riched20.dll
-- usp10.dll

- crystal runtime files that need to be installed (recommended to install in this order)

-- run cr9deploy.reg; (or modify this file to where you will have your bin folder, the rest of this article assumes that the bin folder location is "c:program filescommon filescrystal decisions2.0in") refer to 'runtime.chm' and look under 'side-by-side installation' for more information.

-- copy UNICOWS.dll to "c:program filescommon filescrystal decisions2.0in". include UNICOWS.dll (version 1.0.3703.0 or higher) into distributions that are targeted for windows 9x computers. for more information, refer to knowledge base article c2011871

-- copy craxdrt9.dll to "c:program filescommon filescrystal decisions2.0in" (register this file using regsvr32.exe)

-- copy the following dependency files to "c:program filescommon filescrystal decisions2.0in"
--- implode.dll (for applications using reports created in versions previous to crystal reports 8)
--- querybuilder.dll
--- ufmanager.dll
--- atl.dll (there are two versions of atl.dll one for win9x and another for winnt/win2000. please refer to special instructions in 'runtime.chm' and look under 'additional components' and then 'paged-ranged export' for more information.)

-- copy crqe.dll to "c:program filescommon filescrystal decisions2.0in" (register this file using regsvr32.exe)

-- copy keycode.dll to "c:program filescommon filescrystal decisions2.0in" (register this file using regsvr32.exe)


steps required to allow viewing of a report in an application (to be added to the previous steps):

- copy crviewer9.dll to "c:program filescommon filescrystal decisions2.0in" (register this file using regsvr32.exe)


steps required to allow the embeddable designer to work (to be added to the previous steps):

- copy crdesignerctrl.dll to "c:program filescommon filescrystal decisions2.0in" (register this file using regsvr32.exe)

- copy craxddrt.dll to "c:program filescommon filescrystal decisions2.0in" (register this file using regsvr32.exe)


active data

if your reports use active data (ado, cdo, dao, rdo, etc) you need to distribute the correct active data driver. refer to 'runtime.chm' and look under 'database access' then 'active data' for more information.

database dlls

if the reports are not using active data and are connectioning (native, odbc, or ole db) to physical databases (such as microsoft access or sql server), refer to 'runtime.chm' and look under 'database access' for more information. database dll names start with crdb_*.dll or p2*.dll.

exporting dlls

distribute these dlls if your application has exporting functionality. only those dlls distributed will be valid options for exporting. for example, if only u2ddisk.dll and u2fcr.dll are distributed, then you can only export a report to a file disk in a crystal report format.

refer to 'runtime.chm' and look under 'exporting' for more information.

============================================================
note:

exporting to html

to export to html format you must include these runtime files in the "c:program filescommon filescrystal decisions2.0in" folder:

-- crxf_html.dll
-- reportrenderer.dll (register this file using regsvr32.exe)
-- pageobjectmodel.dll (register this file using regsvr32.exe)
-- webreporting.dll (register this file using regsvr32.exe)
-- commonobjmodel.dll (register this file using regsvr32.exe)
-- rptdefmodel.dll (register this file using regsvr32.exe)
-- u2fcompress.dll

-- gdiplus.dll (due to licensing restrictions, you must get gdiplus.dll from the microsoft web site. go to http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdkredist.htm and select "gdi+ rtm").

the report engine merge module includes
-- crxf_html.dll
-- reportrenderer.dll
-- pageobjectmodel.dll
-- webreporting.dll

you will need to add the following files to your install package manually in order to succesfully permit exporting to html:

-- u2fcompress.dll
-- commonobjmodel.dll
-- rptdefmodel.dll
-- gdiplus.dll

if you are missing a file, then you will receive the error message: run-time error '-2147190908 (80047784): failed to export the report"
============================================================


user function libraries (ufl)

if your report uses a user defined functions (a function listed in the formula editor's additional functions section), then the associated u2*.dll (ufl) file must be included in the distribution.

refer to 'runtime.chm' and look under 'additional components' then 'user function libraries' for more information.

============================================================
note:

other dlls that a crystal report may use (and need to distribute) include:

odbc files, rdo/dao/cdo files, ole db core & providers, sql server/oracle clients, access (dao/jet) files/engines.


Messenger: vbdev@uol.com.br

   
Anjo Miguel
PAULISTA
PE - BRASIL
ENUNCIADA !
Postada em 16/07/2005 15:25 hs            
Obrigado pessoal, vcou esta fazendo isso e respondo com o resultado.
   
creu
não registrado
ENUNCIADA !
Postada em 05/12/2008 20:44 hs   
tenho esse mesmo problema do unexpected error só que é em um jogo e em windows 98 SE :(
   
Página(s): 1/1    


Seu Nome:

Seu eMail:

ALTERAR PARA MODO HTML
Mensagem:

[:)] = 
[:P] = 
[:(] = 
[;)] = 

HTML DESLIGADO

     
 VOLTAR

  



CyberWEB Network Ltda.    © Copyright 2000-2024   -   Todos os direitos reservados.
Powered by HostingZone - A melhor hospedagem para seu site
Topo da página