eEcho blog

A journey of a thousand miles starts with a single step.

Archive for the ‘C++’ Category

The 5 Most Common Problems New Programmers Face–And How You Can Solve Them

http://www.cprogramming.com/beginner_programming_mistakes.html
When you’re just starting out with programming, it’s easy to run into problems that make you wonder how anyone has ever managed to write a computer program. But the fact is, just about everyone else who’s learned to code has had that experience and wondered the same thing, when they were starting out. I’ve helped […]

First look: Qt 4.5 rocks for rapid cross-platform development

Nokia has announced the availability Qt 4.5, a major update of the popular development toolkit. This version is packed with impressive new features and includes significant performance improvements. Nokia has also delivered the first official release of Qt Creator, a lightweight development environment designed to facilitate rapid construction of Qt applications.
Qt is a cross-platform C++ […]

Distributed Object Computing (DOC) Group for Distributed Real-time and Embedded (DRE) Systems

http://www.dre.vanderbilt.edu/
Distributed Object Computing (DOC) Group for
Distributed Real-time and Embedded (DRE) Systems
Institute for Software Integrated Systems
Vanderbilt University, Nashville
1829, Station B
Vanderbilt University
Nashville, TN 37235
TEL (615) 343-7472
FAX (615) 343-7440
Department of Computer Science
Washington University
Bryan Hall, Room 503
One Brookings Drive
St. Louis, Missouri 63130-4899
TEL (314) 935-4215
FAX (314) 935-7302
Electrical and Computer Engineering
University of California, Irvine
616E Engineering Tower
University of California, Irvine
Irvine, CA 92697-2625
TEL […]

CTemplate

http://code.google.com/p/google-ctemplate/
http://code.google.com/p/google-ctemplate/downloads/list
ctemplate
CTemplate is a simple but powerful template language for C++. It emphasizes separating logic from presentation: it is impossible to embed application logic in this template language.
Here’s an example of how to use it: not complete, but gives a good feel for what the ctemplate API looks like.
Here is a simple template file:

Hello {{NAME}},
You have […]

CORBA python Ubuntu

The Common Object Requesting Broker Architecture (CORBA) is a standard defined by the Object Management Group (OMG) that enables software components written in multiple computer languages and running on multiple computers to work together.
CORBA is a mechanism in software for normalizing the method-call semantics between application objects that reside either in the same address space […]

wxWidgets in Eclipse on Ubuntu

Compiling and debugging wxWidgets in Eclipse, with Eclipse project files.
I used the prebuilt wxWidgets project files for Eclipse created by Dan Howard. See also the wxWidgets wiki entry on this.
Install Eclipse and CDT
You could download Eclipse SDK and Sun Java separately, but I found that the Free Java (using gcj) also worked. Simply install eclipse-sdk […]

Screen Recorder vnc2swf

Vnc2swf is a cross-platform screen recording tool for ShockWave Flash (swf) format.
http://www.unixuser.org/%7Eeuske/vnc2swf/
Frequently Asked Questions
What’s the difference between Python version and C version?
Vnc2swf comes with two different implementations:
* Python version (pyvnc2swf):
o Runs on many platforms, including Linux, FreeBSD, Solaris, Mac OS X, […]

C syntax

Basic Program
#include
/*****************************************************************************
name: main
purpose: entry point of the whole program
args: (in) argc - num of command line arguments (incl. program exe)
(in) argv - an array of strings (char*) of each command line argument
[…]

C ++ syntax

New Type Modifiers
//////////////////////////////////////////////////////////////////////////////
// name: new_type_modifiers
// purpose: show the new type modifiers
// args: (out) result - ref of the result of this func
// (in) array - input array of 5 real numbers
// returns: a ref to a real number
// notes: passing large args […]