Print Page | Close Window

SIgnature suggestion for ...::SetValue()

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=10450
Printed Date: 14 November 2024 at 5:19am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SIgnature suggestion for ...::SetValue()
Posted By: mgampi
Subject: SIgnature suggestion for ...::SetValue()
Date 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 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



Replies:
Posted By: jimmy
Date 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




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