Print Page | Close Window

Markup parsing

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=11007
Printed Date: 15 November 2025 at 4:24am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Markup parsing
Posted By: gpm1
Subject: Markup parsing
Date Posted: 12 June 2008 at 12:15pm
Hello,

In the file XTPMarkupDrawingContext.cpp there is next method:

CXTPMarkupObject* CXTPMarkupPoint::ConvertFrom(CXTPMarkupObject* pObject) const
{
    if (IsStringObject(pObject))
    {
        LPCWSTR lpszValue = *(CXTPMarkupString*)pObject;

        float x = 0 , y = 0;
        if (WSCANF_S(lpszValue, L"%f,%f", &x, &y) != 2)
            return FALSE;

        return new CXTPMarkupPoint(x, y);
    }
    return FALSE;
}

While parsing that block of xaml:

<LinearGradientBrush StartPoint="0, 0" EndPoint="0, 1">
 
on a PC with locales where decimal symbol is , parsing is failed. For correct parsing there shouldn't be decimal point the same.

Pavel



Replies:
Posted By: Oleg
Date Posted: 13 June 2008 at 6:28am

Hi,

Do you see it with our MarkupPad sample ?
I changed it in regional settings, but it works. 


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: gpm1
Date Posted: 13 June 2008 at 7:08am
Hi,

Try to set in App
setlocale( LC_ALL, "" );
and then open, with  , as decimal symbol.


Posted By: Oleg
Date Posted: 18 June 2008 at 6:42am
Thanks. fixed for 12.0.1

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net