Solved

Looking for Types

Posted on 2002-06-13
9
192 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
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
 
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now