Saturday, May 22, 2010

A microsoft visual C++ question?

I am suppose to use data file and make a program to open it ... i made a notepad document and put it on my destop and it will not open when i run my program.. the function is writen perfectly cas it said "can not open file" just like i programmed it to do if the file can not open.. why isn't it open the file?? the name describe in the file matches the file name i use in the program

A microsoft visual C++ question?
%26lt;--- Agree with Meow...





or...





If your using Vista, make sure you are not on a limited account. I've found in many occasions that Vista does not like non-cert applications doing anything... even if your using MS Visual Studio to write it... stupid Vista :(
Reply:This is when you switch to visual C# ;)
Reply:Instead of the desktop, place your data file in the directory where your exe is located. (probably something like \release). Else, you need to "fully path" the desktop in the fopen command or whatever command you're using (c:\document and settings\.......\myFileName).





Hope this helps.
Reply:change the extension of the file to cpp


No comments:

Post a Comment