Solved

Looking for Types

Posted on 2002-06-13
9
206 Views
Last Modified: 2010-04-04
Hi All,
I have a program that lists Types in the uses. I have D4 and am unable to access this. Is there  some one that has a suggestion where it is available or how to adapt so that I can run the program.

Delphi3
0
Comment
Question by:delphi3
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 11

Expert Comment

by:robert_marquardt
ID: 7077378
???
0
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 7077408
Another ???
0
 
LVL 20

Expert Comment

by:Madshi
ID: 7077552
If you remove that "Types" from the uses, about what is Delphi complaining then?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 11

Expert Comment

by:robert_marquardt
ID: 7077582
Ah, Madshi is the first one to understand your question.
Seems we are still sleepy.
As Madshi suggested remove Types and recompile. If an error occurs then add Windows and SysUtils to the uses.
If you still get an error then report back with the error text (copy and paste works).
0
 
LVL 4

Author Comment

by:delphi3
ID: 7078192
Hi All,
Thanks for responding

Supposedly the person who wrote this uses Delphi 6 and I have Delphi 4

Listing my actions:

clicked on Pmain.dpr

>Error creating form : invalid stream format (twice)

clicked OK (twice)

>Access Violation at address 40003DE6 in module 'Vcl40.bpl. Read of address
00000012.

clicked OK

Now  Delphi 4 is looking the Pmain.pas

looking at a uses list:

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ExtCtrls, StdCtrls,globunit,Math,previw;

A Compile  shows:
>[Fatal Error] main.pas(6): File not found: 'Variants.dcu'

Removed Variants

A Project/Compile  shows:

unit globunit comes into view:

looking at this globunit uses list:

interface
  uses Graphics,Types,ExtCtrls;

A Project/Compile  shows:

> [Fatal Error] globunit.pas(4): File not found: 'Types.dcu'

Replaced Types with: Windows,SysUtils,(suggested by somone listed above reading
this Q at EE)

A Project/Compile  shows:

>[Error] globunit.pas(34):[Error] globunit.pas(34): Could not create output file
'D:\delphi\MyWork\bysj\source2\globunit.dcu''



Delphi3
0
 
LVL 11

Accepted Solution

by:
robert_marquardt earned 50 total points
ID: 7078226
Check if you already have a globunit.dcu and if it is read-only. That can happen easily if you copied the files from a CD-ROM.

Invalid stream format means that Delphi failed to read the .dfm file. See if it is binary or text format.

Variants.dcu is new in Delphi 6. Not needed for Delphi 4 and 5 because it is in Windows.pas.
0
 
LVL 4

Author Comment

by:delphi3
ID: 7078342
Robert,
This is a program that I obtained from another EE participant that was sent to me as a .zip file,  not on a CD.  It has a the .exe,and  the .pas, .dfm and  .dcu and other 'complied' files in the zip.

I do have both the  globunit.pas and the globunit.dcu neither shows the attribute 'read only' when queried for properties.

So as a test I removed all the dcu's and let my D4 compile them. Errors all over the place, so much so that the it looks like a corrupt program , and I had to use Ctrl, Alt,Delete key sequence to get to the  Task manager to end the Delphi 32.exe.

As a test run of the .exe that was shipped it did not show correctly.

As a call back to the  person who developed the program the comment was 'it runs fine for me. I have no idea what is your problem.'

Delphi3
 
0
 
LVL 4

Author Comment

by:delphi3
ID: 7080395
Hi All,

Thanks for stopping by:
Pay off goes to Robert for being the most involved

Guess we are done.

Not much else to add but toss it in the garbage.

Delphi3
0
 
LVL 4

Author Comment

by:delphi3
ID: 7080402
Thanks again
To All of you

Delphi3
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Printing problem 2 124
Browsing a TTreeView in Delphi 5 49
Using MMsystem To change audio input 1 40
Automatic field translation delphi 10.2 6 46
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question