はみ出しRAPTの戯言

- a day after yesterday -

目次

Blog 利用状況

ニュース

書庫

日記カテゴリ

コミュニティ リンク

CString::AppendFormat

# まー、今更ですが。

自宅にある VC2003 で WTL7.5 final を入れて、新しい WTL の中身と ATL の中身を眺めていた時の話。

ATL::CString::AppendFormat() が増えていて便利ーと思った。
CString 使っていると、整形文字列を追加したいことがよくあるので、そのたびに一時オブジェクトを作って
CString::operator+=() していたので。

しかしなぜかこのメソッドが WTL7.5 になかった。
ATL に比べてこれだけ外す理由が思いつかないのだけど。

VC++6/WTL7.0 の頃は、MFC::CString に対して、WTL::CString::Append( int n ) があって優位だったのに…。

なぜ実装しなかったのかは謎だが、まぁ、WTL はオープンソースなヘッダ群なので早速、
WTL::CString::AppendFormat() を作成しました。
実際のところは、WTL::CString のメソッドを順番に呼ぶだけなのでそんなに難しくはなく。

※宣言は省略。定義だけ。なお、変数名は WTL の流儀にあわせてあります。

// [atlmisc.h]
// UDT RAPT : like ATL::CString::AppendFormat
inline BOOL __cdecl CString::AppendFormat( LPCTSTR lpszFormat, ... )
{
    ATLASSERT( _IsValidString( lpszFormat ) );
    va_list argList;
    va_start( argList, lpszFormat );
    CString string;
    BOOL bRet = string.FormatV( lpszFormat, argList );
    va_end( argList );
    operator += ( string );
    return bRet;
}
// ENDE

投稿日時 : 2006年11月24日 2:19

コメントを追加

# I was suggested this blog by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my difficulty. You are incredible! Thanks! 2019/04/09 21:37 I was suggested this blog by my cousin. I am not s

I was suggested this blog by my cousin. I am not sure whether this post is written by him
as nobody else know such detailed about my difficulty.

You are incredible! Thanks!

# Magnificent beat ! I wish to apprentice while you amend your web site, how can i subscribe for a blog web site? The account aided me a acceptable deal. I had been a little bit acquainted of this your broadcast provided bright clear idea 2019/05/17 11:29 Magnificent beat ! I wish to apprentice while you

Magnificent beat ! I wish to apprentice while you amend your web site, how can i subscribe
for a blog web site? The account aided me a acceptable deal.
I had been a little bit acquainted of this your broadcast provided bright clear idea

# Sweet blog! I found it while searching on Yahoo News. Do you have any tips on how to get listed in Yahoo News? I've been trying for a while but I never seem to get there! Many thanks 2019/05/18 1:09 Sweet blog! I found it while searching on Yahoo Ne

Sweet blog! I found it while searching on Yahoo News.

Do you have any tips on how to get listed in Yahoo News?

I've been trying for a while but I never seem to get there!
Many thanks

# Great article! That is the kind of information that are supposed to be shared around the net. Disgrace on Google for now not positioning this put up higher! Come on over and seek advice from my site . Thanks =) 2019/06/04 0:55 Great article! That is the kind of information tha

Great article! That is the kind of information that
are supposed to be shared around the net. Disgrace on Google for now
not positioning this put up higher! Come on over and seek advice
from my site . Thanks =)

# Amazing! Its actually amazing post, I have got much clear idea about from this article. 2019/06/04 17:51 Amazing! Its actually amazing post, I have got muc

Amazing! Its actually amazing post, I have got much clear idea about from this article.

# Having read this I believed it was really enlightening. I appreciate you taking the time and effort to put this article together. I once again find myself personally spending a lot of time both reading and leaving comments. But so what, it was still worth 2019/06/05 17:49 Having read this I believed it was really enlighte

Having read this I believed it was really enlightening. I appreciate you
taking the time and effort to put this article together.
I once again find myself personally spending a lot of time
both reading and leaving comments. But so what, it was still worthwhile!

# nzTiaOAZprMtwQMj 2019/06/29 1:59 https://www.suba.me/

TIDRjI It is in reality a great and useful piece of information. I am satisfied that you simply shared this helpful info with us. Please keep us up to date like this. Thanks for sharing.

# NYkisuvAdq 2019/07/02 4:04 http://poster.berdyansk.net/user/Swoglegrery374/

Merely wanna comment that you have a very decent site, I like the style and design it really stands out.

# imoKhnFaPyJ 2019/07/02 7:22 https://www.elawoman.com/

This unique blog is no doubt educating as well as diverting. I have picked up a bunch of handy stuff out of this source. I ad love to return every once in a while. Cheers!

# hZeJZXfzWh 2019/07/02 20:06 https://www.youtube.com/watch?v=XiCzYgbr3yM

Wow! This could be one particular of the most beneficial blogs We ave ever arrive across on this subject. Actually Excellent. I am also an expert in this topic so I can understand your effort.

# ZnnknjCemryIQaooke 2019/07/03 20:23 https://tinyurl.com/y5sj958f

Very informative blog post.Really looking forward to read more. Keep writing.

# hbNtbNKBPGFHkWaX 2019/07/04 15:56 http://cyrusmiley.com

Really enjoyed this blog article.Thanks Again. Much obliged.

# KwuZJboxdS 2019/07/07 19:57 https://eubd.edu.ba/

This website really has all the information and facts I wanted concerning this subject and didn at know who to ask.

# uVvvViRiGmnQ 2019/07/08 16:08 https://www.opalivf.com/

There is noticeably a lot to identify about this. I believe you made certain good points in features also.

# GXTzBfxbveXPDOKgZTh 2019/07/08 18:13 http://bathescape.co.uk/

You made some really good points there. I checked on the net for additional information about the issue and found most people will go along with your views on this website.

# GVAXgOoYbRLJJrp 2019/07/08 20:09 https://vimeo.com/PaytonChans

My brother recommended I might like this website. He was totally right. This post truly made my day. You cann at imagine simply how much time I had spent for this information! Thanks!

# XoVotkrnJe 2019/07/08 23:24 http://caldaro.space/story.php?title=thuoc-synacth

There is visibly a bunch to know about this. I think you made some good points in features also.

# btfwzddBuEwldOc 2019/07/09 2:18 http://insuranceclaimguy5tqr.apeaceweb.net/the-boo

This is my first time pay a quick visit at here and i am really pleassant to read all at single place.

# tVCRxFiGHBhDJ 2019/07/09 5:11 http://maritzagoldware3cv.tubablogs.com/last-and-p

It as appropriate time to make some plans for the future and it as time to be happy.

# LbQUiEIhYzRDVJSPQzY 2019/07/10 17:22 https://www.dailystrength.org/journals/having-a-ma

This excellent website definitely has all of the information I needed concerning this subject and didn at know who to ask.

# unkKsfUpMclDgFxEhd 2019/07/10 19:47 http://zillows.online/story.php?id=9308

Wow! This could be one particular of the most helpful blogs We have ever arrive across on this subject. Actually Great. I am also an expert in this topic so I can understand your hard work.

# EhgSySoALzRjPcLIDc 2019/07/10 22:43 http://eukallos.edu.ba/

It as nearly impossible to find educated people on this subject, however, you sound like you know what you are talking about! Thanks

# GgxAbfeLWzWMZAe 2019/07/11 7:42 http://bookmarkgroups.xyz/story.php?title=iherb-sa

Im thankful for the blog post.Much thanks again. Much obliged.

# HyUPFBtJya 2019/07/12 0:20 https://www.philadelphia.edu.jo/external/resources

It as fantastic that you are getting ideas from this post as well as from our argument made at this place.

# nbbRXTuWjc 2019/07/15 7:36 https://www.nosh121.com/uhaul-coupons-promo-codes-

Very informative article post.Really looking forward to read more. Keep writing.

# KsNcqPLoNx 2019/07/15 10:43 https://www.nosh121.com/44-off-fabletics-com-lates

I was recommended this website by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my difficulty. You are incredible! Thanks!

# SlUIEXnydh 2019/07/15 17:02 https://www.kouponkabla.com/cv-coupons-2019-get-la

Really appreciate you sharing this blog.Really looking forward to read more. Want more.

# FvQBjrFErFsB 2019/07/15 20:15 https://www.kouponkabla.com/colourpop-discount-cod

Major thankies for the article post. Awesome.

# qrQYxmzsHMMCzRISVOo 2019/07/15 23:35 https://www.kouponkabla.com/forhim-promo-code-2019

Loving the info on this site, you have done great job on the content.

タイトル  
名前  
URL
コメント