direktor05 2 Posted Sunday at 07:12 PM 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
Lajos Juhász 325 Posted Sunday at 07:20 PM 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
David Heffernan 2455 Posted Sunday at 09:20 PM Probably the biggest problem is the inability to be precise in the statement of your issue 1 Share this post Link to post
direktor05 2 Posted Monday at 07:39 AM 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
direktor05 2 Posted Monday at 08:10 AM 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
Lajos Juhász 325 Posted Monday at 08:11 AM 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
Lajos Juhász 325 Posted Monday at 08:13 AM 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
Lajos Juhász 325 Posted Monday at 08:33 AM 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
direktor05 2 Posted Monday at 08:54 AM 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 However OnGuard is perfectly well built without errors on it's own: But when built inside reg4.exe project it will throw errors Share this post Link to post
Lajos Juhász 325 Posted Monday at 09:02 AM you are showing the uses section not the scope names for the project. Share this post Link to post
direktor05 2 Posted Monday at 09:22 AM Damn you are genius! VCL was not added in the scope. Share this post Link to post
direktor05 2 Posted Monday at 09:28 AM 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