我可以将我的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