VC Picture 控件加载图像的问题(使用KoDak 图像编辑控件)
小弟想在对话框里面动态的加载任何格式的图像。所以就用了KoDa图像编辑控件。Imgadmin.ocx,Imgcmn.dll,Imgedit.ocx,Imgscan.ocx,Imgshl.dll,Imgthumb.ocx,Imgutil.dll,这些我也注册了。我的程序如下
BOOL CTestDlg::OnInitDialog()
{
CDialog::OnInitDialog();
m_ctrlPicture.SetImage("aa.jpg"); //保证图像在工程目录下,也可以写绝对路径
m_ctrlPicture.Display();
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
但是为什么会出现错误。
错误提示是这样的“内部控件错误,无法显示图像”
希望各位大侠指点一下。 多谢了。