-
Content Count
419 -
Joined
-
Last visited
-
Days Won
6
Roger Cigol last won the day on March 18
Roger Cigol had the most liked content!
Community Reputation
133 ExcellentTechnical Information
-
Delphi-Version
Delphi 11 Alexandria
Recent Profile Visitors
7872 profile views
-
Good morning @Michaell I will be honest: All of my projects used by customers are either Win 32 VCL using the Classic compiler (ie the old established projects) or Win 64 VCL using the "modern" clang compiler. So actually I have little "working" experience with the Clang 32 bit compiler. When I have upgraded a project from Classic I have gone first to the clang 32 compiler and then on to the Clang 64 "modern" compiler. I don't recall any migration being a real headache - although it's never a simple rebuild without doing anything ! I have today used RAD Studio 12.3 Enterprise to create a brand new C++ VCL 32 bit project. This uses a single form. It uses TEdit, TButton etc and also some of my own VCL components (which are written in C++ and are installed into the ide at design time). I use static linking for all packages, for the delphi run time and the delphi run time library (I do this for all projects I ship - I do recall in the past finding issues with my own components when I try to link at run time). I now have a working project. I can change between "Classic" and "Clang32" simply by selecting which compiler in the project options C++ compiler check box. The only other thing I have to do is manually change the library path to point to the directory with my *.lib file that contains the code for my own components (I have two builds of this - one done using the Classic and one done using the Clang32 <both have the same extension *.lib so I put them in different directories> - if I don't do this the project compiles ok but the linker reports loads of warnings saying that the library is built with the wrong compiler. I don't have any settings in the "additional options to pass to the compiler". I do have to do a full rebuild each time I swap the compiler type (completely reasonable!). All my source code, including the project file is in D:\Projects\Cigol quick test scratch\c code x For both cases the object code is output in D:\Projects\Cigol quick test scratch\c code x\Win32\Debug For both cases the object code files have a *.obj extension I think this only applies to the Clang 64 bit compilers
- 13 replies
-
- c++ builder
- v12.2
-
(and 2 more)
Tagged with:
-
It should compile with no additional options specified by the user - what do you see in this box ?
- 13 replies
-
- c++ builder
- v12.2
-
(and 2 more)
Tagged with:
-
In all my projects I have NO entries in the "Additional compiler options" So if you have something there and you don't know what it is I would suggest try deleting it.
- 13 replies
-
- c++ builder
- v12.2
-
(and 2 more)
Tagged with:
-
OK - I don't know if I qualify for your definition of "experienced user". But I am trying to help. By solving these sorts or problems we all become more experienced. But there is always more to learn (which is what makes life worth living). Please do check that you have no unexpected entries in "Additional options to pass to the compiler". Another thing to check is that you the object files are being created where you want them to be. Check project options: C++ Shared options | Intermediate output.
- 13 replies
-
- c++ builder
- v12.2
-
(and 2 more)
Tagged with:
-
I do recall (vaguely) once having to remove a load of options that were being passed to the clang compiler, without ever understanding where these options had come from. You need to check that there are no additional options being passed. Project options section: C++ Compiler | Advanced | Other options | Additional options to pass to the compiler
- 13 replies
-
- c++ builder
- v12.2
-
(and 2 more)
Tagged with:
-
This is strange: I have not seen this issue before when migrating from Classic to Clang32. What version of C++ Builder / RAD Studio are you using?
- 13 replies
-
- c++ builder
- v12.2
-
(and 2 more)
Tagged with:
-
Which compiler are you using? (Classic, Clang32 or Clang64) ? Try changing compiler and see if you get a different behaviour (I know this may not be a fix but it may be useful to know).
-
C++Builder 12 Update 1: Migrating project, compiler versions
Roger Cigol replied to BuilderFox's topic in General Help
But don;t worry (unless you also have delphi projects), C++ projects that use 3rd party components that happen to be written using Delphi will work just fine. C++ with the VCL or Firemonkey works fine too. Which ompiler to use depends on your aims for the upgrade. Does the original project use the 32 bit "classic" compiler? if so then for the first stage of the upgrade I would suggest continuing to do so. In my experience you will have very little problems (usual no problems) with this change -
Wat do you use for installing on a Windows 11 macine ?
Roger Cigol replied to EfDev's topic in Tips / Blogs / Tutorials / Videos
It was so long ago when I first used it. But I am sure it's easy to do. The script system is straightforward and there's lots of help out there. My install operations are not complicated though (just exe, dll, desk top short cuts etc). -
Wat do you use for installing on a Windows 11 macine ?
Roger Cigol replied to EfDev's topic in Tips / Blogs / Tutorials / Videos
I also use InnoSetup - and I use C++ for many many projects (12.3 Athens) -
Can you run your project under the debugger, then put a breakpoint on the button press and then single step into the code that shows the form. That will bring the form .pas (and .dfm) into the IDE
-
Me too: Got here because of the same issue - and also was really annoyed by this too ! Many thanks to @peardox
-
The delphi components are all available from the component pallet. This is reasonably well organised into groups which give a good indication of the type of functions provided by each set. Best way to learn is to create an empty form and put the component on it. This brings up all the properties (again most are self explanatory (at least for the commonly used components)). If you go to the corresponding source code and click so the cursor is in the component name and then use F1 this will bring up "help" documentation. For more (better?) help - you can search for the component in the DocWiki https://docwiki.embarcadero.com/RADStudio/Athens/en/Main_Page By the way - you did post your "Delphi" related question in the C++ section of the forum - perhaps not the best place to reach other delphi developers (although all the VCL components can be used with C++ too).
-
This strikes me as being a classic use case for inheritence. Define a base class of a type ObjectToStoreInStringGrid and then derive each of the types you need to store from this base class.
-
FireDAC connection lost on setting TFDQuery's SQL.Text
Roger Cigol replied to Mark Williams's topic in Databases
Closing a query does not close the corresponding database connection (this applies both if it is pooled connection or not pooled)