我可以將我的VB代碼轉換爲C++嗎?我該怎麼做?我可以將VB代碼轉換爲C++代碼嗎
這是我的VB代碼:
Dim OpenFileDialog1 As New OpenFileDialog
With OpenFileDialog1
.CheckFileExists = True
.ShowReadOnly = False
.Filter = "All Files|*.*|Bitmap Files (*)|*.bmp;*.gif;*.jpg"
.FilterIndex = 2
If .ShowDialog = DialogResult.OK Then
' Load the specified file into a PictureBox control.
PictureBox1.Image = Image.FromFile(.FileName)
End If
End With
是的 - 你可以轉換它,但你有什麼環境可用的C + +?你打算以C++/CLI爲目標嗎? MFC?其他? – sblom 2010-04-21 07:32:05