Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

[vc++]iostream, textbox and no argument function? :| wtf:(

form vc++ stream

  • Please log in to reply
1 reply to this topic

#1 ramzixp

ramzixp

    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 15 May 2010 - 07:58 AM

This is button code:

SaveFileDialog^ dig = gcnew SaveFileDialog();
dig-> Filter = "Text Files|*.txt|";

if(dig->ShowDialog() == Windows::Forms::DialogResult::OK() )

{
        System::IO::File::WriteAllText(dig->FileName, textBox1->Text());
}

Want to save data from textBox1 to file and this is debuger:

1>c:\users\ramzes\desktop\test2\glowna\glowna\Form2.h(299) : error C2064: term does not evaluate to a function taking 0 arguments

Can somebody help me? This is part of my study project and must done to Monday... :(
  • 0

#2 julmuri

julmuri

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 137 posts

Posted 15 May 2010 - 10:03 AM

textBox1->Text is a property, not a function.
So you dont need parentheses.

Wrong section btw. (:

  • 0

std::string s("oberq zhpu?");std::for_each(s.begin(),s.end(),[&](char&c){c=~c;c=~c-0x01/(~(c|0x20)/0x0D*0x02-0x0B)*0x0D;});std::cout<<s;






Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download