Archive for the ‘Programming’ Category

Adding resources to a Delphi app at build time

Saturday, February 28th, 2015

Just a quickie to let people know you can add resources to a Delphi app by using ‘Project->Resources and Images’ from the menu, but also by including them yourself using a .RES file that you can direct the compiler to generate during the build process. When I went looking for an answer there was some debate as to whether this was possible and if so how. There didn’t appear to be a consensus so I have just tested it with XE7 and it is possible using a resource directive in a unit.

So, with this resource directive in a unit:-

{$R sample.res sample.rc}

sample.rc contains:-

MYPNG RCDATA sample.png

And I can then load that image using:-

pngImage.loadFromResourceName(HINSTANCE,'MYPNG');

I know it works and loads correctly because I went on to paint the image on a canvas on the form.

My Delphi library opens it’s doors – unitXInput published

Friday, December 19th, 2014

I have finally bitten the bullet and decided I’m going to start publishing more of my library code. I’m not going to publish all of it, but some nuggets that may help people here and there. (more…)

Just in case I take part…

Wednesday, December 3rd, 2014

Just in case I enter this weekends Ludum Dare competition and use this, here’s a wrapper I started working on for SunVox. It’s C#, dirty as hell, mostly uncommented… but it does work with XNA (Visual Studio 2010, XNA 4). (more…)

Coderage 9 is coming – 28th-30th October 2014

Wednesday, October 15th, 2014

Embarcadero Coderage 9 Splash Image

Embarcadero are holding their on-line developers conference Coderage, later this month. The event is covering both C++ and Object Pascal this time around and features sessions from the likes of Nick Hodges, Marco Cantù, Jim McKeeth and Sarina DuPont (to name a few).

For more information and to sign up visit the Coderage 9 information page. The conference itself runs from 28th October to 30th October. Based on my experience of last years event, it’s well worth a visit.

Some of the benefits of Delphi XE7

Saturday, September 27th, 2014

It’s been a while since I posted and well I just thought I’d get this out there. For those who may not know, Embarcadero have recently released RAD Studio XE7 (and I’m going to give a mention to AppMethod as well), the latest version of their now cross platform enabled development environment. So what I hear you cry? Well, one of the things I tinker with when I have a few moments is my desire to be an author. I’ve been working on my first novel for some time and for this I use a fairly well known writing package that is available on Mac OSX and Windows. And right now I’m sure you’re thinking “what the hell have these two things got in common????” (more…)

Pascal Game Development – Community project launch

Friday, May 2nd, 2014

Well, a I’ve already mentioned I have recently found myself in the position of managing the community at Pascal Game Development. As my first (possibly crazy) act, I asked the community what they thought about working together to create a game development engine for Delphi and FreePascal.

Suffice to say, I have been a little overwhelmed by the enthusiasm that has thus far been demonstrated. So, if you’re into Pascal and you’re into making games and you’d like to work on a community project to build a game engine for the community, then head on over to PGD, register an account and sign up as a developer on the project.

Will keep you posted on progress :)

Embarcadero release XE6

Tuesday, April 15th, 2014

Embarcadero have release RAD Studio XE6. It features some great enhancements including app tethering. Check out the product pages here. If you’re into multi-device development and you don’t want the Windows VCL elements, you may also want to check out Appmethod, also from Embarcadero.

Pascal Game Development Under New Management

Sunday, April 6th, 2014

After (I think this is right) about a decade in charge of Pascal Game Development, Jason “WILL” McMillen has stepped down to focus on his growing family and his own game development goals. So, as of today… well, about Friday actually, PGD has new management in the form of yours truly :-)

It’s a seriously scary prospect, it’s one thing to be the behind the scenes administrator, but to step up to the front.  I just hope I can deliver :-)

Pascal Game Development

Embarcadero CodeRage for C++

Friday, February 7th, 2014

Whilst C++ really isn’t my thing, I just thought I’d mention, Embarcadero are holding a two day on-line webinar/conference on 25th and 26th February.  If you’re unfamiliar with their C++ offerings, they’ve been in with RAD Studio for sometime and they can leverage the same cross platform capabilities as Delphi.  So if C++ is your thing and you want to have a look at their offering, head here to signup for the conference.

Embarcadero RAD in Action Webinar – Unit Testing

Thursday, January 30th, 2014

Just a quickie to let anyone who may be interested know that Nick Hodges is hosting a RAD in Action webinar for Embarcadero on February 12th 2014. The topic, as the post title suggests is unit testing in Delphi. You can register now at http://embt.co/1eeHJXu.

Bad Behavior has blocked 71 access attempts in the last 7 days.

communication