Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Other Programming Languages (http://www.programmingforums.org/forum38.html)
-   -   Trouble with Visual C++ 2005 Express Edition installation (http://www.programmingforums.org/showthread.php?t=8324)

swedish_dude Feb 9th, 2006 8:24 AM

Trouble with Visual C++ 2005 Express Edition installation
 
Well, I've got a bit of a problem. I downloaded Microsoft's Visual C++ 2005 Express Edition from their website and started the setup. I got to the point when The Installation Wizard were supposed to install Microsoft .Net Framework 2.0. When it was just about to start, I got this message:
http://img203.imageshack.us/img203/3...nter0011uy.jpg

So I checked around on the website for the program and read that you have to remove Microsoft .Net Framework 2.0 from your computer to allow the Installation Wizard reinstall it. I didn't have 2.0 but 1.1, so I thought, maybe 1.1 also had to be removed? Yeah, so I uninstalled it and started the Visual C++ EE setup, but the problem were still there.

What can I do? Do you know any better website to download it from?

Help! :(

zorin Feb 9th, 2006 9:53 AM

You will need the .NET framework 2.0 installed first before you install Visual C++ 2005. Install the .NET framework 1.1 just to be sure. The only other problem I think it might be is that you haven't restarted your computer before attempting the install. My advice is to completly uninstall the .NET framework and restart your computer, then install the .NET framework 2.0 and restart again, then install visual C++ 2005 and that should do it.

Polyphemus_ Feb 9th, 2006 10:25 AM

Microsoft Visual C++ 2005 Express installation should automatically install the .NET framework, that's what it did at my computer.

swedish_dude Feb 9th, 2006 2:58 PM

Yeah, that's what it want to do on my installation to. So you say I'm just gonna restart the computer and try again?

King Feb 9th, 2006 3:18 PM

Do exactly what zorin said. It is crashing when it tries to install the framwork, so if it is allready have installed it will skip that part and finish the install properly.

swedish_dude Feb 9th, 2006 4:20 PM

Ok, I've got it installed now. Anyone know any good Visual C++ tutorials?

Polyphemus_ Feb 9th, 2006 4:24 PM

You mean how to use the IDE? It is really simple, start a new project, create a main.cpp file, and start writing!

swedish_dude Feb 9th, 2006 4:50 PM

ok, thx. But I have a question... What does the header and the cpp files do? How do they work and how are they used?

DaWei Feb 9th, 2006 4:59 PM

This question was just answered last week, but we'll hit it again. A header (.h, or for C++ headers, no extension) file contains declarations, but not definitions. Why? Because the purpose of header files is to declare common things that might be used for a number of source files. Header files are 'included' in the source (.cpp) file. This means that when the compiler is run, it first preprocesses the file. This means that the header file is actually copied and pasted into the source file. Macros and definitions are expanded. Things beginning with '#' are preprocessor definitions. When all that has been done, the resulting file is then compiled. If an application consists of more than one source file ('real' applications usually do), each source file has to be preprocessed and compiled. At that point, one has a lot of object files that fit together like a puzzle. Common elements are only referred to by labels. It is the province of the linker to resolve those common references and see that they refer to the same actual (often relocatable) memory addresses. It does that and produces the final executable file. Sometimes (not usually in normal 'desktop' PCs) there is an additional locate process which prepares the executable.

Some header files refer to other header files. One usually puts "guard" statements in the header file to prevent it from being included more than once in any given source file.

swedish_dude Feb 18th, 2006 7:31 AM

Ok, thanks DaWei!


All times are GMT -5. The time now is 7:34 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC