AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

IInteger class

Ein Thema von Scouz · begonnen am 15. Nov 2005 · letzter Beitrag vom 16. Nov 2005
Antwort Antwort
Seite 2 von 2     12   
Scouz

Registriert seit: 15. Nov 2005
8 Beiträge
 
#11

Re: IInteger class

  Alt 16. Nov 2005, 10:59
I keep getting:

Build
[Fatal Error] Test.dpr(8): Bad packaged unit format: ..\DECMath.dcp.ConsoleForm

I've followed the guide by naming the dir DEC_D7, and I even tried renaming the Test dir to DEMO

UPDATE:

Bad packaged unit format: C:\Programmer\Borland\Delphi7\Lib\DEC_D7\DECMath.d cp.NInts

I tried including it as a runtime package (DECMath) and if I don't include any of the units (NMath, NInts, ...) it compiles, but if I do NMath, it comes up with that error (same thing with NInts as the example is from)

Note: I downloaded DECMathD7.zip posted in a thread (I'm using D7 yes)
  Mit Zitat antworten Zitat
Benutzerbild von negaH
negaH

Registriert seit: 25. Jun 2003
Ort: Thüringen
2.950 Beiträge
 
#12

Re: IInteger class

  Alt 16. Nov 2005, 12:03
Ok, first some explanations:

1.) you have nothing to install with DECMath, no designtime package, paths and so on...
2.) you create a new folder like c:\DEC_D7\
3.) you unzip DECMathD7.zip into this folder, with folder option checked
4.) then you start D7
5.) open c:\DEC_D7\Demo\Test.bpg
6.) press F9, finish

now some restrictions:

1.) you must never copy any files to another locations, that make the work only complicated
2.) DECMath is a binaries only distributation, thus you can't recompile any units of it, except some included demo sources
3.) all stuff is fully functional, can be fully tested and isn't limited to
4.) ensure that Delphi has no access to older DEC Part I stuff, eg. to the original and free avaiable Delphi Encryption Compendium. Thats realy important, because DECMath was compiled with another inofficial version of DEC Part I. Temporary you can easily rename any other DEC folders to prevent access for the Compiler, otherwise Delphi tries to recompile all units. In such a case you have to shutdown Delphi, delete the old files and reinstall the ZIP File to renew all DCUs and BPLs.
5.) all sources in folder c:\DEC_D7\LibIntf\ are only the interface sections of my original sources, means without the implementation sections. Thats for documentation purposes only.
6.) before installation please delete all DEC Stuff in your ..\Borland\Delphi 7\Lib\ folder
7.) please remember, these distributations are inofficial and limited for academical and private use only
8.) DECMath contains nothing that must be installed into designtime packages
9.) all projects in DECMath use relative paths in they project options, thus you must nothing change in any global searchpaths of Delphi oder your operating system. Take a look into project options -> compiler paths as example from Test.dpr

In short: create a new folder, unzip DECMathD7.zip into, run Delphi, open ..\Demo\Test.bpg, and run it.

Best Regards, Hagen

[edit]
Ups, if i wrote above \demo\test.dpr then it could be maybe \test\test.dpr but essentialy thats not important
[/edit]
  Mit Zitat antworten Zitat
Scouz

Registriert seit: 15. Nov 2005
8 Beiträge
 
#13

Re: IInteger class

  Alt 16. Nov 2005, 12:31
1.) you have nothing to install with DECMath, no designtime package, paths and so on...
2.) you create a new folder like c:\DEC_D7\
3.) you unzip DECMathD7.zip into this folder, with folder option checked
4.) then you start D7
5.) open c:\DEC_D7\Demo\Test.bpg
6.) press F9, finish

I tried following that... First I made sure that Delphi had no access to any files from DEC (I deleted the folder I installed in and then I did a search to see if any files with DEC was still there).
Now I unzipped the .zip to C:\Programmer\Borland\DEC_D7. I then opened up delphi and made sure that the library paths were not added.
Then I opened ..\DEC_D7\Test\Test.bpg and no errors were shown. Then I hit F9 and it suddenly complained about ConsoleForm.pas.
Then I went to Project -> Options -> Packages and made DECMath as Runtime in the field at the bottom.
I then tried to hit F9 again and then I got this error again:

Build
[Fatal Error] Test.dpr( 8 ): Bad packaged unit format: ..\DECMath.dcp.ConsoleForm
  Mit Zitat antworten Zitat
Benutzerbild von negaH
negaH

Registriert seit: 25. Jun 2003
Ort: Thüringen
2.950 Beiträge
 
#14

Re: IInteger class

  Alt 16. Nov 2005, 16:01
Hm ok let me a little bit time i test this tonight again. Maybe it could be a different Delphi 7 version, i have only the first version of it installed without patches or updates.

Zitat:
[Fatal Error] Test.dpr( 8 ): Bad packaged unit format: ..\DECMath.dcp.ConsoleForm

Then I opened ..\DEC_D7\Test\Test.bpg and no errors were shown. Then I hit F9 and it suddenly complained about ConsoleForm.pas.
It seems to me that the compiler try to rebuild ConsoleForm.DCU and logicaly it can'nt find ConsoleForm.pas because it's not included. But why it complains the ConsoleForm.DCU into DECMath.dcp (DCPs are only a collection of precompiled DCUs into one file) is me unknown.

Try to move ConsoleForm.DFM (unmodified !!) to folder \test\. I suppose that could be a problem because DFMs as resources are'nt included into DCUs and even DCPs.

Iff nothing help i try to remove ConsoleForm.pas from DECMath Package and give you the PAS Source. Then you can recompile it separately.

Best Regards, Hagen
  Mit Zitat antworten Zitat
Scouz

Registriert seit: 15. Nov 2005
8 Beiträge
 
#15

Re: IInteger class

  Alt 16. Nov 2005, 17:45
It didn't work by moving ConsoleForm.DFM to the Test directory. It still complains about that error with "Bad packaged format"
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 2 von 2     12   


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 18:19 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz