Gaston Milano's WebLog

About something...

  • VS XAML Viewer Updated

    The last week was a special week for me because we were releasing a new Deklarit upgrade first and second there were our company “Olympic Games” from Thursday to Saturday, our team was playing tennis, basket, soccer, volley, etc after work. So after the Olympic Games (on Sunday) I could not move my body anywhere J so I was watching TV and dedicated to finish a second version of the XAML Viewer.

  • XML and Mvp.xml

    Today almost every application has to work with XML file. In order to work with XML the framework gives us a couple of classes, the most used class XmlDocument.

  • Give me a warning please !!

    Actually it is common that programmers should switch between C# programming an C++ programming. This is my case, and when I switch to VC++ programming I really miss the C# compiler.
    Today I spend 1 hour debugging (C++) because I wrote a code like this
    CString Item::GetMessage()
    {
         CString sXml;
          if (m_Info == NULL)
              sXml.Format("%s", "Empty Item");
          else
          {
                   CString sXml;
                   sXml.Format("The Information is: %s", m_Info->GetInfo());
          }
          return sXml;
    }
    As you can see I redefined sXml, then my function always return "Empty Item" or "".
    If you compile a similar code using C# compiler you are going to get an error ("A local variable named 'sXml' cannot be declared....").
    So, C++ compiler please... Give me at least a warning !!