If you posted the code you are having a problem with it would simplify a response. However having said that if you want to become more familar with the language I suggest you download Microsoft's Visual C++ 2008 Express from their web site. Its free and has a great on-line help feature. If you are at all familar with VB 2008 or VC# 2008, both of these languages are structured nearly the same as VC++ with the exception of how operators are used, and are constructed around the .Net framework. Below is an example of all three language text box SaveFile Methods.
Visual Basic
Private Sub SaveToolStripButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripButton.Click
Dim myFileName As String = ""
With SaveFileDialog1
.DefaultExt = ".bas"
.Filter = "Basic52 Files (*.bas)|*.bas|All Files (*.*)|*.*"
.ShowDialog()
myFileName = SaveFileDialog1.FileName
FileOpen(1, myFileName, OpenMode.Output)
myFileName = txtEditor.Text
PrintLine(1, myFileName) 'Saves each line of text in the text
FileClose(1) 'editor so it can be eaisly be read
'by the LineInput() Function.
End With
FileClose(1)
End Sub
Visual C#
private void SaveToolStripButton_Click(object sender, EventArgs e)
{
Stream myStream;
string nStr = txtEditor.Text;
SaveFileDialog saveFileDialog1 = new SaveFileDialog();
saveFileDialog1.Filter = "Basic52 Files (*.bas)|*.bas|All files (*.*)|*.*";
saveFileDialog1.FilterIndex = 2;
saveFileDialog1.RestoreDirectory = true;
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
if ((myStream = saveFileDialog1.OpenFile()) != null)
{
using (StreamWriter sw = new StreamWriter(myStream))
sw.Write(nStr);
}
}
}
Visual C++
private: System::Void SaveToolStripButton_Click(System::Object^ sender, System::EventArgs^ e)
{
SaveFileDialog1->Filter = "Basic Files (*.bas)|*.bas|Text Files (*.txt)|*.txt|All Files (*.*)|*.*";
if(SaveFileDialog1->ShowDialog() == System::Windows::Forms::DialogResult::OK)
{
System::IO::StreamWriter ^ sr = gcnew System::IO::StreamWriter(SaveFileDialog1->FileName);
sr->Write(txtEditor->Text);
sr->Close();
}
}
This should give you an idea of how all three languages are structured. As you can see with the exception of how Operators are used there is very little difference.