Stream

Join this community to post or comment

Boian Mitov

I made this!  - 
 
And made with Delphi :-)
5
Horácio Filho's profile photoBoian Mitov's profile photo
2 comments
 
+Horácio Filho Thank you! :-)
Add a comment...
 
Thomas Mueller (dummzeuch) originally shared to Delphi:
 
Experimental GExperts Version 1.37 2015-05-30 released
This version now uses unicode strings for all Delphi versions that support them. The previous versions converted native Delphi strings to AnsiString before formatting and converted the result back from AnsiString to native Delphi strings. In rare cases this resulted in some special characters being replaced by ‘?’ after the formatting.
View original post
4
Add a comment...

Patrick Hughes

Discussion  - 
 
You got to be kidding me

So I took the plunge, bit the bullet for Delphi XE8 Pro upgrade from D5 so I had to go with the upgrade subscription.

Mobile Pack add
FireDAC add

Instruction tell me to uninstall the trial - check
Install Delphi XE8 - check
Open then close D XE8 - check

Install Mobile Pack (separate Key Code) using the "Upgrade" Install
I did not deselect any components, but did not see a separate component for Mobile Pack.

So now its installing the whole damn thing again.

I need to repeat the "Upgrade" install for FireDAC

Think it's OK to deselect all of the components?
1
Kyle Miller's profile photoPatrick Hughes's profile photo
6 comments
 
Well it finally installed and registered (after another little hurdle) Now I've got to figure out why a number of component icons are just generic glyphs.

Yep +Kyle Miller it will be an adventure. I also recently jumped from AutoCAD R14 to 2015 - (a gap of about 15 years) another giant leap for this dinosaur.

Thanks all for listening to me vent.
Add a comment...

Lars Fosdal
owner

Help! Need input!  - 
 
PostMessage problem
For a long time, I've been using AllocatehWnd in the main thread to create handles for passing messages from background threads to the foreground thread.  

All the handles are created in the same location (during main thread startup), connecting to different handler procedures.  All messages are wm_user + unique number (from 1 to 140)

Recently, this stopped working for 3 of 4 handles, and I can't for the life of me figure out why?  

The only messages I see, is a value of 28 (which is wm_ActivateApp) and it arrives on startup only) - and then I see one of my other registered messages from a specific background thread (wm_user + 121).

For the other threads, I see the postmessage being called, with the right handle and the right message - but it never arrives in the registered handler.

I've tried moving the message from wm_user + 1 to wm_user + 151 - in case something else was eating them.  No joy.

I've tried using only one handle, and calling all of the four handler methods from the common registered handler.  The same results.

Each handler do call DefWindowProc.  Can it be a component vendor that inserts a handler, but which fails to call DefWindowProc?

I need suggestions for possible causes, or for how to best drill down to the core of the problem, because I am stumped!
1
Lars Fosdal's profile photoJeroen Wiert Pluimers's profile photo
Add a comment...

Rodrigo Ruz

Blog Post  - 
 
Rodrigo Ruz originally shared:
 
Hi everyone,I just finished migrating all my open source projects (code and issues) from Google Code to GitHub. Project Summary Delphi Dev Shell Tools Shell Extension for Object Pascal Developers Delphi IDE Theme Editor Custom color highlighting for…
9
1
Jeroen Wiert Pluimers's profile photo
Add a comment...

Steve Maughan

Discussion  - 
 
Swapping Files Via the Cloud on a Locked Down Corporate Machine?
I have a 10 year old app which I use to run workshops with large corporations. The app enable executives to make sales forecasts and I then aggregate the data. Currently I use a thumb drive to transfer the files between my machine and theirs. I have recently been told a client is banning thumb drives for security reasons. So I need to find a new simple way to swap files. I'd like it be to as cloud based as possible but many corporate environments block DropBox. So the questions is...

What the best way to swap files between machine on a locked down corporate machine?

The simpler the better. Emailing them is possible but cumbersome as I need them to copy the file from the email into a specific directory. Maybe FTP (do many corporations open FTP ports on their executives machines?). Any other solution?

Thanks - Steve
1
Jeroen Wiert Pluimers's profile photo
4 comments
 
DropBox doesn't require administrative privileges to install, but getting the http/https proxy to work is a pain. Copy.com does require administrative privileges but is OK http/https proxy wise. Seriously locked down environments often don't allow you to download or install tools like these anyway. 
Add a comment...

Lars Fosdal
owner

Interesting Link  - 
 
Another new Delphi book!
There seems there is some life in this old horse yet, in spite of all the flogging.

http://www.amazon.com/gp/product/151176600x

#delphi   #book  
10
1
Oliver Funcke's profile photoRoman Yankovsky's profile photoJeroen Wiert Pluimers's profile photo
19 comments
 
+Richard Baroniunas In Amazon's book preview anyone can see this book has German screenshots. So what are you complaining about? :)

There is more than one language in the world. If it gives you a chance to learn a few German words easily, it is fun, isn't it?
Add a comment...

David Heffernan

Discussion  - 
 
Been getting e-mails from Emba saying "RAD Studio XE8 is ready for Windows 10". Er, what? No it is not. It has no support at all for Windows 10 features. How could it? Windows 10 has not been released. It is no more ready for Win10 than Delphi 7 was. This nonsensical marketing fluff won't help anyone. 
8
1
Eli M's profile photoMike Margerum's profile photoJoe C. Hecht's profile photo
31 comments
 
Delphi is a good value once you pay the initial upgrade+sa. Xamarin is $999 per year per platform. +Marco Cantù you guys are definitely heading in the right direction and I'm glad to see you marketing the product. I don't have an MBA or marketing degree so I don't have much to offer in terms of critique. 
Add a comment...

Horácio Filho

Help! Need input!  - 
 
Hello guys :D

Is there a way to create memory barriers in Delphi? Something like .NET's System.Threading.Barrier class, java.util.concurrent.CyclicBarrier from Java or pthread_barrier for C.

I have looked at Delphi Documentation but I cannot find anything like it :'(

Thanks in advance :D
1
Horácio Filho's profile photoAsbjørn Heid's profile photo
9 comments
 
+Horácio Filho You're welcome. 

Condition variables are more easily ported I guess, events usually have to be implemented using something else on other systems, while condition variables are native on both Windows and POSIX.
Add a comment...

Russell Weetch

I made this!  - 
 
This is one we have done. Powered by our LiveBase CMS which is all Delphi (Webbroker). This was originally a Delphi 3 application and was written to manage news and events on the National Trust website before becoming a full CMS package. Using WebBroker and our own framework makes it very flexible.
The new Liftstream website has just gone live today. Liftstream have been a client for a quite a while and we are really pleased to have had the opportunity to redesign their site. Hosted in our LiveBase® CMS the new site is responsive so it looks good on the desktop or on mobile devices.
17
Andrea Raimondi's profile photo
 
Hey! I did share it to my audience on Linked-in :P
Add a comment...

About this community

A community for people who write their software using Embarcadero's Delphi development tools. #delphi #objectpascal #programming Be constructive, informative and helpful. Avoid flame wars, please. OBS: Use the post categories, and add #tags to specify more context where needed. Posting in English is encouraged and preferred. If you post a link to an article in a different language, please translate the Google+ description of the article for the convenience of the Community. OBS *** Please share your rage and rants in unit number5 instead of here. Links moved to the DCD.

MSG Endo

Tips & Tricks  - 
 
HOW TO CONNECT TO A FIREBIRD DATABASE ON AN AMAZON EC2 WINDOWS SERVER INSTANCE

Just worked this out - might be useful to others. 

To connect to a remote database file on an Amazon EC2 Windows server instance*, do the following...*

1.  Go to the AWS dashboard, log in to your Amazon account and go to Networks and Security|Security Groups
    These AWS Security Groups are  bit like a firewall for your Amazon servers and other services. (NB  They are geographic region specific)

2. Chose the Security Group to which your EC2 instance belongs and select the Inbound and then Outbound rules listing

3.  Add to each Inbound and Outbound rules listing a rule to allow a TCP communication through Port 3050 (default port for Firebird)
     setting from any IP address (0.0.0.0/0) or your own computer's specific IP address if you want to restrict access to just yourself

4.  Make sure the EC2 instance running of course

5.  Connect to the EC2 instance with RDP and look at the Windows desktop, on which the EC2 server's public IP address is written.
     Copy down with IP address

6.  Open up the EC2 servers Windows Control Panel (right click the Windows icon bottom left corner and click control Panel) and then
     Open up the EC2 Windows server's own firewall

7.  Select Advanced settings on the left hand side and then for both Inbound Rules and Outbound Rules make a new rule to permit
     access via port 3050 for Firebird (New Rule|Port|TCP|Specific Remote Port)

8.  Make sure that the correct version of Firebird is installed and running on the EC2 server (download from www.firebirdsql.org)

9.  Close the RDP connnection and go to your own computer's Firewall and also set ports 3050 inbound and outbound open as you did
     for the EC2 server's firewall.

10.Open your Delphi application and set its TFDConnection.parameters as follows:

     Database=12.345.67.89:c:\pathtoyourdatabase\databaefilename.fdb
     User_Name=SYSDBA
     Password=masterkey
     DriverID=FB

11.Also set the FDConnection.VendorLib := c:\pathtoyourlocalVendorLib\fbclient.dll  (this is on your client computer)

12.FDConnection.connected := true

and so connect to your remote database on the EC2 cloud.

Seems to work well for me.  For better security obviously change the user name and password on the Firebird server on the EC2 instance.
You do not need firebird running on your own computer, but do need the Firebird vendor library fbclient.dll as specified above.  Also
consider limiting the AWS Security Group rules to just the few  IP addresses your users will use if possible.

Cheers,

Martin
1
Jeroen Wiert Pluimers's profile photoAndrea Raimondi's profile photo
3 comments
 
I disagree that this should be a suggested practice at all.
Add a comment...
 
Is it just me...
... or is producing applications getting harder?

It used to be we could get away with basically implementing what a customer asked for. And yes, a lot of the time they didn't know what they wanted and you had to go round the loop a few times with them. But if it eventually did what they wanted, your job was done. They weren't too concerned with visuals.

Now, things have to look good as well. People's expectations are higher, mainly because of better web design and slick touch based apps. Customers do now - annoyingly - rate your desktop business application much more highly if it has animations and visual transitions and "looks great". And getting visual design "right" is much harder and more expensive. Not only is it not a skill many developers have, but even if you do have some ability in that direction, it's a very subjective criteria. And it's very time consuming. Much more time is spent playing with different visual choices and arrangements. You make things a bit better, you make things a bit worse. Two steps forward, one step back, etc.

I quite enjoy the design side of things, and it's more satisfying to produce an attractive application than an ugly one. But it's making costing and estimating timeframes even harder, I think. Sometimes now I realise I've spent a couple of hours on a simple CRUD form that 10 years ago I would bashed out in 10 minutes.

Anybody else finding the same thing?
2
Milan Vydareny's profile photoLars Dybdahl's profile photo
7 comments
 
We built a company on creating software for hospitals, and found that a simple crud GUI no longer takes minutes or hours but days. Design planning, testing, validation etc. takes a huge amount of time, but the result is also much better, because the usability and effect of the app is much stronger. Gone are the days where your gui simply replaces a spreadsheet, now it is a regulated tool that conforms to many guidelines and makes a difference to the end user's performance.
Add a comment...

David Heffernan

Discussion  - 
 
In a comment to a recent post of mine, +Marco Cantù said:

But in Windows 10 you don't get the "platform" look and feel for desktop Win32 apps unless you apply some "styling" to it, as we are doing. Kind of like Metropolis, but honestly in Windows 10 there is more platform integration for desktop apps.

My experience with Windows 10 does not agree with that.  Just as is the case for all earlier Windows versions, desktop apps are painted in the system style with no extra effort required from the dev.  Since XP we have needed to add the comctl32 v6 manifest, and use a Delphi that supports comctl32 v6 themes. But so far as I can tell, nothing changes with Windows 10.

What am I missing?
5
David Millington's profile photoDavid Heffernan's profile photo
2 comments
 
+David Millington For sure that's the case, but +Marco Cantù explicitly said "desktop apps".
Add a comment...

Lars Fosdal
owner

Off topic  - 
 
Google Chrome Version 45.0.2414.0 dev-m (64-bit) no longer allows me to view the EMBT forums. You need to kick some corporate butt,  +Marco Cantù, because now it is becoming more than a cosmetic problem.
13
Lars Fosdal's profile photoJeroen Wiert Pluimers's profile photo
4 comments
 
They have known and been warned for years but apparently aren't interested enough to invest resources in it.
Add a comment...

Horácio Filho

Off topic  - 
 
Sad Alert - Breaking change:
Android SDK Platform-tools 23 rc1
Android SDK Build-tools 23 rc1

Currently available in the preview channel, these tools break the build of FireMonkey Android applications. I have tried many times to compile a application against the setup above unsuccessfully :'(

The latest setup that work pretty well is:
Android SDK Tools 24.3
Android SDK Platform-tools 22
Android SDK Build-tools 22.0.1

:D
2
David Millington's profile photoJeroen Wiert Pluimers's profile photo
2 comments
 
Somehow I have the feeling that cases like these are reasons behind the payed update scheme. Cross-platform Delphi is now relying on so many external tools that maintaining the interface to them for multiple Delphi versions have become a burden.
Add a comment...

Magno Lima

Discussion  - 
 
I am getting low quality images when using a TImageList with XE8 (Trail) and apply to a TButton, ie., on Android,  the same image with a TImage control will shows nice. They are 16 images of 36x36 pixels size. 
1
David Millington's profile photo
 
Do you have a screenshot? What is "low quality" - reduced size, reduced colour depth, other problems? Did you load the image list at runtime or designtime?
Add a comment...

Rubén Trejo C.

Help! Need input!  - 
 
Hi everyone! ...¿any ideas how to save/export an Outlook email as .msg file using ole automation?
1
Nathan Wild's profile photoRubén Trejo C.'s profile photo
2 comments
 
thank u +Nathan Wild !!
Add a comment...

Cesar Romero

Help! Need input!  - 
 
Anywhere else to download a newer version of Sampling Profiler that supports Delphi XE7?

Here only version up to XE4
https://www.delphitools.info/samplingprofiler/
1
1
Cesar Romero's profile photoGraeme Geldenhuys's profile photoJeroen Wiert Pluimers's profile photo
7 comments
 
+Cesar Romero Yes, FPC can generate map files - just tested on FreeBSD. If the map file is compatible with Delphi - that is another question. FPC can also generate output for the Valgrind profiler, gprof profiler (select platforms only) and external gdb debug symbols. I don't know if any of this is useful to the Sampling Profiler tool though.
Add a comment...

Asbjørn Heid

Interesting Link  - 
 
For those who like reading about the stuff under the hood.

Explains a few things I've never quite understood about the Windows thread scheduler.
Windows' scheduler is generally pretty good, but there appears to be a bit of shittiness with its behavior on multicore systems. I'm going to go over everything I know about it and then we'll hit the bad point at the end. Wi...
7
2
Milan Vydareny's profile photoAsbjørn Heid's profile photoJeroen Wiert Pluimers's profile photoJoe C. Hecht's profile photo
2 comments
 
+Milan Vydareny A bit colorful language, but has some good info :)
Add a comment...