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

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
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?
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
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…

856 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