using namespace Microsoft::VisualStudio::CppUnitTestFramework;
using namespace CoreImpl;
#define T_OLIVIER "Luke"
#define T_ROUIT "SKYWALKER"
#define T_STREET "Owen Lars Moisture Farm"
#define T_ZIP "738094"
#define T_CITY "Mos Esley"
_refcnt_ptr<CPerson> person = new CPerson();
_refcnt_ptr<CAddress> address = new CAddress(T_STREET, T_ZIP, T_CITY);
_refcnt_ptr<CAddress> refAddress = &person->GetAddress();
std::string city = refAddress->GetCity();
_refcnt_ptr<CAddress> address = new CAddress();
CAddress* address2 = new CAddress(T_STREET, T_ZIP, T_CITY);
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Consistel - Singapore
Software Architect, COM, .NET and Smartcard based security specialist.
I've been working in the software industry since I graduated in Electrical and Electronics Engineering. I chose software because I preferred digital to analog.
I started to program with 6802 machine code and evolved to the current .NET technologies... that was a long way.
For more than 20 years I have always worked in technical positions as I simply like to get my hands dirty and crack my brain when things don't go right!
After 12 years in the smart card industry I can claim a strong knowledge in security solutions based on those really small computers! I'm currently back in the business to design the licensing system for the enterprise solution I'm currenly working on, using a .NET smart card (yes they can run .NET CLR!)
View my profile on LinkedIn
You can contact me for professional consulting by using the forum.