Roger Cigol

Current status: "Tokyo 10.2 looks good to me !" - 4 months ago
Member since: Thursday, 09 October 2014
Last login: 16 hours 13 minutes ago
Profile viewed: 1,917 views

Your Rank: 32
Points: 85

Roger Cigol replied to the topic 'Modernize a delphi 7 application' in the forum. 15 hours 6 minutes ago

Hi TKI
Get Delphi Tokyo 10.1.1 and manually port your old project across (sounds difficult but simply means create a new project and add in all the delphi source code files used in your old project to the new project file - usually takes ten minutes) and you will be away.
You may also need some care over use of Unicode strings (was Delphi 7 still using Ansii strings? I think so). This is not normally a problem unless your application processes strings character by character.
Go for it - you will soon be "very modern" !
Regards, Roger

Read More...

Roger Cigol replied to the topic 'is there a web master here' in the forum. 3 weeks ago

Hi Assapan,
I completely agree with you.
Embarcadero should realise that this forum area has the potential to be a genuine plus feature of using Embaracadero products. Conversely if it's full of spam then why should anyone buy an Embarcadero license if they feel the company can't even keep their main communications channel workable.
Come on Embarcadero - you can do better than this !
Regards, Roger

Read More...

Roger Cigol replied to the topic 'Printing a PDF' in the forum. 3 weeks ago

Hi Oliver,
An interesting question.
"Printing a pdf" is one of those statements that sounds easy but when you think about it involves a lot of work. You need to resize, convert it into pages and send them to the printer in sequence. Options about colour, resolution, orientation etc.
Simplest way is to pass the pdf back to the operating system. This will open up the application that the user prefers for looking at pdf files. Use code like:

String FullPath = FullPathNameOfPdfFileIncludingExtension;
if (FileExists(FullPath)) {
ShellExecute(Handle, NULL,
FullPath.w_str(),
NULL, NULL, SW_SHOWNORMAL);
}
else {
// display some error message here
}
}

The user can then use the application to print as they see fit.
If you really want to automate the printing process completely then one
way would be to use an application that handles pdf files and use OLE
automation to drive the application to get it to print out as your need.
You will need a good understanding of the OLE API to do this. I think
Adobe Acrobat Reader is one (obvious) candidate.
Another you could look at is
FlexiPDF by SoftMaker
www.softmaker.com/en/flexipdf
There are lots of others out there too.
Hope this points you in the right direction.
Regards, Roger

Read More...

Roger Cigol replied to the topic 'Old Borland Builder 5 Import?' in the forum. 1 month ago

Hi Dibya,
Application->Title does not change the name of the exe file.
Take a look at
http://docwiki.embarcadero.com/Libraries/Tokyo/en/Vcl.Forms.TApplication.Title
If you want to change the name of your exe file you need to change the name of your project. Do this by using "Save As....".
If you are using a modern version of the Embarcadero product then make sure you follow the "rebuild the project using the same units as were used in the *.bpr file" advice that is given earlier in this forum discussion.
Regards, Roger

Read More...

Roger Cigol replied to the topic 'Delphi 10 free starter edition - ISO image-where?' in the forum. 1 month ago

Hi Michael,
Did you ever find a Delphi Starter ISO URL ?
Adrian has just posted the same request in the Embarcadero Forums and I was trying to help him and ran across your posting....
Regards, Roger

Read More...

Roger Cigol replied to the topic 'Orpheus GetCellAttributes' in the forum. 1 month ago

Hi Oliver,
I think you must be using some third party component here
I don't recognise TOvcCellAttributes or otxInvisible
(Embarcadero Docwiki doesn't mention these either).
Most likely problem is you will need to upgrade your third
party component to suit the latest compiler.
Might be nice to know what you are using, what problem it
solved for you and how good you think the third party component
is so other Embarcadero users can benefit from your experience.
Regards, Roger

Read More...

prabhatmohanty thanked Roger Cigol in topic Delphi for Python 1 month ago
Roger Cigol replied to the topic 'Delphi for Python' in the forum. 1 month ago
Roger Cigol replied to the topic 'Unicode sprintf' in the forum. 1 month ago

Hi Oliver,
The statement
Form1->Caption = temp;
assigns the value of temp to the PROPERTY called Caption in the class Form1.
Under the cover this assignment can (and usually does) hide a lot of other
necessary activity (typically by actually calling a WriteTheProperty() [my name] method).
In your particular case updating the property will also ensure that the painting
of the form on the screen also updates the caption.
Your example that doesn't work:
Form1->Caption.sprintf (L"123");
will make the actual string Form1->Caption equal to "123" but, because it doesn't
use the "=" notation it doesn't call the property WriteTheProperty() method so the
form displayed caption fails to update.
For more information (and perhaps a better explanation!) search for

__property

in the Embarcadero docwiki
Regards, Roger

Read More...

Roger Cigol replied to the topic 'Pega 7 CRM web app memory consumption' in the forum. 1 month ago

Hi Soujanya,
I didn't know what Pega 7 was. So I looked it up. Now that I do I can't help wondering what your posting has to do with any Embarcadero product.
So, whilst interesting, you are not likely to be helping fellow Embarcadero users, or yourself, by posting your question here. If I am missing something completely then I apologise and ask you to amplify your question to explain the part that Embarcadero plays in your question.
Regards, Roger

Read More...

Roger Cigol replied to the topic 'std::tuple and 'Classic Compiler'' in the forum. 1 month ago

Hi Canellas,
The "Classic" compiler is not C++ 11 compliant. In fact Embarcadero haven't moved this compiler on for some time now. It is "Classic" in the sense of "classic car".
I still use it at times because it compiles a lot more quickly than the clang compiler (which is the one that is used when you clear the "use classic compiler" check box in the project options.
The clang compiler is really the one to use for all new projects.
I just wrote a simple VCL project with a single button and in the button click event handler I wrote:
//


double _d1 = 0.183330997825;
double _d2 = 2.26665997505;
std::ofstream _file("c:/trash/double.txt", std::ios_base::trunc);
_file.precision(12);
_file << _d1 << "|" << _d2 << std::endl;
//
When I run this I get the correct text file representation of the two double numbers
in the "double.txt file. This is true if I compile and run using both the "classic" compiler
and the "clang" compiler.
I am intrigued as to why your's is not working ! (I realise this is not much help).
Regards Roger.

Read More...

Roger Cigol replied to the topic 'source files always being recompiled' in the forum. 1 month ago

Hi Canellas,
I am sure all of this works in the IDE (this is all very standard stuff). So there must be another reason you are getting a full compile on using menu item Project | Make "your project name".
Other simple possible reasons:
a) you have used menu item Project | Clean to clear out all the old compiled files
b) you have edited a header file that is #included in all (or most) of the *.cpp files in your project (hence they need recompiling.
c) you have manually delete the *.obj files for other compiler generated files (using eg. Windows Explorer).
Regards, Roger

Read More...

Roger Cigol replied to the topic 'Delphi 10.2 Tokyo - Scaling options?' in the forum. 1 month ago

Hi Michael,
If you are using VCL you have a big job ahead of you, I fear.
If you are using FireMonkey you can maybe use a TScaledLayout on each window and then move all your components inside of this (drag them using the Form "Structure" part of the tool bar).
Regards, Roger

Read More...

Roger Cigol replied to the topic 'Devart SDAC vs ?' in the forum. 1 month ago

Hi Keith,
I would check that e-mail carefully.
Pro version allows unlimited use of FireDAC as part of your compiled exe (or dll) (or similar for Android / Ios). Only restriction is that the database must reside on the local machine (ie the same machine as the exe), not over a network.
Enterprise version allows unlimited use of FireDAC [size= 12.16px; line-height: 15.808px]as part of your compiled exe (or dll) (or similar for Android / Ios).[/size][size= 12.16px; line-height: 15.808px] No restriction on where the Database is (ie can be local machine, private networked machine or internet machine).[/size]
Regards, Roger

Read More...

Roger Cigol replied to the topic 'source files always being recompiled' in the forum. 1 month ago

Hi Canellas,
Before a lot of time is wasted can we just check the very obvious thing first:
Are you sure you are using "make" (which will compile files it only thinks are out of date) or are you using "build" (which will always compile all files?
Regards, Roger.

Read More...

Roger Cigol replied to the topic 'Devart SDAC vs ?' in the forum. 1 month ago

Hi Keith,
FireDAC is free to use (given that you have genuine licensed IDE Delphi/C++Builder/RAD studio. There is no royalty to pay for distribution.
I think you are getting it mixed up with either
a) InterBASE (the Embarcadero "in house" database) - only the local database version of InterBASE is royalty free (I think - I am not an InterBASE license expert!)
or
b) RAD Server - where you are compiling code to act as a server (most often some form of database server).
FireDAC is great, simple and cost effective.
The other restriction you may need to be aware of is that if you have the "Professional" version of Delphi/C++ Builder/RAD Studio you can only use FireDAC for local database systems (ie where the database (and associated server if applicable) reside on the same machine as the exe application you are building.
If you want to use FireDAC to access data held on a machine elsewhere on a network (or on the internet) you need to purchase the "Enterprise" (or higher) level license.
Regards, Roger

Read More...

Roger Cigol replied to the topic 'How to FMX TEdit background colour ?' in the forum. 2 months ago

Hi Roger,
To do this in Firemonkey you need to use the "styles" feature.
There has been some discussion about how this is a bit "sledge hammer to crack a nut" for some applications. But that's the area you need to read up on....
Regards, Roger

Read More...

Roger Cigol replied to the topic 'cannot attach file or Tag to posts' in the forum. 2 months ago

Hi Didier, I agree, the "Tags" part of the forum posting doesn't seem to be working (Chrome running on Windows). Interesting to compare the word "Tag" at the bottom of the forum post (which does nothing) with the "Tag" tab helpfully followed by "enter tag here" box that exists on the community.embarcadero.com "Answers" section when you post a question.
Hopefully someone at Embarcadero will spot this and get it working !
Regards, Roger

Read More...

Roger Cigol replied to the topic 'C++ Builder can't Set Breakpoints on some stmts' in the forum. 2 months ago

The lack of a blue dot means the compiler has not generated any code. This is either because it has been #defined out (conditional compilation), the function has not been used, or the expression has been optimised away (or some other reason). If you are interested you could spend time thinking, looking at the compiler options or even looking at the resultant assembly language to work out why the compiler has not generated code. But it's easier to pick a blue dot line near by and start single stepping....
Regards, Roger

Read More...