In case you missed it, XE6 delivers package support for the 64-bit compiler for Windows. As an example, in this post I will rebuild the C++ samples package and add one of the controls to a 64-bit C++ Windows VCL applications. First, we’ll open the project group found under C:\Users\Public\Documents\Embarcadero\Studio\14.0\Samples\CPP\VCL\Controls
Now that we can build this package with the 64-bit compiler, we can comment out the compiler output #error for Win64.
Next, we add the 64-bit platform to our project target.
Select 64-bit Windows as the target, and build:
Success! Ok, now we can use it in a project.Uncategorized | 1 Comment »
With the End of Support scheduled for tomorrow, we thought we’d post a quick survey to understand your plans (if any) to migrate your apps off of Windows XP. It’s only five questions and should just take a few minutes and we would appreciate your input. Click here to take survey.Posted by J T on April 7th, 2014 under Uncategorized | Comment now »
I just fired up a VM with Windows XP for some quick testing of some old code and look what I found?
Have you thought about your migration path off of XP and modernizing your XP applications? If not, check out the replay Marco Cantu’s recent webinar: http://forms.embarcadero.com/ModernWindowsApps3-19Posted by J T on March 21st, 2014 under Uncategorized | 2 Comments »
Uncategorized | 1 Comment »
REST is awesome. There I said it. And, like many of you, I’ve lived through several generations of remoting technologies over the years.
What I like most about REST is its simplicity and inherent flexibility AND the fact that everyone is exposing their services this way AND it’s relatively painless to integrate regardless of the language used. Basically, REST is everywhere and there countless services exposed that will add value to your apps.
In RAD Studio XE5, we’ve introduced components for VCL and FireMonkey to easily integrate REST services and although there have been a few other blogs about it, I wanted to share a simple example that illustrates how REST works really well. For this example, I will wire together a VCL app to gather surf forecast information.
REST is made up of a couple of key concepts: the server, the request, and the response. Additionally, it would nice if the data exchange format, called JSON (which is basically a tuple of strings) could be turned into an compatible dataset to integrate into our UI controls.
So, as I mentioned, the basic REST components are RESTClient, RESTRequest, RESTResponse, and RESTResponseDataSetAdapter. There are of course other components provided in the framework to deal with authentication, with OAuth, for example, but these are the basics.
First up is the API server. Most services will use a convention like api.domain.com. In this example, the service is provided by spitcast.com and they provide the API server api.spitcast.com. So the first thing I need is a TRESTClient component and to set its base URL.
Now, that we are pointing to the API server, let’s setup our first request. REST requests are formatted like an URL off of the BaseURL, using standard HTTP requests, like GET, PUT, DELETE, etc. So, since a big swell is coming in this weekend I would like to see what the top spots are using the resource /api/top/spots.
We are ready to get a response now. REST responses usually come back as a string based data packet called JSON. First, let’s take a look at the JSON through the web browser.
Great, now let’s add a Tesponse component to grab this JSON. And now, let’s execute the request within the IDE and populate the Resonse component.
The request is good.
Now, we should see that JSON packet in our component Content property.
Now, we could parse this simple format but there is a VCL/FM component that can turn this into a compatible dataset that we could easily integrate with LiveBindings. For that we will use a TRESTResponseDataSetAdapter.
After we make them both Active we can add fields and bind the data visually using the Live Bindings Designer to get them into a ListBox.
Ok, everything is setup now and I can see my results live in the designers. Like I said, Awesome!
Now, look at that 3 out 5 top spots are here in Santa Cruz. Choices, choices.
So, now that you have a flexible REST client components set for VCL and FM in XE5, go forth and integrate.
And don’t forget to take advantage of our current promotions before December 31st to get REST with RAD Studio XE5. Current offers include "Coding in Delphi" book by Nick Hodges and the InfoPower XE5 VCL Grid and Components in addition the the InfoPower for FireMonkey. And a 45% off upgrade offer for previous owners of any version of RAD Studio, Delphi, or C++Builder.
http://www.embarcadero.com/radofferPosted by J T on December 19th, 2013 under C++, C++11, C++Builder, Delphi | Comment now »
Embarcadero extends congratulations to Apple on shipping iOS 7 today. Now that we have the public shipping bits we are doing some final testing our iOS 7 Style (which should be available to registered XE5 developers shortly). To whet your appetite, here is a screenshot of the FM Controls samples app we built this early afternoon.
~/jtPosted by J T on September 18th, 2013 under Uncategorized | Comment now »
From Marco’s Blog: http://blog.marcocantu.com/blog/delphi_arc_android.html
Delphi mobile compilers use Automatic Reference Counting. While ARC is commonly used on iOS, Android developers generally rely on a Garbage Collector.Posted by J T on August 30th, 2013 under Uncategorized | Comment now »
Or all three?Uncategorized | 1 Comment »
Printing from an Android device requires a little bit more setup than in iOS where you simply connect to an AirPrint capable printer (like my Epson XP-400). However, Android printing appears to work with any Wifi printer (or PC connected printer), so its more flexible. Basically, it consists of three steps.
First, download and install Google CloudPrint onto your device.
Second, setup your Wifi or connected printer with CloudPrint support (simple firmware upgrade on the XP-400).
Lastly, register the printer (and device you wish to print from) with your Google account.
Now that that is setup. I built and deployed FirePhoto and added support for the share intent through a standard (and provided) MediaPlayer action in the ActionList component.
And Voila! Printing from Android using FireMonkey.
Don’t forget to check out the current RAD offers and apply for Android beta access today:
Sign up for Android news/info and apply to be a beta tester: http://embt.co/RADBetaA
Special Offers: http://embt.co/XE4RadOffer
- 6 months maintenance free with new user purchases
- 2009 users get the upgrade price when buying with 1 year maintenance
- bonus pack of extras free
~/jtPosted by J T on August 16th, 2013 under Uncategorized | 6 Comments »
~/jtPosted by J T on August 14th, 2013 under Uncategorized | Comment now »