怎样调用构造函数??
CFileDialog ofn(TRUE,NULL," *.bmp",OFN_FILEMUSTEXIST|OFN_PATHMUSTEXIST, "Bitmap files (*.bmp)\0*.bmp\0");高手帮我看看,这个语句要完成定义ofn的类型,同时调用了CFileDialog的构造函数!
我是照书写的,可总是不对,编译时出现:
"error C2146: syntax error : missing ';' before identifier 'ofn'"
"error C2275: 'CFileDialog' : illegal use of this type as an expression"
这样的错误!
应该怎样改啊?