Click to See Complete Forum and Search --> : Learning mfc by tutorial


Thepa
May 22nd, 1999, 07:24 AM
Hello everybody, i have just joined this forum i have found while looking for somebody who can me to learn visual c++ and mfc programming...
Tell me can we post our message in french?

So I was learning mfc using scribble tutorial on the msnd site. Once i finish this tutorial, i compile my "lesson", i mean the resulting program, but it remains these error :
------------------------------------------------

Warning: Could not get path for temporary files. Current directory will be used instead.
Compiling...
scribbleDoc.cpp
fatal error C1083: Cannot open compiler intermediate file: 'C:\TEMP\a00145ex': Permission denied
scribbleView.cpp
fatal error C1083: Cannot open compiler intermediate file: 'C:\TEMP\a10145ex': Permission denied
Generating Code...
Error executing cl.exe.

scribble.exe - 2 error(s), 0 warning(s)

---------------------------------------------
Don't let you disturb by this sentence "Permission denied".
The file involve does not exist in the directory specified and and i've got the same error while compiling the file with much more permission.
Could somebody help me. By the way, i would accept any advice which can help learning easily visual c++.

Wayne Fuller
May 23rd, 1999, 01:04 AM
Check your environment settings. You may not have TEMP or TMP setup. A quick way to do this is to go to a DOS prompt and type in "SET" and you should see a line such as "TEMP=C:\TEMP". If you do not see this then that is the problem. Changing this is different for Windows 9x and NT. If this is what it is and you have not figured out how to do this, reply to this message.

Wayne

Thepa
May 24th, 1999, 06:36 AM
Hello, Mr Wayne.
I try as you advise it to me to look the "TEMP" or TMP" environment settings on my computer. But, "unfortunately" i have seen the lines for them by entering
the "SET" command. Does it mean this is not the problem?
I would be glad to receive any other suggestion.

Thankx, for Wayne.

Thepa
May 24th, 1999, 08:01 AM
Hello, Mr Wayne,
I think that i have resolved my problem. In fact, i once again notice that i'm a pain, a native pain. I did not have enough privileges while i were compiling my project. So when i have logged as root, i finally remark that the compiler bypass the error while building the exec file.
The "temp" directory was effectively "read only" protected.
Excuse me again by boring you with my...
And thankx again to pay atention to my request. Notice that i'm poor in english to.

Jason Teagle
May 24th, 1999, 08:44 AM
Actually, your English is rather good. The whole point of communicating is to get someone else to understand what you mean; you have succeeded. If we don't understand you, we'll say so!

(By the way, you CAN post in French, but you limit the number of people who can help you by doing so as many people can't understand it.)

As for learning MFC, looking through the help file is a good place to get start. It will give you an idea of what functions are available (although if you are used to Windows API programming, most of these will already be familiar). It will not, though, be able to help you understand how many MFC-specific things fit together - the document / view architecture is a good example. For this you need a good book, or better still, someone to teach you in person. I started MFC without understanding how doc/view worked, and so ignored it. I succeeded, but then I went on an MFC course and the whole thing became (almost) perfectly clear. Now I realise how much work I could have saved myself by using this mechanism. It is a sound basis for most projects unless you REALLY have specific needs for your project! There is no substitute for hands-on teaching.

So, your best bet is to ask questions here. Don't worry about whether the question seems stupid or not - it is a matter of perspective. We are all at different levels.

A bientot.