Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - SIgnature suggestion for ...::SetValue()
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SIgnature suggestion for ...::SetValue()

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: SIgnature suggestion for ...::SetValue()
    Posted: 02 May 2008 at 8:02am
Hi,
 
CXTPPropertyGridItem::SetValue is declared as
 
virtual void CXTPPropertyGridItem::SetValue(CString strValue)
 
I suggest to change it to
 
virtual void CXTPPropertyGridItem::SetValue(const CString& strValue)
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017
Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Posted: 02 May 2008 at 8:31am
Hello,

I also prefered this.
But Codejock have cange many calls from
Fkt(CString strText) to Fkt(LPCTSTR lpText) and not to
Ftk(const CString& strText).
i don't know why ?
98 percent of CString parameter call in our project come from a other CString and not from a const string "MyText".

  Jimmy

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.