开发者

How to open the file in class in mfc?

开发者 https://www.devze.com 2023-02-18 02:40 出处:网络
While trying to open the file in Class in function oninitdialo开发者_JAVA技巧g(),It throws exception.If I open the file globally , it works.

While trying to open the file in Class in function oninitdialo开发者_JAVA技巧g(),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


Actually I made a mistake by creating file descriptor in OninitDialog function in mfc.To overcome this , I create the file descriptor in constructor of the class.

0

精彩评论

暂无评论...
验证码 换一张
取 消