[ 
https://issues.apache.org/jira/browse/LOGCXX-329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thorsten Schöning resolved LOGCXX-329.
--------------------------------------

    Resolution: Duplicate

This sounds like LOGCXX-274, I will therefore close this bug.

> Microsoft ATL7 string conversion classes and LOG4CXX_ macros
> ------------------------------------------------------------
>
>                 Key: LOGCXX-329
>                 URL: https://issues.apache.org/jira/browse/LOGCXX-329
>             Project: Log4cxx
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 0.10.0
>         Environment: Microsoft Windows XP prof, Visual Studio 2005 with SP1, 
> C++ COM-programming with Active template Library
>            Reporter: Aleksandr A. Murashko
>            Assignee: Curt Arnold
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> Sorry, my english poor.
> Use classes from Active Template Library version 7 and above, helps 
> conversion string from/to any types as argument of LOG4CXX_ macros not work 
> properly. For example, this code:
> OLECHAR *pName = _TEXT("Some string");
> LOG4CXX_INFO(logger, COLE2T(pName));
> write to appender number (as DWORD hexadecimal - may be reference) instead 
> "Some string".
> For issue this problem use it:
> OLECHAR *pName = _TEXT("Some string");
> COLE2T temp(pName);
> LOG4CXX_INFO(logger, temp.m_psz);
> Also possible use early conversion ATL3 macro:
> OLECHAR *pName = _TEXT("Some string");
> LOG4CXX_INFO(logger, OLE2T(pName));
> Thank you.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to