Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / August 2003



Tip: Looking for answers? Try searching our database.

LString to clipboard?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rick Tschudin - 29 Aug 2003 09:28 GMT
What is the correct way to  concatinate more then 255 chars ( aloop that
keeps adding chars ...) and then copy them onto the clipboard?

Rick T.
David Phillip Oster - 29 Aug 2003 16:36 GMT
> What is the correct way to  concatinate more then 255 chars ( aloop that
> keeps adding chars ...) and then copy them onto the clipboard?

Since you mention LString, I assume you are using PowerPlant. Note the
newsgroup devoted to PowerPlant.

You can't use an LString, but you can use a standard string:

#include <string>
#include <UScrap.h>

std::string myString("some initial text");

myString += " more text";
myString += " and even more text";

UScrap::SetData('TEXT', &myString[0], myString.size());
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.