Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

urgent... can not register the craxdrt.dll

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
vb6
cr 8.5 proff
computer with windows 95 (4.00950 B)

i create setup program with package and deploy wizard)
and
when it try to register the craxdrt.dll get the error:

LoadLibrary("craxdrt.dll") failed.
GetLastError returns 0x00000485

somebody can help me with this error,

please i am frustrated-??????
 
Look at the dependency file craxdrt.dep.

It probably won't register due to a problem with one of the other DLLs that craxdrt.dll depends upon.
 
ok, when pdw is in progress, give me message like can not find the dependency files for this dll.

where are this dependency filesor how can get this,

i am confused,

thank's
 
Look at article c2009174 on their website under knowledge base.
 
Typically, the .DEP file is in the same directory as the .DLL. Look in \Windows\System and you'll see dozens of them paired off.

The V7 version of craxdrt.dep (partly) looks like this:

[CRAXDRT.DLL]
Dest=$(WinSysPath)
Register=$(DLLSelfRegister)
Version=7.0.1.183
Uses1=IMPLODE.DLL
Uses2=CRPAIG32.DLL
Uses3=\program files\seagate software\sschart\SSCSDK32.DLL
; Database dlls
Uses4=P2SMON.DLL

That means it needs 4 DLLs: IMPLODE.DLL, etc. If those aren't in your kit or on the client's PC, then craxdrt.dll will not register.

 
i modified the dep files like articles c2009174 talks,
Knowledge Base Article ID: c2009174
"Missing Dependency Information.." error when using RDC and VB Deployment Wizard".

i did the change that this article say, i create another setup with pdw, and install in the win95 machine, and when go to register get the same error:

an error occurring during register the craxdrt.dll,

what i am wrong or what is my problem, because in all machine win95 that i will try to install, i get the same error.



 
If you are using the RDC, make sure you DO NOT have the Crystal32.ocx tagged in Project Components. If you do this will cause a conflict when trying to register. Also check your References. Check all the other Components and References in your project that pertain to Crystal. The only things you need when using the Report Designer Component are the following References:

Crystal Report Viewer Control(crviewer.oca)
Crystal Reports 8(.5 if you have it) ActiveX Designer Run Time Library (Craxdrt.dll)

Whenever you add a report to the project it Crystal automatically tags the CR 8.5 Act.X Designer Design and Run time Library. This reference is not necessary, so remove it. I've been told by Cr. support that a)all the functions in Craxddrt.dll have been included in Craxdrt.dll, so the former is not necessary b/c of this and b) that the Craxddrt.dll is only necessary when using charts and graphs. I don't know which is valid, but just know when you have a standard report you do not need the Craxddrt tagged as a reference.

After clearing out conflicting References, give it a shot. I had the same problem some time ago and this was the answer.

Oliver
 
i create the report from crystal report (8.5) and
i call the report in my program as follow:

in module i have:

Global crxApplication As New CRAXDRT.Application
Global report As New CRAXDRT.report

in a form i have this:

Set report = crxApplication.OpenReport("c:\carnets.rpt")

With report
.Database.LogOnServer "p2sodbc.dll", "conexion", , "", ""
.DiscardSavedData
.EnableParameterPrompting = False
.ParameterFields(1).AddCurrentValue ("08/01/2001")
.ParameterFields(2).AddCurrentValue ("08/15/2001")
End With

i have the crviewer1 control in the form:

CRViewer1.ReportSource = report
CRViewer1.ViewReport

 
What do you have under Project Components and Project References that relates to Crystal?
 
in Project References:

Crystal Reports 8.5 Activex Designer Run Time Library (checked)
Crystal Report Viewer Control (checked)

in Project Components:

Crystal Report Viewer Control (checked)
 
In your installation package are you including these dependancy dll's (dep's of Craxdrt):
MFC42.DLL
MSVCRT.DLL
MSVCP60.DLL

Oliver
 
when pdw bring me the dll's included in, do not see the files :

MFC42.DLL
MSVCRT.DLL
MSVCP60.DLL

AND in my windows system directory only have the craxdrt.dep files, that have :
; ------------------------------------------------------------------------------
; Dependency file for setup wizards.


[Version]
Version=8.5.0.217

; ------------------------------------------------------------------------------
; Dependencies for CRAXDRT.DLL


[CRAXDRT.DLL]
Dest=$(WinSysPath)
Register=$(DLLSelfRegister)
Version=8.5.0.217
Uses1=IMPLODE.DLL
Uses2=CRPAIG80.DLL
Uses3=MSVCRT.DLL
Uses4=MFC42.DLL
Uses5=MSVCP60.DLL
Uses6=\program files\seagate software\shared\SSCSDK80.DLL
Uses7=\program files\seagate software\shared\PG32CONV.DLL

; Database dlls
Uses8=P2SMON.DLL

; Export dlls
Uses?=..\crystal\crxf_RTF.DLL
Uses?=..\crystal\crxf_PDF.DLL

; Additional
;Uses?=CRXLAT32.DLL

[IMPLODE.DLL]
Dest=$(WinSysPath)
Uses1=

[CRPAIG80.DLL]
Dest=$(WinSysPath)
Uses1=

[MSVCRT.DLL]
Dest=$(WinSysPath)
Uses1=

[MFC42.DLL]
Dest=$(WinSysPath)
Uses1=

[MSVCP60.DLL]
Dest=$(WinSysPath)
Uses1=

[SSCSDK80.DLL]
Dest=$(WinSysPath)
Uses1=

[PG32CONV.DLL]
Dest=$(WinSysPath)
Uses1=

; Database dlls

[P2SMON.DLL]
Dest=$(WinSysPath)
Uses1=

; Export dlls

[CRXF_RTF.DLL]
Dest=$(WinSysPath)
Uses1=\program files\seagate software\shared\crtslv.dll
Uses2=\program files\seagate
software\shared\exportmodeller.dll

[CRXF_PDF.DLL]
Dest=$(WinSysPath)
Uses1=\program files\seagate sofware\shared\crtslv.dll
Uses2=\program files\seagate
software\shared\exportmodeller.dll

[CRTSLV.DLL]
Dest=$(WinSysPath)
Uses1=

[EXPORTMODELLER.DLL]
Dest=$(WinSysPath)
Uses1=

; Additional

[CRXLAT32.DLL]
Dest=$(WinSysPath)
Uses1=
 
That's just the DEP file. If you run DEPENDS.exe on the Craxdrt you will find that the dll's I listed are required to be on you client machine. It sounds like you don't currently have them in your Installation Package; add them.

This may very well solve you problem.

Oliver
 
i have not the DEPENDS.EXE, where find or get it.

when i trye to add the
MFC42.DLL
MSVCRT.DLL
MSVCP60.DLL
in the pwd, i get the message:

Below is a list of files for which dependency information could not be found. To proceed without the dependency information for the files(s) click ok. To permanently mark a files as having no dependency...

help me......
 
Are you using Microsoft Visual Studio? Do you also have the Visula Interdev. loaded?
 
no, only have vb 6.0,

but, i include the files
MFC42.DLL
MSVCRT.DLL
MSVCP60.DLL
without dependencies and the setup program register the dll...

but, when i run the program get the error:

Run-Time error '-2147192191 (80047281)':
Physical Database Not Found.

what is mean.....

 
What could it NOT find dependancy information for? If it is the files I listed that must be included that should be OK. They're dependancies are each other and some of the windows standard dll's. You will get that message from time to time, the trick is to know what your dependancies really are.

You need to use Dependancy Walker to open the dll's and find out their dependancies. Here is a link where you should be able to find it This program is a standard Microsoft Visual Studio tool and should also be found under Start, Programs, Microsoft Visual Studio 6.0, Microsoft Visual Studio 6.0 Tools.

There is a better installation packgage program than the PDW. It is part of Visual Interdev; you can get the most current version of the Microsoft Visual Installer from Microsoft (I may have a copy of it somewhere) but you must have Interdev loaded to use it.


Oliver
 
To the best of my knowledge there is NO conflict between the OCX and RDC DLLs. Although you don't need to check the OCX component if you're not using it, there's no harm done. Just extra files being loaded on the client PC.

The .DEP file tells you what has to be where on YOUR PC THAT YOU ARE USING TO BUILD THE KIT. If you don't think so, try renaming the .DEP file.

If the files are not where the .DEP says they are, the kit is going to have errors and forget about installing it elsewhere. You have to follow all of the files in the .DEP file (or any .DEP file) and make sure that each dependency file is in the directory that the .DEP thinks it is ON YOUR PC.

Uses1=IMPLODE.DLL means that Implode.DLL is supposed to be in the windows system directory. That's \Windows\System or \Winnt\System32. Etc. Sometimes there is a full path name. You must check out every one.

That was the "bug" listed previously in this thread. The .DEP file had the wrong directory for one Crystal file. But on YOUR PC you need to check every dependency. Otherwise, you'll just spin your wheels indefinitely.
 
OK, you're closer. What database are you connecting to? You should be including the P2SODBC.DLL if your database is SQL. Also include the P2SMON.DLL. I can't remember exactly what it is for, so if you like try just including the P2 dll associated with you specific database; if you still have a problem then include the P2SMON.dll.

Oliver
 
Yeah, it looks like you do need to include the P2SMON. It is used by Crystal to access ActiveX data sources.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top