Im newbie here first let me say hello to all members of our forum
I'm not a programmer. I only know little about vb6 by reading some ebook and source code .
Now i want to do it in vc++ 2005 . But it really is diff than vb6 .
I have some question here about read text file . I hope you will help me .
i have settings.ini fileCode:if (System::IO::File::Exists("settings.ini")) { System::IO::StreamReader^ sr = gcnew System::IO::StreamReader(System::IO::File::OpenRead("settings.ini")); System::String^ text = sr->ReadToEnd(); this->textBox1->Text = text; sr->Close();
i read settings.ini and write to text .hp=0.2
mp=0.2
stm=0.2
I have 3 combobox in Form1 . I want to read first Value (0.2) to combo1 next one to combo2 and last one to combo3 at form load event .
in vb6 only some line of code i can do thisbut i dont know how can i do this in vc++ 2005Code:If Left(text, 2) = "hp" Then Combo1.Text = Mid(a, 4, 1) ElseIf Left(text, 2) = "mp" Then Combo1.Text = Mid(a, 4, 1) ElseIf Left(text, 3) = "stm" Then Combo1.Text = Mid(a, 5, 1) End If
I hope you can help me . Thank you very much



LinkBack URL
About LinkBacks
. I only know little about vb6 by reading some ebook and source code . 


