简体   繁体   中英

How to open the file in class in mfc?

While trying to open the file in Class in function oninitdialog(),It throws exception.If I open the file globally , it works. How to overcome this? why the fopen command is behaving like these?

Regards,

karthik

实际上我在mfc的OninitDialog函数中创建文件描述符犯了一个错误。为了克服这个问题,我在类的构造函数中创建了文件描述符。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM