Join Now

As an Assistant Professor, I'm teaching Symbian OS at the University of Applied Sciences in Hagenberg, Austria. My company "Mopius" is developing mobile software with a special focus on Symbian OS.

Checking your code with SymScan in Carbide.c++

mopius | 30 January, 2007 12:22

A few days ago, I was appointed as one of the new Forum Nokia Champions and am really glad to be part of the team! Nearly at the same time, the developer resources portal at http://www.symbianresources.com/ was updated with the latest material from the Symbian OS-courses that I held this winter-semester at the University of Applied Sciences in Hagenberg.


Many typical Symiban OS-topics are covered in a very detailed and up-to-date fashion, for example the Descriptors-part already contains exercises for the RBuf-classes. Generally, I try to explain everything in a rather graphical way with (for the most part) some code samples.


Apart from introducing this site, I want to post about one thing at the Forum Nokia Blogs, as I have not found similar instructions elsewhere.


SymScan and Carbide.c++


SymScan is a tool from Symbian that checks your code for potential problems as well as if it adheres to the Symbian OS coding guidelines – especially related to Leaves. I think it’s very useful to check the code from time to time, e.g. it can easily happen that you forget to add or remove the trailing L of a function name when tweaking your code.


After some research, I found a solution on how to integrate this tool with Carbide.c++. It’s not perfect – due to the way it’s integrated, the project will be compiled before running this tool. But that shouldn’t be an issue at all. To integrate it, follow these steps:


  1. In Carbide.c++, select Run -> External Tools -> External Tools...
  2. Create a new tool called SymScan for the “Symbian”-perspective.
    Set the location of the SymScan-Tool (e.g. C:Program FilesCommon FilesSymbiantoolsSymScan.exe).
    For the “Arguments”-field, enter: “${resource_loc}” – including the quotes (“”).
  3. Add it to the favourites menu (Common-tab of the External Tools-Menu).
  4. When a Symbian OS source file is open, run the tool through Run -> External Tools -> SymScan. The results will be displayed in the Console-window.
SymScan and Carbide.c++

Comments

You must login to post comments. Login
 
 
Powered by LifeType
RDF Facets: qfnZtopicQUqfnTopicZcppQ qfnZtopicQUqfnTopicZseriesE5f60Q qfnZtopicQUqfnTopicZtestingQ qfnZtypeQUqfnTypeZBlogContentQ qfnZtypeQUqfnTypeZBlogE45ntryQ qfnZtypeQUqfnTypeZCommunityContentQ qfnZtypeQUqfnTypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX