Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / November 2004

Tip: Looking for answers? Try searching our database.

a simple help pls.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
den.NET - 30 Nov 2004 15:55 GMT
i use c++.NET 2003.i simply make a windows form.2 text boxs( takes the
number),a buton and another multilined textbox.So  simple,when u hit
the button it just takes the number in the 1st text box and 2nd
textbox and writes to the multilined 3rd textbox.soo simple.

code i have to use in the button code;

char * ekran = new char[200];

sprintf(ekran,"%.2f\t%.2f\t\n",v1,v2);
String * output = new String(ekran);
delete [] ekran;

outputTextBox->Text=String::Concat(outputTextBox->Text,output),stream->ReadToEnd();

but the output is:

1200.00    15.00   []1200.00    15.00   []1200.00    15.00   []  

SO \n doesnt work!it just outputs as a small rectangular(i show it as
[]).
why \n is not functional in my code?what could be the problem?please
help me!.thanks to anyone who cares.have a nice day.    

               
David Pokluda - 30 Nov 2004 20:31 GMT
Hi,

try to use "\r\n" instead of "\n". It works for me in C# code.

Regards,
David.

>i use c++.NET 2003.i simply make a windows form.2 text boxs( takes the
> number),a buton and another multilined textbox.So  simple,when u hit
[quoted text clipped - 24 lines]
>  www.GroupSrv.com
> *-----------------------*

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
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.