Native C++ Development is Still Being Used

I just stumbled upon an article mentioning that Evernote abandoned WPF and the Microsoft .NET framework and rewrote their application from scratch in native C++ code 🙂 The official reason given:

The blurry fonts, slow startup times, large memory footprint, and poor support for certain graphics cards were all issues that the technology behind 3.5 was incapable of resolving. As a result, we ended up chasing down platform bugs rather than adding the great features our users wanted.

Read the article here.

Share

Trip to Sarajevo (Bosnia) – Pictures

Here are a couple of pictures from our trip to Sarajevo. Of course, for lunch we had Ćevapčići 🙂
Read the rest of this entry »

Share

Analyze Your C++ Code Using CppDepend

CppDepend is a tool that you can use to analyze your C/C++ code. I gave it a try and it’s pretty powerful. CppDepends has support for 60 different code metrics. It has something called Code Query Language (CQL) that allows you to perform queries on your code like the following:

  • Which public methods have more than 30 lines of code?
    SELECT METHODS WHERE NbLinesOfCode > 30 AND IsPublic
  • Which classes derive From CBase?
    SELECT TYPES WHERE IsClass AND DeriveFrom “CBase”
  • Which methods have been refactored recently ?
    SELECT METHODS WHERE CodeWasChanged

It can generate several different kind of graphical representations of your code, for example:

I think this tool will help a lot when working on a new code base to understand the structure of the code.

Here is a description from the vendor:

Improve your code base quality.
CppDepend is a tool that simplifies managing a complex C/C++ (Native,Mixed and COM) code base. Architects and developers can analyze code structure, specify design rules, do effective code reviews and master evolution by comparing different versions of the code.

Refactor and Improve your design and architecture.
CppDepend provides useful graphs to analyze your design and architecture. CQL language gives you a flexibility to create your custom queries and have a deep view of your code base.

Assist your migration.
Understanding the existing code base is primordial before any migration. CppDepend helps you in your migration process.

Visit the CppDepend site.

Share

Roadtrip South Europe 2010 – Pictures Geneva

The last stop on our roadtrip was Geneva. Here are some pictures.
Read the rest of this entry »

Share

Defining x64 Target Platform for VC++ Projects

Marius Bancila posted an excellent post on his blog explaining how to define x64 target for you Visual C++ Projects.

If you want to port an existing 32-bit application for the x64 platform (especially since 32-bit processors will soon be history), or if you want to target x64 for a new application, the first step in building for x64 is setting up your solution. In this post I will explain what are the steps in configuring x64 as target platform for your projects. Of course you must have the 64-bit compiler and tools installed to make this possible.

Read the full article.

Share

Roadtrip South Europe 2010 – Pictures Monaco

Our last but one stop was Monte Carlo, Monaco. It’s an interesting city; lots of nice sports cars and yachts 🙂 Talking about sports cars, we saw a lot of my second favorite car, Aston Martins. We didn’t saw any of my first favorite car, but we did in Geneva, so you’ll have to wait for the next blog post in this series to know what it is 😉 On the other hand, we did saw 3 hyper-cars: the Mercedes Mclaren SLR, Ferrari Enzo (in a ‘jacket’ unfortunately) and the Bugatti Veyron, unfortunatelly, we only saw the back of the Veyron for a second 🙁
Read the rest of this entry »

Share

Roadtrip South Europe 2010 – Pictures Barcelona

Barcelona was our next stop after Valencia. Barcelona is a completely different kind of city compared to Valencia. It’s much bigger and much more tourists. For example, sometimes we had to wait for a while to hop on one of the tourists busses. The wait was never too long, but I’m just wondering how long people have to wait if they go to Barcelona at the peak of the season in July or August. But anyway, when we were there, it was perfect 🙂 Below are some pictures from Barcelona.
Read the rest of this entry »

Share

Microsoft Security Essentials Available FREE to Small Businesses in October

In October, Microsoft will be making a change to the licensing of its Microsoft Security Essentials product. After the change, small businesses can install the Security Essentials on up to 10 PCs for FREE. Previously, it was only free for consumer use. Microsoft Security Essentials provides protection from viruses, spyware and other malicious threats.

Get more information on MSDN.

Visit the Microsoft Security Essentials website.

Share

Roadtrip South Europe 2010 – Pictures Valencia

After Madrid we drove to Valencia. Valencia turned out to be a nice quiet city, at least at the time we were there. I really liked the city. 🙂
Read the rest of this entry »

Share

Possible Replacement for USB 3.0, DVI, HDMI, DisplayPort, Ethernet, eSATA Coming in 2011

I usually don’t write posts about new technology, but a new technology from Intel might be quite disruptive to current connection technologies. Meet Intel Light Peak 🙂 Gone will be the days of copper wires, Light Peak is an optical connection technology. Up until now, optical connections are only used by data centers that require huge amount of bandwidth and are also rather expensive. Intel’s Light Peak solves all this; it will be cheap and consumer friendly. The bend radius of the Light Peak optical cables is very small. You can bend the optical fiber around a pencil without disturbing the optical path.

Light Peak only provides a bidirectional physical transport medium and is designed such that almost any protocol can run on top of it. This means it could be used to transport USB, DVI, HDMI, DisplayPort, Ethernet, FireWire, SCSI, PCI Express etc simultaneously over a single optical fiber! Light Peak also supports quality of service (QoS) and is hot pluggable. Initial bandwidth will be 10Gbit/sec. This is without any WDM (wavelength division multiplexing). Intel claims it is not too difficult to scale Light Peak up to 100Gbit/sec 🙂 To put 10Gbit/sec into perspective (Quotes from Intel):

At 10Gb/s, you could transfer a full-length Blu-Ray movie in less than 30 seconds.

If you had an MP3 player with 64GB of storage, it would only take a minute to fill it up with music using Light Peak at 10Gbps.

If all the books in the Library of Congress were digitized, they would amount to over 20 terabytes of data (a 2 with 13 zeroes after it). If you used Light Peak technology operating at 10 Gb/s, you could transfer the whole library of congress in less than 35 minutes.

Light Peak connections can be daisy chained or can use a star topology and work upto 100 meters, might be reduced to 50 meters for the final product. Even at ‘only’ 50 meter, it’s much beter than technologies like HDMI, DVI, USB and so on.

I’m really looking forward to Light Peak. No more messing around with different kind of cables to connect your monitor or external harddisk or anything else. Just 1 single cable to connect anything you want.

Intel expects to see Light Peak in PCs and peripherals in 2011 🙂

Share

Roadtrip South Europe 2010 – Pictures Madrid

The second stop on our roadtrip through southern Europe was Madrid. Here are a couple of pictures from Madrid.
Read the rest of this entry »

Share

Windows Phone 7 Final Developers Tools Released

Microsoft has released the final version of the Windows Phone 7 developers tools 🙂
The package includes everything you need to start writing applications and games for Windows Phone 7. The package is completely free and includes all of the following:

  • Visual Studio 2010 Express for Windows Phone – Free edition of VS 2010 for Phone development.
  • Express Blend 4 for Windows Phone – Free version of Blend for Windows Phone 7 Development.
  • Silverlight for Windows Phone 7 – Rich framework for building great applications for Windows Phone 7.
  • XNA Game Studio for Windows Phone 7 – Rich framework that enables you to build great 2D and 3D games for Windows Phone 7.
  • Windows Phone Emulator – A hardware accelerated emulator that allows you to run and debug your applications and games without requiring a phone.
  • Phone Registration Tool – When you get a device, this allows you to “unlock” the device so you can run/debug your application on it, using your Marketplace account.

Download the tools here.
Read Scott Guthrie’s blog post to get much more details on the release.

Share

Querying Bing Using the New Windows 7 Web Services C++ API (WWSAPI)

According to MSDN, WWSAPI is a native-code implementation of SOAP which provides core network communication functionality by supporting a set of the WS-* and .NET-* family of protocols. WWSAPI is designed to be used by components/applications which fall into one of the following categories:

  • Native code mandate
  • Require minimal dependencies
  • Require minimal startup time
  • Memory constrained environments

Using this brand new API, it is possible to make native-code SOAP based web services and clients for SOAP based web services. I wrote an article that explains how to build client applications that use SOAP based web services. The web service that I used in the examples is the Microsoft Bing SOAP API which allows you to search for text, images and so on. The article just went live on CodeGuru. Read the full article.

Share

Internet Explorer 9 Beta is Out

Today Microsoft released a public beta of Internet Explorer 9. The new version is much better standard compliant and support such standards as HTML5, CSS3 and SVG2. It scores a nice 95/100 on the Acid3 test. I just installed it myself and I’m impressed with how much faster it works compared to IE8. You can read a full review here.
Download it here.

Share

Roadtrip South Europe 2010 – Pictures Bordeaux

In June 2010, my brother and I made a roadtrip trough south Europe. It took us from our home town in Belgium to Bordeaux in France, Madrid, Valencia and Barcelona in Spain, Monte Carlo in Monaco and Geneva in Switzerland. The roadtrip was around 4400km. I finally made some time to process our pictures and will make a series of blog posts with a small selection of pictures for each city. This first post shows a selection of pictures from Bordeaux.
Read the rest of this entry »

Share

The C++0x Range-Based For Loop

C++0x adds a new looping structure: the Range-Based for loop. This makes it easier to loop over elements of lists. It works with standard C arrays and types that have begin() and end() functions returning iterators like almost all STL containers.

Below is an example of a range-based for loop looping over a standard C-style array, incrementing each value by 1.

int myArray[3] = {1, 2, 3};
for(auto& el : myArray) {
    ++el;
}

Note that this example also uses the auto type deduction introduced in C++0x.
Now it’s only waiting until the C++ compilers start supporting it 🙂

Share

Office 2010 and SharePoint Server 2010 Launched for Business Customers

Microsoft has launched the following products for business customers:

  • Office 2010
  • SharePoint Server 2010
  • Visio 2010
  • Project 2010

“Microsoft’s Office 2010 and SharePoint 2010 beta programs were the largest ever, with three times the number of participants compared with the Office 2007 beta program. As a result, 8.6 million people are already using Office 2010 and related products. In addition, more than 1,000 partners are already building solutions for the 2010 set of products.”

Right now it’s available in 14 languages. In the next few months it will become available in 94 languages.

Read the full press release.

Share

New Windows Phone Developer Tools CTP is Compatible with Visual Studio 2010 RTM

Microsoft has just released a refreshed version of the Windows Phone Developer Tools CTP. The biggest change is that it is now compatible with the final version of Visual Studio 2010 RTM 🙂

The CTP includes the following components:

  • Visual Studio 2010 Express for Windows Phone CTP
  • Windows Phone Emulator CTP
  • Silverlight for Windows Phone CTP
  • XNA Game Studio 4.0 CTP

Get it here.

Share

Technical Editor for “Ivor Horton’s Beginning Visual C++ 2010”

I was technical editor for the book “Ivor Horton’s Beginning Visual C++ 2010“, published by Wiley. According to the author:

I would particularly like to thank my technical editor, Marc Gregoire, for doing such an outstanding job of reviewing the text and checking out all the code fragments and examples in the book. His many constructive comments and suggestions for better ways of presenting the material has undoubtedly made the book a much better tutorial.

Below is a description of what you can expect from the book.

By following author Ivor Horton’s accessible tutorial approach and detailed examples you can quickly become an effective C++ programmer. Thoroughly updated for the 2010 release, this book introduces you to the latest development environment and teached you how to build real-world applications using Visual C++. With this book by your side, you are well on your way to writing applications in both versions of C++ and becoming a successful C++ programmer.

Ivor Horton’s Beginning Visual C++ 2010:

  • Teaches the essentials of C++ programming using both of the C++ language technologies supported by Visual C++ 2010.
  • Shares techniques for finding errors in C++ programs and explains general debugging principles.
  • Discusses the structure and essential elements that are present in every Windows application.
  • Demonstrates how to develop native Windows applications using the Microsoft Foundation Classes.
  • Guides you through designing and creating substantial Windows applications in both C++ and C++/CLI.
  • Features numerous working examples and exercises that help build programming skills.
Share

Visual Studio 2010 RTM not Compatible with the Windows Phone Developer Tools CTP

A few days ago, Microsoft released Visual Studio 2010. Unfortunately, for the time being, this final version is not compatible with the Windows Phone Developer Tools CTP that was released a while ago. According to Charlie Kindel:

“If you install the retail (RTM) release of Visual Studio 2010 on the same machine on which you already have the Windows Phone Developer Tools CTP, you will be unable to build your Windows Phone projects.  Further, while the Windows Phone project type will continue to appear in the File/New dialog, you will not be able to build Windows Phone 7 applications.”

The Windows Phone Developer Tools are being updated and a version that supports the final version of Visual Studio 2010 will be released in a few weeks.

In the meantime, Charlie Kindel recommends the following if you need the retail version of Visual Studio 2010 together with the Windows Phone Developer Tools CTP:

  • Install Visual Studio 2010 to a VPC image
  • Install Visual Studio 2010  on another machine

Note that installing the Windows Phone Developer Tools CTP to a VPC image is not supported.

Register here to be informed when an updated version of the Windows Phone Developer Tools is released.

Share