Jump to content
Registration disabled at the moment Read more... ×
Sign in to follow this  
direktor05

strange errors appear with standard VLCs

Recommended Posts

I get errors like:

 

Could not compile used unit Forms, StdCtrls

Unit Forms not found

 

inside some components pas files. Mostly using this component in Delphi 12: https://github.com/rofl0r/TntUnicode

 

What could be the problem and how to solve it? Is it possible that some components Forms class definition of overload is overriding standard VCL units?

Share this post


Link to post

Most probably the unit scope names is empty for the package. 

 

Why would you like to use TntUnicode in a Delphi 12 project? It is outdated, the purpose of the components were to add unicode support for Delphi. Delphi strings and VCL is unicode compilant since Delphi 2009.

Share this post


Link to post
12 hours ago, direktor05 said:

I get errors like:

 

Could not compile used unit Forms, StdCtrls

Unit Forms not found

 

inside some components pas files. Mostly using this component in Delphi 12: https://github.com/rofl0r/TntUnicode

 

What could be the problem and how to solve it? Is it possible that some components Forms class definition of overload is overriding standard VCL units?

Exactly. Because it's an old app still requiring components from this package. Like TnTButtons and others. But it's making a mess. Also TPOnGuard also causing the same kind of problems. It can be built by itself without errors if included in another project via uses it causes Forms not found error and similar standard Delphi VCLs can no longer be recognized.

Share this post


Link to post

The biggest problem is if I throw this components out would have to rewrite a lot of code which would take me more time than including them.

Share this post


Link to post

An old application should not require the TNT Components. You should upgrade the forms to use the default VCL components. Adjust the scope names or use full unit names to make the IDE faster and more stable.

Share this post


Link to post
2 minutes ago, direktor05 said:

The biggest problem is if I throw this components out would have to rewrite a lot of code which would take me more time than including them.

I  doubt that could be true. I did the conversion from TNT to native VCL 11 years ago, 99% of the job was done using a refind script.

Share this post


Link to post

I do not have to see a screenshot in order to know that the unit scope names for the project is most probably empty or not complete?

Share this post


Link to post

It maybe not complete but for sure not empty. OnGuard is the component called from main project reg4.exe as seen below via another package. EviTrivial unit (from another package) will include OnGuard package

 

image.thumb.png.e686880ddfb775780a706ef7fe9367e4.png

 

However OnGuard is perfectly well built without errors on it's own:

 

image.thumb.png.3b3d60bb5488e0c83551c825d0084459.png

 

But when built inside reg4.exe project it will throw errors

 

image.png.3e9af077c2ca8a04a1a49896345d9cbc.png

Share this post


Link to post

I have some paths screwed. It calls me always the wrong package that I have fixed already, still shows me the wrong unfixed code. 

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×