Looking for Types

Posted on 2002-06-13
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.

Question by:delphi3
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
LVL 11

Expert Comment

ID: 7077378
LVL 14

Expert Comment

ID: 7077408
Another ???
LVL 20

Expert Comment

ID: 7077552
If you remove that "Types" from the uses, about what is Delphi complaining then?
Independent Software Vendors: 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

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).

Author Comment

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

clicked OK

Now  Delphi 4 is looking the Pmain.pas

looking at a uses list:

  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:

  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

LVL 11

Accepted Solution

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.

Author Comment

ID: 7078342
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.'


Author Comment

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.


Author Comment

ID: 7080402
Thanks again
To All of you


Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month7 days, 13 hours left to enroll

632 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