当前位置:编程学习 > VB >>

是不是没定义好OpenGL的初始环境??怎样定义

Private Sub Open_Click() 
CommonDialog1.FileName = "" 
CommonDialog1.flags = vbOFNFileMustExist 
CommonDialog1.Filter = "All Files(*.*)" 
CommonDialog1.FilterIndex = 3 
CommonDialog1.DialogTitle = "Open File(*.*)" 
CommonDialog1.Action = 1 
If CommonDialog1.FileName = "" Then 
  MsgBox "No file selectd", 37, "Checking" 
Else 
Dim st As String 
st = CommonDialog1.FileName 
Picture1.Picture = LoadPicture(st) 
End If 
End Sub 
这是我做的一个仿真系统中打开文件中的代码,要求是要能打开文档和三维图形,而我是引用了OpenGL的(只在工程中添加.),所以用的是PictureBox控件,但现在只能打开JPG格式的图片,能告诉我怎么回事吗?谢谢了  是OpenGL要进行设置吗?还是要定义,具体方法是怎样的,望您指点下  谢谢  --------------------编程问答-------------------- 参考这个代码:http://www.supercss.com/StaticData/Resource/Code/part_2/english/other/sweepgl.zip
补充:VB ,  网络编程
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,