[英]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. 尝试在函数oninitdialog()中的Class中打开文件时,它将引发异常。如果我全局打开文件,则可以正常工作。 How to overcome this?
如何克服呢? why the fopen command is behaving like these?
为什么fopen命令的行为如此?
Regards, 问候,
karthik 卡尔提克
实际上我在mfc的OninitDialog函数中创建文件描述符犯了一个错误。为了克服这个问题,我在类的构造函数中创建了文件描述符。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.