Posts

Showing posts from August, 2014
I've posted a few photos on my The TIndex  Google+ page from the recent #XE7 preview events held in Australia last week. There's about 20 photos split over 5 posts. Lachlan Gemmell

TColor wants RGB colors backwards

TColor wants RGB colors backwards http://softwareonastring.com/2014/08/31/why-does-my-panel-display-the-wrong-color

A rather common question on StackOverflow, the Delphi newsgroups and elsewhere is how to display a drop down menu when the user presses a button.

A rather common question on StackOverflow, the Delphi newsgroups and elsewhere is how to display a drop down menu when the user presses a button. There are many proposed solutions. Here is mine: ... http://blog.dummzeuch.de/2014/08/31/showing-a-dropdown-menu-when-clicking-a-button/

Originally shared by A. Bouchez

Originally shared by A. Bouchez http://blog.synopse.info/post/2014/06/09/Performance-comparison-from-Delphi-6%2C-7%2C-2007%2C-XE4-and-XE6

Are Delphi programmers happier than programmers using other languages?

Are Delphi programmers happier than programmers using other languages? http://codeofrob.com/entries/evented-github-adventure---sentiment-analysis-of-github-commits.html #delphi   #happiness   http://codeofrob.com/entries/evented-github-adventure---sentiment-analysis-of-github-commits.html

Need help trying to debug a ToolsAPI add-on that I am trying to write for Delphi XE on Windows 7. Every time I try to step through my code, BDS.exe gets killed and my web browser gets sent to http://www.embarcadero.com/product-validation-error :(

Image
Need help trying to debug a ToolsAPI add-on that I am trying to write for Delphi XE on Windows 7. Every time I try to step through my code, BDS.exe gets killed and my web browser gets sent to  http://www.embarcadero.com/product-validation-error :( Checking out the common solutions doesn't help, except that the certificate it has is close to the one on the common solution page (mine has the dates the following day but the link is no good, as it is for Window XP). I do have a legit version of Delphi XE (used to be able to debug ToolsAPI add-ons that I wrote) and I wasn't part of the XE3 (or any other version) testing. If I am not debugging a ToolsAPI add-on, all is fine. Things I have tried, without any change (obviously, otherwise I wouldn't be asking here): * Removing DDevEntensions and IDEFixPack * Removing the latest unstable CnPack * Un-installing a number of Windows Updates (just in case) Any suggestions? I have been battling with this for the last four days :-(

Generators.

Generators. generator Fib(max: integer): integer;  //returns a IEnumerable var    i: integer;    last, current, temp: integer; begin    last := 1;    current := 1;    if max >= 1 then       yield 1;    if max >= 2 then       yield 1;    for i := 3 to max do    begin       temp := last + current;       yield temp;       last := current;       current := temp;    end; end;

Slicing, like Python can do.

Slicing, like Python can do. Sub-arrays: mySubArray := myArray[3..5]; String manipulation: //removes first and last character, useful for removing parens or brackets function UnwrapString(const value: string): string; begin    result := value[2..-1]; end; function StripFileExt(const filename: string): string; var    ext: string; begin    ext := ExtractFileExt(filename);    if ext = '' then       result := filename    else result := filename[..-length(ext)]; end; And so on.  There's all sorts of useful things you can do with slicing.

Smarter array constants.

Smarter array constants. There's no good reason why the following should not compile: const values: array of integer = (1, 2, 3, 4, 5); (Note the lack of an explicit range.) From some of the preview stuff, this may be included in XE7, but it's not really sure yet.  Can anyone confirm?

Question number 2:

Question number 2: {$R myresource.res IOS} What's that second parameter in a resource inclusion statement for?
Is source code formatting or just fixed font possible with G+ ?

Question number 1:

Question number 1: di := di + [4, 5]; What is the type of di?

#VCL and #FireMonkey #multi-device development #RADStudioXE7 - See what's coming-take your apps to the next level -...

#VCL and #FireMonkey #multi-device development #RADStudioXE7 - See what's coming-take your apps to the next level -   http://buff.ly/1pcKD00 http://buff.ly/1pcKD00

#VCL and #FireMonkey #multi-device development #RADStudioXE7 - See what's coming-take your apps to the next level - http://buff.ly/1pcKD00

#VCL and #FireMonkey #multi-device development #RADStudioXE7 - See what's coming-take your apps to the next level -   http://buff.ly/1pcKD00 http://buff.ly/1pcKD00

Anyone know what's up with the links to the videos for the Developer Skill Sprints? Yesterday, David I said he had not yet posted the two latest, but there are very few linked on this page: http://www.embarcadero.com/resources/webinars, where most of the links are to the sign-up.

Anyone know what's up with the links to the videos for the Developer Skill Sprints? Yesterday, David I said he had not yet posted the two latest, but there are very few linked on this page:  http://www.embarcadero.com/resources/webinars , where most of the links are to the sign-up. Is there a different location for the links to replays?

TMS Day in Denmark on November 4th!

TMS Day in Denmark on November 4th! We are excited to announce that Jens Fudge, Embarcadero MVP for Denmark, and TMS software are planning a TMS day in Denmark on November 4th. All day, sessions will be spent on TMS VCL components, TMS cloud components and TMS FireMonkey components with also sufficient session time allocated to handle your specific questions on TMS components. The sessions will be given by Bruno Fierens, Embarcadero MVP in Belgium and CTO from tmssoftware.com . For more information : http://www.tmssoftware.com/site/blog.asp?post=293 http://www.tmssoftware.com/site/blog.asp?post=293
Eric Grange does DWS have an import utility? If not, how long before it gets one? :-)

Blog post "RAD Studio Tech Preview Webinar on September 4" at http://blog.

Blog post "RAD Studio Tech Preview Webinar on September 4" at http://blog.marcocantu.com/blog/2014_august_radstudio_techpreview.html and sign up for the webinar at  http://forms.embarcadero.com/RADXE7FirstLookWebinar

Blog post "RAD Studio Tech Preview Webinar on September 4" at http://blog.marcocantu.com/blog/2014_august_radstudio_techpreview.html and sign up for the webinar at http://forms.embarcadero.com/RADXE7FirstLookWebinar

Blog post "RAD Studio Tech Preview Webinar on September 4" at http://blog.marcocantu.com/blog/2014_august_radstudio_techpreview.html and sign up for the webinar at  http://forms.embarcadero.com/RADXE7FirstLookWebinar
OK, folks, the (now withdrawn) KB2982791 has been re-issued under KB2993651, and revives the issue with the TTR file, so anyone who has not installed IDEFixPack should do so now.

Hi Guys

Hi Guys, We're looking at building a new system in Delphi, and have a requirement for BPM and rules to be handled outside of code. I've been looking at Drools (no Delphi ports unfortunately), mostly because I don't see any cross platform alternatives available. Any recommendations?

Well off topic. A beautiful day in Eidfjord

Image
Well off topic. A beautiful day in Eidfjord

Geek & Poke: Documentation

Image
Geek & Poke: Documentation #tongueincheek

Suddenly my XE5 lost is VCL capatibilite!

Suddenly my XE5 lost is VCL capatibilite! Weird... I dont want to remove it as I tried to reinstall and fix installation but it did not solved. I cannot create a new VCL application (Menu does not show any option) and that applications that already exists dont show any TForm descendent, but I can compile and it runs fine. Any clue?
Suddenly my XE5 lost is VCL capatibilite! Weird... I dont want to remove it as I tried to reinstall and fix installation but it did not solved. I cannot create a new VCL application (Menu does not show any option) and that applications that already exists dont show any TForm descendent, but I can compile and it runs fine. Any clue?
Is there any way for a VCL TFrame to be notified when it is actually shown to the user?

So, anyone used Delphi's REST library against Google's API (GMail in my case)?

So, anyone used Delphi's REST library against Google's API (GMail in my case)? Seems I can only do about one request per ~500ms on average, not very fun when you want to show a list of email headers... Am I doing something retarded or do I need to go for batch requests?

Does anyone know how to download the attachment ( or downloadable link)

Does anyone know how to download the attachment ( or downloadable link) https://forums.embarcadero.com/thread.jspa?messageID=586953 filename : PushClientDemo.zip Thanks! https://forums.embarcadero.com/thread.jspa?messageID=586953

So where can I go to pester some Indy devs these days?

So where can I go to pester some Indy devs these days? The IMAP component's SASL support is broken :( edit: I'm using XE6 update 1 FWIW.

FindFirstFile('bla??.dbf', ...) returns a file called 'bla08.blub.dbf'

FindFirstFile('bla??.dbf', ...) returns a file called 'bla08.blub.dbf' WTF? I specified ??, not *! Why does Windows try to guess what I mean instead of just taking it at face value?

Why can I have a local variable in a method that out-scopes a class property without a hint or warning?

Why can I have a local variable in a method that out-scopes a class property without a hint or warning? One thing is allowing name overlaps for method parameters, but for local variables - does that even make sense? type   TBadClass = class   private     FValue: Integer;     procedure SetValue(const Value: Integer);   public     procedure CheckValue;     property Value: Integer read FValue write SetValue;   end; procedure TBadClass.SetValue(const Value: Integer); begin   FValue := Value; end; procedure TBadClass.CheckValue; var   Value: Integer; begin   Value := 1;   Writeln('Value ', Value);   Writeln('Self ', Self.Value);   Self.Value := 2;   Writeln('Value ', Value);   Writeln('Self ', Self.Value); end; Output is Value 1 Self 0 Value 1 Self 2 #XE6

A new version of DDevExtensions 2.82 and IDE Fix Pack 5.7 has been released.

A new version of DDevExtensions 2.82 and IDE Fix Pack 5.7 has been released. DDevExtensions 2.82 adds the option to disable "alpha-sort class completion" and IDE Fix Pack increases the max. number of resources per binary from 3626 to 65534. http://andy.jgknet.de/blog/2014/08/ddevextensions-2-82-and-ide-fix-pack-5-7-released/

Does anyone know how to clear a FireMonkey TBitmap to completely transparent? BMP.Clear(TAlphaColorRec.Alpha) gives me a black image when it's drawn onscreen (eg to a paintbox, PaintBox1.Canvas.DrawBitmap(BMP ImageSrcRect, ImageDstRect, 1).

Does anyone know how to clear a FireMonkey TBitmap to completely transparent? BMP.Clear(TAlphaColorRec.Alpha) gives me a black image when it's drawn onscreen (eg to a paintbox, PaintBox1.Canvas.DrawBitmap(BMP ImageSrcRect, ImageDstRect, 1). At the moment I'm using the above code to clear to White, which works, but there's no guarantee that really is the correct background colour. I'd actually much prefer the un-drawn-on bits remain transparent anyway.

Today, fine people, I present to you what I believe to be the biggest example of WTF code in the history of WTF code.

Today, fine people, I present to you what I believe to be the biggest example of WTF code in the history of WTF code. Correct me if I am wrong, but this code merely fills an array with 0 to 255:   procedure PPLoadSQLCollation(cn : ADOWEConnection = nil); var ss : AnsiString;     rs : ADSRecordset;     iRA : OleVariant;     ii, iPos : integer; begin   if pArySQLCollation <> nil then Dispose(pArySQLCollation);   pArySQLCollation := nil;   if cn = nil then     cn := GlobalADOConnection;   Assert(cn <> nil);   ss := 'declare @tbl table (iChr int) ' + crlf +         'declare @ii varchar(4000) ' + crlf +         'set @ii= 0 ' + crlf +         'while @ii<= 255 ' + crlf +         'begin ' + crlf +         '  insert into @tbl values(@ii)'+ crlf +         '  set @ii=@ii+ 1 ' + crlf +         'end ' + crlf +         'select * into dbo.TBL_ADS_CONFIG_SQL_COLLATION from @tbl';   TQueryRunner.ExecuteQueryNoMsg(ss,

Following a recent post by A. Bouchez about an optimized CRC32 hash, I took it as an opportunity to re-run a small String Hashing Shootout on the worst hash function collision torture test I know: ZIP codes in UTF-16 (Delphi’s default String format).

Following a recent post by A. Bouchez about an optimized CRC32 hash, I took it as an opportunity to re-run a small String Hashing Shootout on the worst hash function collision torture test I know: ZIP codes in UTF-16 (Delphi’s default String format). CRC32 is just too good ... http://www.delphitools.info/2014/08/25/string-hashing-shootout

I have a few FireDAC questions that I've not been able to figure out from the docs.

I have a few FireDAC questions that I've not been able to figure out from the docs. {1} Apparently you can use "MetaCurCatalog and MetaCurSchema" to avoid the Catalog and DBO prefixes when listing table names but I've not been able to find an example re how to code them {2} Similar issue with "APattern" (is the LIKE-pattern filtering table names) ~ I'd like a NOT pattern but once again would like an example {3} Using Metadata there is a term "ASchemaName" that I am not familiar with and would like to see if it applies and how to use it if so. Thx rb

I have a few FireDAC questions that I've not been able to figure out from the docs. {1} Apparently you can use "MetaCurCatalog and MetaCurSchema" to avoid the Catalog and DBO prefixes when listing table names but I've not been able to find an example re how to code them {2} Similar issue with "APattern" (is the LIKE-pattern filtering table names) ~ I'd like a NOT pattern but once again would like an example {3} Using Metadata there is a term "ASchemaName" that I am not familiar with and would like to see if it applies and how to use it if so. Thx rb

I have a few FireDAC questions that I've not been able to figure out from the docs. {1} Apparently you can use "MetaCurCatalog and MetaCurSchema" to avoid the Catalog and DBO prefixes when listing table names but I've not been able to find an example re how to code them {2} Similar issue with "APattern" (is the LIKE-pattern filtering table names) ~ I'd like a NOT pattern but once again would like an example {3} Using Metadata there is a term "ASchemaName" that I am not familiar with and would like to see if it applies and how to use it if so. Thx rb

Translating Windows messages to strings » twm's blog

http://blog.dummzeuch.de/2014/08/24/translating-windows-messages-to-strings/

Preventing a dialog from closing while autocomplete is active » twm's blog

http://blog.dummzeuch.de/2014/08/24/preventing-a-dialog-from-closing-while-autocomplete-is-active/

New blog post : VCL Styles Utils – New Feature : Non Client Area Controls http://theroadtodelphi.wordpress.com/2014/08/24/vcl-styles-utils-new-feature-non-client-area-controls/

New blog post :  VCL Styles Utils – New Feature : Non Client Area Controls http://theroadtodelphi.wordpress.com/2014/08/24/vcl-styles-utils-new-feature-non-client-area-controls/ http://theroadtodelphi.wordpress.com/2014/08/24/vcl-styles-utils-new-feature-non-client-area-controls

I installed https://github.com/LaKraven/RADSplit on Delphi xe

I installed https://github.com/LaKraven/RADSplit on Delphi xe How do i use it exactly? I installed the dll with gexpert     https://github.com/LaKraven/RADSplit

Should IDEFixPack fix the Win64 XE2-XE5 bug QC 123165 where the compiler doesn't output the relocation table for Win64 EXE files despite what is set via {$SETPEFLAGS} ?

Should IDEFixPack fix the Win64 XE2-XE5 bug QC 123165 where the compiler doesn't output the relocation table for Win64 EXE files despite what is set via {$SETPEFLAGS} ? It would mean that the IDEFixPack has an impact on the generated EXE file "content". On the other side the compiler then would work like XE6's Win64 compiler. http://qc.embarcadero.com/wc/qcmain.aspx?d=123165

about the Sep 4 webinar:

about the Sep 4 webinar: "Get expert advice on building connected apps for the Internet of Things" ok, generic buzzwords, but I've never seen IOT  mentioned before... anyone knows (and can legally share) what this means?

Anyone had problems in XE6 with changing the base form that lots of other forms inherit from?

Anyone had problems in XE6 with changing the base form that lots of other forms inherit from? I made one change and some but not all of the child forms have now had one of their components removed from the form. It is very annoying as it is the back button. Plus the align in my bottom toolbar is not working correctly. I have two buttons one aligned left the other aligned right. Now the back button is attempting to disappear the button I have aligned right is now on the left and it is set align right. What the hell is going on?
Anyone had problems in XE6 with changing the base form that lots of other forms inherit from? I made one change and some but not all of the child forms have now had one of their components removed from the form. It is very annoying as it is the back button. Plus the align in my bottom toolbar is not working correctly. I have two buttons one aligned left the other aligned right. Now the back button is attempting to disappear the button I have aligned right is now on the left and it is set align right. What the hell is going on?
Delphi with Indy10 using OpenSSL libraries. Are there any good references to use Windows certificates (including self assigned certificates) on the internet?
Coding in Delphi, so nice!!!!

The more I use interfaces, the more I wish for inbuilt weak interface references. Ie, an interface reference that doesn't change the refcount, to avoid circular references.

The more I use interfaces, the more I wish for inbuilt weak interface references.  Ie, an interface reference that doesn't change the refcount, to avoid circular references. Anyone else? Right now I hack it - there are a few different methods if you Google - but it would be very nice to have it inbuilt in the compiler.

Simple Parallel Framework in XE7?

Simple Parallel Framework in XE7? I notice in the Appmethods road map ( http://goo.gl/H5UhWK ) they say there will be a, "complete and simplified parallel computing library, to take advantage of modern multi-core CPUs more easily" coming in 2014 . This is earlier than previously stated in the April 2014 road map for Delphi ( http://goo.gl/zMmi6P ). Let's hope it's included in XE7!! #xe7   #parallel   #multicore

English version:

English version: http://xe7beta1.blogspot.ca/ Delphi XE7 Rumors (translated from Russian) https://translate.google.ca/translate?hl=en&sl=ru&tl=en&u=http://www.sql.ru/forum/1106135/xe7-news

Every time I remove a with statement from a snippet of code in my mind I can hear a crowd cheering.

Every time I remove a with statement from a snippet of code in my mind I can hear a crowd cheering.

Originally shared by Marjan Venema

Originally shared by Marjan Venema How to store enums without losing your coding freedom Enums are nice! You have found out about enumeration types and you clearly see the advantages they hold over plain, tired, old integers. They are specific, self documenting, type safe – you can’t pass one type of enum when another is expected. Oh yes, you… http://softwareonastring.com/2014/08/17/how-to-store-enums-without-losing-your-coding-freedom
Alguém com problemas no Delphi 2010 com a EditorLineEnds.ttr por causa da atualização do Windows KB2982791???

this link show my Application Suite entirely realized in Xe5 an then recompiled in Xe6

this link show my Application Suite entirely realized in Xe5 an then recompiled in Xe6 www.iaf2.com

Originally shared by Boian Mitov

Originally shared by Boian Mitov Facebook adds rejected this screenshot image because it has more than 20% text in it  This is a screenshot of demo application with gauges. Very curious how you can have a gauge without text on it :-D http://mitov.com/system/imgs/26/original/ILCompositeComponentsSample.jpg?1311868224

Hi all

Hi all is there a problem with the Embarcadero forums? https://forums.embarcadero.com

ANN: HelpNDoc 4.5 is available - Import ePub eBooks and many enhancements

ANN: HelpNDoc 4.5 is available - Import ePub eBooks and many enhancements Fellow Delphi developers, This is with great pleasure that we announce the immediate availability of HelpNDoc 4.5, an easy to use yet powerful help authoring tool producing CHM help files, HTML or mobile WebSites, DocX and PDF manuals as well as ePub and Kindle eBooks from a single source. HelpNDoc is Free for personal use and evaluation purposes and is available at: http://www.helpndoc.com HelpNDoc 4.5 is now able to import ePub files, can optionally disable PDF bookmarks, and fixes various problems including content saving for East-European and Asian systems. You can learn more about this update at: http://www.helpndoc.com/news/2014-08-20-epub-importer-multiple-enhancements-and-fixes-helpndoc-45 Download HelpNDoc now and use it for free for personal and evaluation purposes: http://www.helpndoc.com See our step-by-step video guides to learn how to use HelpNDoc: http://youtu.be/u1XVAR985g8?list=PLe52dEok5gAlrGpJ9

Project|Options|Use MSBUILD externally to compile

Project|Options|Use MSBUILD externally to compile Why was this put in the project file!? IMO, this should have been in the Project Group file, configurable under the Build Group settings. #xe6

Originally shared by Boian Mitov

Originally shared by Boian Mitov I will be a speaker at the PasCon conference in Leiden - Netherlands The topic is: Unleash the hidden power of Delphi! Using attributes, advanced RTTI, functional programming, multithreading, parallel processing, and GP GPU in your Delphi code. I hope we can meet there :-) http://www.blaisepascal.eu/index.php?actie=DucthPascon/Info2014 http://www.blaisepascal.eu/index.php?actie=DucthPascon/Info2014
Howdy, from Texas!
Hi all from Italy

Migration from MSSQL to PostgreSQL?

Migration from MSSQL to PostgreSQL? - Do you know anyone who has gone this path or have experiences of your own? - Which Delphi drivers would you recommend? - Do you know of enterprise quality tools for PostgreSQL (editing, schema comparison and syncing, versioning, tuning, debugging)? #postgresql

Does anybody know where JWAPI is hosted and maintained?

Does anybody know where JWAPI is hosted and maintained? The last commit on http://sourceforge.net/p/jedi-apilib/code/commit_browser  tells [r1115] JWA and JEDI repo were moved. There are some other sources on https://code.google.com/p/delphi-code-coverage/source/detail?r=179  and https://github.com/ccy/jedi-apilib  yet it is unclear where the maintained one is. http://sourceforge.net/p/jedi-apilib/code/commit_browser

BMP Buffer Overflow hotfix - Delphi, C++Builder, RAD Studio XE6 available from http://cc.embarcadero.com/Item/29913

BMP Buffer Overflow hotfix - Delphi, C++Builder, RAD Studio XE6 available from  http://cc.embarcadero.com/Item/29913   http://cc.embarcadero.com/Item/29913

We're happy to announce TMS XData v1.0, a Delphi framework for multi-tier REST/JSON HTTP/HTTPS application server development and ORM remoting.: http://www.tmssoftware.com/site/xdata.asp

We're happy to announce TMS XData v1.0, a Delphi framework for multi-tier REST/JSON HTTP/HTTPS application server development and ORM remoting.: http://www.tmssoftware.com/site/xdata.asp Features: - Server based on REST/JSON architecture style - Easily accessible from different client platforms like .NET, Java, JavaScript, since it's REST/JSON based - Uses standard POST, GET, PUT and DELETE HTTP methods for data request and data modification operations - Partial update of objects (PATCH) - Full-featured query mechanism - Well-defined JSON representation of resources including entities, associations, streams and proxies - Support for streams (blobs) - Several databases supported in back end: SQL Server, MySQL, PostgreSQL, Oracle, Firebird, etc.. (through TMS Aurelius) - Design based on standard OData protocol http://www.tmssoftware.com/site/xdata.asp

Up and running on XE6 Update 1.

Up and running on XE6 Update 1.   - No new hints or warnings. - One code incompatibility with XE5 found in the uses statement: {$if compilerversion >= 27}   System.JSON, // XE6 and upwards {$else}   Data.DBXJSON, // XE5 {$endif} So far, so good. It's the smoothest Delphi upgrade yet. Almost too easy... what can go wrong? ;)
Hello everyone! Greetings from Costa Rica! Saludos a todos! :-)
Does anyone know, if Doc-O-Matic is still supported? I have tried to contact them, but so far no reply.

XE6 still stuck on an old SVN version.

XE6 still stuck on an old SVN version. We need an easy way to solve this problem. https://drive.google.com/file/d/0B1MyXorVzay9NGU1MzlMY2t3Um8/edit?usp=sharing

I'm doing a demo app to show to the business next monday (aug 25) on the iPad with Delphi XE6. It's looking good, and I think it's good enough for the demo. It's also reading and writing from SQLite. However, I want to improve it so that it's got some more bells and whistles. I want to get TMS controls Fmx controls for iOS and Android and I may eventually get around to buying them. I was hoping though, that we get funding to purchase all the neat components.

I'm doing a demo app to show to the business next monday (aug 25) on the iPad with Delphi XE6.  It's looking good, and I think it's good enough for the demo.  It's also reading and writing from SQLite.  However, I want to improve it so that it's got some more bells and whistles.   I want to get TMS controls Fmx controls for iOS and Android and I may eventually get around to buying them.  I was hoping though, that we get funding to purchase all the neat components. Anyone know of any free FMX components that I could use in the meantime to add some pizzaz?  I was thinking about edit mask controls, and that edit box that has the x on the right side to clear the contents of the box (is that an iOS only feature?).  I'm new to mobile development, so bear with me.

Detecting Touch vs. Mouse

Detecting Touch vs. Mouse I have a touch enabled app. Whenever the user touches the screen the mouse cursor disappears.  This is fine - however I'd like to change some parameters if the user is using touch as opposed to the mouse. What's the best way to do this? Thanks - Steve

What unit testing frameworks do people use?

What unit testing frameworks do people use? The ones I know of are: * DUnit - Comes with Delphi but, to me, seems to be a bit dated these days * DUnit2 - A step up from DUnit but still seems to be a bit dated and doesn't seem to be maintained (currently preferred) * DUnitX - Maturing quickly but lacking a GUI front end (I think) Add-ons: * DUnitLite - add-on for DUnit * DelphiSpec - behaviour driven development based upon Cucumber and Gherkin - add-on for DUnit and DUnitX * dBehave -  behaviour driven development - old and not maintained What other frameworks/add-ons are out there? And do you use it?

Marco Cantù

Marco Cantù  http://maintenance.embarcadero.com/ appears to be down, or is it just the Night To Monday syndrome?  If it really is down, how can my colleagues get their XE6 upgrade?
Programming doesn't fit well into Star Wars philosophy "Do. Or do not. There is no try."  It is more like Groundhog day or like O'Neill would say "If at first you don't succeed, try, try, try, try, try, try again."

I always get a mental block on this....

I always get a mental block on this.... We have to types in Delphi:  class types that need to be created and   _______ types that don't need to be created, i.e., integers, doubles, strings, etc. I can never remember that word.  Help!

Why the hell is the Delphi help littered with C++? Over half the time I can't find the proper Delphi entry due to the C++ stuff.

Why the hell is the Delphi help littered with C++? Over half the time I can't find the proper Delphi entry due to the C++ stuff. I realize that it's useful for the folks using C++ Builder to have the Delphi help, but given the current state I'd rather have F1 do a google search restricted to docwiki than try to look up in the near-usless help files.

http://blog.synopse.info/post/2014/08/16/Will-WebSockets-replace-HTTP-Do-they-scale

http://blog.synopse.info/post/2014/08/16/Will-WebSockets-replace-HTTP-Do-they-scale http://blog.synopse.info/post/2014/08/16/Will-WebSockets-replace-HTTP-Do-they-scale

Official release of CnPack 1.0.3.672 for XE6 (for all those that don't like to run the nightly build version) - http://www.cnpack.org/

Official release of CnPack 1.0.3.672 for XE6 (for all those that don't like to run the nightly build version) -  http://www.cnpack.org/ http://www.cnpack.org

Sabotaged by Windows Update » twm's blog

http://blog.dummzeuch.de/2014/08/15/sabotaged-by-windows-update/

I just added the following OnClose handler to my application's main form:

I just added the following OnClose handler to my application's main form: procedure TMyForm.FormClose(Sender: TObject; var Action: TCloseAction); begin     Action := caMinimize; end; But when I press the close button, the form does not minimize but the application terminates. WTF? Here is the code from VCL.Forms that causes this: procedure TCustomForm.Close; var     CloseAction: TCloseAction; begin   // ...     DoClose(CloseAction);   if CloseAction <> caNone then     if Application.MainForm = Self then       Application.Terminate   // ...     end; When was this introduced? Or was it always the case that no matter what CloseAction you return from OnFormClose of your main form, if it's not caNone, the application terminates?
Ищу программиста на Delphi в Киеве
Serious question:  How do you leak an AnsiString?

I know there must be some people here using Axolot's XLSReadWriteII4 component. I am struggling with an error, and so far making no progress.

I know there must be some people here using Axolot's XLSReadWriteII4 component. I am struggling with an error, and so far making no progress. Intermittently, I get an error when writing the file. The component throws an exception in its Write() method, while trying to write record #23 -- always #23 -- which is an SST (shared string table) record.  My module offers many options for the user to select what is wanted in the sheet. The error seems to occur most often after options have been changed. But the worksheet which suffers the error is coded to use sets or options, and an array of DB column names, such that, in the end, the options only affect set membership. I do not want to go deep diving into the vendor's code. It's painful, and quickly becomes so specific to issues of the Excel file format that it would become a rather massive project. Any thoughts?

Conditional Defines

Conditional Defines I often wish I'd could have a LARS defined globally for my IDE, so that my sordid testcode was ignored when other team members built my code.

A request for an OnEdit event on TDBEdit (and probably other DB controls)

A request for an OnEdit event on TDBEdit (and probably other DB controls) http://qc.embarcadero.com/wc/qcmain.aspx?d=126934

method Something; overload; virtual; abstract; and Deprecated

method Something; overload; virtual; abstract; and Deprecated overload; virtual; abstract; deprecated; deprecated; overload; virtual; abstract; overload; deprecated; virtual; abstract; [dcc32 Error] : E2169 Field definition not allowed after methods or properties Fortunately, overload; virtual; deprecated; abstract; works :) I am sure there is logic in there, and that someone will tell me about it :)

Short blogpost about these groups for proliferation through Delphifeeds.

Short blogpost about these groups for proliferation through Delphifeeds. http://delphi.fosdal.com/2014/08/the-google-delphi-developers-reached.html

Has anyone been able to get the JWA (and probably also JWSCL) to work with XE6 dcc64? For the JWA I need the JwaWindows from the JediApi_DynamicRelease

Has anyone been able to get the JWA (and probably also JWSCL) to work with XE6 dcc64? For the JWA I need the JwaWindows from the JediApi_DynamicRelease Unfortunately it complains about the inline asm which is not supported. When I undef the DYNAMIC_LINK it runs into several other errors.

Thomas Mueller fix to "EditorLineEnds.ttr" Bug. It's working very well. If only Embarcadero can release patch as fast as him.

Image
Thomas Mueller  fix to "EditorLineEnds.ttr" Bug. It's working very well. If only Embarcadero can release patch as fast as him. Jeroen Wiert Pluimers Nick Hodges Bill Meyer

arghhh...I was doing a search all files/pjects for something...but somehow stuffed that up...and its busy searching and finding the letter i

arghhh...I was doing a search all files/pjects for something...but somehow stuffed that up...and its busy searching and finding the letter i which its doing a great job of..finding heaps...but i cant stop it...LOL

Code Comment of the Day:

Code Comment of the Day: // A solution needs to be dreamed up but for the time  // being, we simply skip it.

#chuckleworthy

Image
#chuckleworthy   Originally shared by Ulimmeh-Hannibal Ezekiel Probably the funniest programming comment I have ever seen! If you have any other funny code comments please share them with us below. #ProgrammingHumor
3300

"Splash Screen" an old and tired requirement, I know.

"Splash Screen" an old and tired requirement, I know. I'm looking to implement a different one than the conventional method of placing a timer on the Form and toggling it to activate after X seconds.  I could have sworn, that I saw a cooler method, that I believe used AfterCreate and some magic. I had thought it was from François Piette , but I couldn't find it anywhere. Not really showing up in Google.  Anyone have a clever method for displaying a "splash screen" without a timer? I ask, because I've never liked the Timer method and sometimes it doesn't paint the window fully.

"Splash Screen" an old and tired requirement, I know. I'm looking to implement a different one than the conventional method of placing a timer on the Form and toggling it to activate after X seconds.

"Splash Screen" an old and tired requirement, I know. I'm looking to implement a different one than the conventional method of placing a timer on the Form and toggling it to activate after X seconds.  I could have sworn, that I saw a cooler method, that I believe used AfterCreate and some magic. I had thought it was from François Piette , but I couldn't find it anywhere. Not really showing up in Google.  Anyone have a clever method for displaying a "splash screen" without a timer? I ask, because I've never liked the Timer method and sometimes it doesn't paint the window fully.

Desktop UI.

Desktop UI. I'm beginning to think that I want a fresh look for the next generation of my software. Please share some links to some of your favorite looking products especially if they are yours and you can provide some info about what you used to create them.

Hello

Hello, Any recommendations for a good screen capture application for windows? What I, basically, need is to specify a window and record all interactions with it to a video file. Thanks Eriks
Happy Birthday today to Allen Bauer !

In Delphi XE it'll EAbstractError on the selected line:

In Delphi XE it'll EAbstractError on the selected line: [code] program Test071; {$APPTYPE CONSOLE} uses   SysUtils; type   TBaseClass = class   public     procedure Test; virtual; abstract;   end;   TMyClass = class(TBaseClass)   public     procedure Test; override;   end; { TMyClass } procedure TMyClass.Test; begin   inherited;   inherited Test; // <--- EAbstractError here :( end; { TestProc } procedure TestProc; var   LMyClass: TMyClass; begin   LMyClass := TMyClass.Create;   try     LMyClass.Test;   finally     LMyClass.Free;   end; end; begin   try     TestProc;   except     on E: Exception do       Writeln(E.ClassName, ': ', E.Message);   end; end. [/code] The 1st line will not compiled but the second yes (simply jumping to System._AbstractError); Is it fixed in XE6? :)

http://wiert.me/2011/09/29/editorlineends-ttr-what-is-it/ Jeroen Wiert Pluimers Do you have the solution for this already? I recently encountered this using Delphi 2007

http://wiert.me/2011/09/29/editorlineends-ttr-what-is-it/ Jeroen Wiert Pluimers Do you have the solution for this already? I recently encountered this using Delphi 2007 http://wiert.me/2011/09/29/editorlineends-ttr-what-is-it

We can use (CanClose) in FormCloseQuery

We can use (CanClose) in FormCloseQuery Can we use it somewhere else? for example I forbid the user to close the form until he something special after then I allow him to close it

Hello everybody

Hello everybody,  I seem to have a total blackout.... :-(  Can someone send me a link to a how-to in which is described, how I can get an object that I have defined in an extra unit to be used in different Forms.  Now I want to set and get properties from an object created in my mainform in different subforms.  Seems like I am missing something there.  I just need a place where I can read into it.  Thanks in advance.
Does anyone know what is happening with Embarcadero's NNTP news server? I can't connect...

Im trying to use xe6 rest client, rest response, and ultimately datasetapater to move rest reponce into table. My repsonse is json and consist of multiple checks with multiple lineitems in them ( thin restaurant resciept) . A single check looks like the blow Json. I want and need only the lineItems. But everything i have tried returns the checks and lineitesm which them results in only the checks getting in to the table. I thought if i add rootelement=eleememts it might help and it accepts that but still returs checks also. I tired rootelemen=lineItems and everything else i could think of. How would I go about getting the lineItems into their own tdataset or a response that is lineitems only? Please..

Im trying to use xe6 rest client, rest response, and ultimately datasetapater to move rest reponce into table.  My repsonse is json and consist of multiple checks with multiple lineitems in them ( thin restaurant resciept) .   A single check looks like the blow Json.  I want and need only the lineItems.  But everything i have tried returns the checks and lineitesm which them results in only the checks getting in to the table.  I thought if i add rootelement=eleememts it might help and it accepts that but still returs checks also. I tired rootelemen=lineItems and everything else i could think of.  How would I go about getting the lineItems into their own tdataset or a response that is lineitems only?  Please..  {   "elements": [     {       "href": " https://www.clover.com/v3/merchants/ANNM2S72V6HNW/orders/95XQ975HW8T1G ",       "id": "95XQ975HW8T1G",       "currency": "USD",       "employee": {         &quo

Now mORMot can generate cross platform code for its clients!

Now mORMot can generate cross platform code for its clients! Just one huge step forward for our Open Source framework! :-) http://blog.synopse.info/post/2014/08/11/CrossPlatform-Clients/Units-Platforms

As suggested in the C++Builder Developers community, I introduce my project here in the hope that it will be useful for Delphi users as well.

As suggested in the C++Builder Developers community, I introduce my project here in the hope that it will be useful for Delphi users as well. Originally shared by Kaz Nishimura I am working on this project to extend the RAD Studio IDE so that RAD Studio users can use other version control systems than Subversion. The most of the code is written in C++ and I hope it could be seen as an example of how you can use the Tools API in C++Builder. Although the project is not complete yet, I will be glad if you make any comments or feedbacks for the project. https://plus.google.com/115580605088656543965

Trying to get DUnit2 to add some integration tests from files. Currently I have got DUnit2 to file the files and add tests accordingly. However, the tests are in this structure:

Trying to get DUnit2 to add some integration tests from files. Currently I have got DUnit2 to file the files and add tests accordingly. However, the tests are in this structure: + My.exe +-+ Integration Tests   +-+ File Name     +- Test Procedure Name What I would like to do is for the test to run under "File Name" and not have the extra level of "Test Procedure Name". I have tried for the last couple of days without any success :( Is this possible with DUnit2?

New blog post http://theroadtodelphi.wordpress.com/2014/08/10/fix-to-conflict-between-the-delphi-dev-shell-tools-and-avg-antivirus/

New blog post http://theroadtodelphi.wordpress.com/2014/08/10/fix-to-conflict-between-the-delphi-dev-shell-tools-and-avg-antivirus/ http://theroadtodelphi.wordpress.com/2014/08/10/fix-to-conflict-between-the-delphi-dev-shell-tools-and-avg-antivirus
A friend told me that the Mac OS port of Firemonkey is based on Wine? I didn't think this was true? Anyone know?

Animated Bar series transitions in #TeeChart Pro VCL and FMX.

Animated Bar series transitions in #TeeChart Pro VCL and FMX. A new feature in the next coming TeeChart Pro update is a new TeeAnimation class to perform animated transitions between the different Bar series stacking styles. The link below provides a download of executable demos. http://steema.com/wp/blog/2014/08/10/animated-bar-series-transitions-vcl-and-fmx

Tprogressbar

Tprogressbar no progress has been made there from delphi 2009 to XE6 in fact it slows down progress of the code big time (although if the routine that updates the tprogressbar is in a form onshow event, its fast...its just if that same code is executed once the form has been shown, its real slow...anyone else noticed this?

What component that allows us to do such thing? a small window that appears and disappears when you move the mouse.

Image
What component that allows us to do such thing? a small window that appears and disappears when you move the mouse. 

I think I just hit a wall regarding method overloading and inheritance.

I think I just hit a wall regarding method overloading and inheritance. I want to hide ancestor constructors. This is only possible if I only have one new constructor because that one will hide all overloads of the ancestor. But when I introduce a second one and overload these two I also get all of the ancestor constructors in. :( Did I miss something?

Delphi XE2 IDE: EStackOverflow

Image
Delphi XE2 IDE: EStackOverflow When using the Ctrl-Shirt-Arrows at the declaration of a method, in order to UpArrow (see declaration) or DnArrow (see code).  I started getting this error a few days ago. I have a hunch, it has something to do with a missing "{$ENDREGION}". But I haven't started to audit the code to look for it. It happens in multiple units, which is too bad, and makes me question this assumption. So I wanted to ask.. Anyone know of a trick to get rid of a EStackOverflow when using the Ctrl-Shift-Arrows? I'm running MMX and GEXPERTS v1.36. 

#TeeChart Geographical GIS layers examples (for VCL and Firemonkey)

#TeeChart Geographical GIS  layers examples (for VCL and Firemonkey) http://steema.com/wp/blog/2014/08/08/gis-map-layers-example-using-teechart-world-series-vcl-and-firemonkey

OK group, another quick question/help If I may

OK group, another quick question/help If I may I am having a problem with real numbers in my code i.e sometimes they are in the format 1.25343795e-311 i.e with the e- on the end... like some exponent...scientific notation and if I use str(thatnumber:2:1,mystring): mystring ends up with that e-311 in it..which I dont want whats the solution? thanks guys! (this seems to be something that is happening in XE6 that was not happening in Delphi 2009)

Hi again group

Hi again group I notice in XE5/6 that the color setting for a tlabel does nothing (not the font color)...i.e the background color of the tlabel... in Delphi 2009 that works OK... what am I missing here,....how do I set the background colour of a tlabel? thanks! (I hope I dont need to individually style each one!)

Navigator map for TeeTree diagramming control. Sources and demos (VCL and Firemonkey):

Navigator map for TeeTree diagramming control. Sources and demos (VCL and Firemonkey): http://steema.com/wp/blog/2014/08/07/navigator-map-for-ttree-diagramming-control/

The dreaded with...

The dreaded with... Debugging today, I found another gotcha. In this case, both Self and DisconnectedClient has a property named ClientIdentifier. Note the difference for the mouse-over and the evaluation. https://drive.google.com/file/d/0B1MyXorVzay9SjNraEdqV1hLSTg/edit?usp=sharing
Anybody know if the FastReport for Fmx supports iOS?   I'm doing a demo of one of our utility programs that produces a Rave Report currently, but the report is simple enough to use FastReport.  If not, then I could put the data in a memo box on the screen.     Everything I've read suggest that FastReport for FMX only supports Windows and Mac

Recently I had to debug some JavaScript code that did not work correctly, when loaded into a Chromium Embedded frame in one of my applications. There is built-in support for the Developer Tools in Chrome, which is also available in Chromium Embedded.

Recently I had to debug some JavaScript code that did not work correctly, when loaded into a Chromium Embedded frame in one of my applications. There is built-in support for the Developer Tools in Chrome, which is also available in Chromium Embedded. It’s actually quite simple: ... http://blog.dummzeuch.de/2014/08/06/enabling-the-developer-tools-in-delphi-chromium-embedded/

How secure is this AppTethering?

How secure is this AppTethering? If not secure, what are good ways to make it secure? AppTethering is demonstrated in the video at  Remote Control a Windows App from a Mobile Device https://www.youtube.com/watch?v=TXmlOXoN2d0

New blog post http://theroadtodelphi.wordpress.com/2014/08/06/vcl-styles-utils-new-feature/

New blog post http://theroadtodelphi.wordpress.com/2014/08/06/vcl-styles-utils-new-feature/ http://theroadtodelphi.wordpress.com/2014/08/06/vcl-styles-utils-new-feature

Hi Group, I have a projects with Delphi 5 use TntUnicode

Hi Group, I have a projects with Delphi 5 use TntUnicode, And now, i build it in delphi 2010; but i have some problem with Unicode ( delphi 2010 suport Unicode, so i don't use TntUnicode Control ); First:  How to replace 2 function          WideCanvasTextExtent(TextBitmap.Canvas, Caption)                                      ;WideCanvasTextOut(TextBitmap.Canvas,0,0,Caption);  Else: GetText; SetText; IsCaptionStored ; in Controls units  not be declared ;

ProcessMessages again

Image
ProcessMessages again The topic was brought up by Brian Hamilton a few posts below, and Dalija Prasnikar explained how code that is calling ProcessMessages is reentrant in two different ways. I had to deal with a ProcessMessages problem days ago, let me explain: Within a loop I create thumbnail images of all the samples in the current batch of samples. Each sample in the batch is loaded, the 3D image rendered, and the small bitmap copied out of the viewport and inserted into the larger bitmap, see picture.   Viewport.InvalidateRect(Viewport.ClipRect);   Viewport.Repaint;   Application.ProcessMessages;   Viewport.Context.CopyToBitmap(SmallBitmap, SmallRectangle); Without calling ProcessMessages, the Context will not be ready for CopyToBitmap. At least I did not find a better way of doing it. There is also a keyboard event handler in the application which triggers the thumbnail creation process when the user types a question mark. To complete the description, let me say that the viewport

Blog post "August Series of Developer Skill Sprints" at http://blog.marcocantu.com/blog/2014_august_developer_skill_sprint.html

Blog post "August Series of Developer Skill Sprints" at http://blog.marcocantu.com/blog/2014_august_developer_skill_sprint.html http://blog.marcocantu.com/blog/2014_august_developer_skill_sprint.html

Hi All!

Hi All! I'm using Delphi XE. Given the next SOAP XML (copied the full XML here to fully understand my problem): [code] xmlns:env=" http://www.w3.org/2003/05/soap-envelope " xmlns:xs=" http://www.w3.org/2000/10/XMLSchema " xmlns:wsse=" http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd " xmlns:tt=" http://www.onvif.org/ver10/schema " xmlns:trt=" http://www.onvif.org/ver10/media/wsdl "> Profile1 VideoSourceConfiguration0_0 0 VideoSource0 AudioSourceConfiguration0 0 AudioSource0 VideoEncoderConfiguration0_0 0 MPEG4 1600 1200 50.0 10 1 6000 10 SP 0 Baseline IPv4 239.128.1.99 ::1 5560 0 false PT30M AudioEncoderConfiguration0 0 AMR 1

Hi all

Image
Hi all Need a bit of help with TChart: I cant find where in the settings its putting a space before it starts plotting at the start and end of the graph (it seems to have appeared after upgrading from D9 to XE6 (if I drop a new tchart (pro) on the form,it does not appear...but I have tried to compare the settings but cant find it... so looking for some help I have a screen shot to show what I mean Maybe David you can help? thanks

msbuild - How can I overwrite a setting in a Delphi 2007 dproj file with an empty string? - Stack Overflow

http://stackoverflow.com/q/25105746/49925?sgp=2

#chuckleworthy :)

Image
#chuckleworthy :) Originally shared by Mobile and Web Application Tutorial

wow....I had read the discussion a while back about dont use application.processmessages...

wow....I had read the discussion a while back about dont use application.processmessages... I had that in use in a loop for udating a label for when drawing a graph (tchartpro)....I removed that and just use label repaint..and wow the graph updates heaps faster...I was slowing down things dang, you learn something new every day
two words that shouldn't be together: 'Intelligent' and 'Linker'.

Copyright information inside Delphi EXE's. I just opened one of my Delphi EXE files in a hex editor and did a search for the word "Copyright". I found the following two references:

Copyright information inside Delphi EXE's. I just opened one of my Delphi EXE files in a hex editor and did a search for the word "Copyright". I found the following two references: deflate 1.2.7 Copyright 1995-2012 Jean-loup Gailly and Mark Adler inflate 1.2.7 Copyright 1995-2012 Mark Adler I created a simple "Hello Word" program with just a label on a form and these copyright notices were not in the HelloWorld.exe file. Does anyone know what causes these copyright statements to be included in the Delphi EXE files?

unit Execute.AwesomeFMX;

Image
unit Execute.AwesomeFMX; {    Awesome FMX for XE6 (c)2014 by Paul TOTH     http://www.execute.re } interface uses   System.Classes, System.Types, System.UITypes,   FMX.Controls, FMX.Graphics, FMX.Types; type   TAwesomeFMX = class(TControl)   public     constructor Create(AOwner: TComponent); override;     procedure Paint; override;   published     property Position;     property Width;     property Height;   end; procedure Register; implementation procedure Register; begin   RegisterComponents('Execute.SARL', [TAwesomeFMX]); end; { TAwesomeFMX } constructor TAwesomeFMX.Create(AOwner: TComponent); begin   inherited;   Position.X := 20;   Position.Y := 20;   Width := 320;   Height := 160; end; procedure TAwesomeFMX.Paint; var   R: TRectF; begin   R := LocalRect;   Canvas.Stroke.Color := TAlphaColorRec.Black;   Canvas.Stroke.Thickness := 4;   Canvas.DrawRect(R, 0, 0, [], 1);   Canvas.Font.Family := 'Arial';   Canvas.Font.Style := [TFontStyle.fsBold];   Canvas.Font.Size :=

Hi

Hi One thing that I find annoying with the IDE (still there in XE6) is using the find and replace if you highlight the code to be replaced...then change to from cursor then it says cant find it... repeat, and then you have lost that inserted to be replaced code from the highlight...re set that, then it flies anyone else see this problem?
Anyone have a simple, working example using TThreadedQueue ?  I can't get the bloody thing to work.

Hello community, could help me make a exemplo of connexion

Hello community, could help me make a exemplo of connexion  delphi and advantage database server 7.1 (ADS), and i need to install if necessary.  Status:  * Server  OS: Linux  Dis: Centos 5.1  IP: 192.168.0.4  ADS: \ \ 192.168.0.4:2828 / sys_fiscal / sys_exemplo.add  Usuer: ADSSYS  Passw: 123456  * Computer where I schedule  OS: windows 32bit  Delphi Ver 7

Do you use TFireMonkeyContainer to embed FMX forms in your VCL forms? If so you might be interested in the latest updates: VCL drag/drop support, support for old FireMonkey versions reinstated, so it now works across XE2, XE3, XE4, XE5 and XE6; and a number of bug fixes and tweaks including improved C++ support.

Do you use TFireMonkeyContainer to embed FMX forms in your VCL forms? If so you might be interested in the latest updates: VCL drag/drop support, support for old FireMonkey versions reinstated, so it now works across XE2, XE3, XE4, XE5 and XE6; and a number of bug fixes and tweaks including improved C++ support. http://parnassus.co/tfiremonkeycontainer-multiple-fmx-forms-dragdrop/ http://parnassus.co/tfiremonkeycontainer-multiple-fmx-forms-dragdrop

Official web site of ICS aka http://www.overbyte.be/ is back ! :-)

Official web site of ICS aka http://www.overbyte.be/ is back !  :-) http://www.overbyte.be
In DateUtils, what is the difference between SameDay() and IsSameDay() ?!

Hi , I try to find out the indextype of an indexed parameter with RTTI.

Hi , I try to find out the indextype of an indexed parameter with RTTI.  For    property xx[a:String]: ....    I would like to find out "String".  Any hint?  Bernd