123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|646|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> C/C++/C#/Other -> Sams C++ in 24 Hours and Borland C++ BuilderX Problems

Page : 1 Prev 2 3 Next
Thu, 11 Feb 2010, 15:09
bubbashere
Ok here is what the story is, the damn BorlandC++Builder CD did NOT work on my Vista Windows, so i got DEv++, but trying to follow the instructions of the C++24Hours, on the DevC++ did not work, got lost in all the project/file, saving/ opening, new. etc. . then i got the VisualC++ free from the link that someone posted.. its kinda more parallel to the book, but still got error message which i ddint get. Then i got First chapter of Visual studio 6 Integrated Devlopment Env. its old like from 2000. trying to follow those instructions , typing the Hello thing , but in the Visual C++ , this is the closest ive got, But STILL errors..:

1>------ Build started: Project: welcome1, Configuration: Debug Win32 ------
1>Embedding manifest...
1>.\Debug\welcome1.exe.intermediate.manifest : general error c1010070: Failed to load and parse the manifest. The system cannot find the file specified.
1>Build log was saved at "file://c:\Users\Owner\Documents\Visual Studio 2008\Projects\welcome1\welcome1\Debug\BuildLog.htm"
1>welcome1 - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Good luck anyone following and helping , on what i just posted lol

Thu, 11 Feb 2010, 16:13
bubbashere
OK, can anyone help out , with Trying the Page 15, hello.cpp on the Sam's C++ TeachYourself in 24 hours, 4th Edtion, , on page 15 , listing 1.1 hello.cpp, Which IDE, do i use. and give me Step/step instructions, i tried it on DevC++ , i got erros , i tried it on VisualC++ Express, also errors.. The books supposed to go with BorlandC+BuilderX, which the CD dont work with my Windows Vista. Tthanks!!!!!
Fri, 12 Feb 2010, 06:25
Phoenix
1. Write readably. Use proper grammar. This isn't a chat room.
2. I don't own that book, and many others don't either, so you need to copy the code listing and paste it here.
3. Try cleaning and then rebuilding the project from the build menu in Visual Studio.
Fri, 12 Feb 2010, 06:33
Afr0
1>------ Build started: Project: welcome1, Configuration: Debug Win32 ------
1>Embedding manifest...
1>.\Debug\welcome1.exe.intermediate.manifest : general error c1010070: Failed to load and parse the manifest. The system cannot find the file specified.
1>Build log was saved at "file://c:\Users\Owner\Documents\Visual Studio 2008\Projects\welcome1\welcome1\Debug\BuildLog.htm"
1>welcome1 - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Good luck anyone following and helping , on what i just posted lol


Hm.
Not sure what seems to be the problem, but the mentioning of 'manifest' makes me think you're trying to build an MSIL (C++ .NET) application. Make sure you're just making a regular Win32 Console application.
Also, since you're just starting out, try to select 'Empty Project'. That'll give you an empty project. You'll have to add a file to it manually, but you won't have to worry about including "stdafx.h" or anything.

Edit: Also, I have a feeling this Sam's Teach Yourself book is out of date. It should be <iostream>, not <iostream.h>!

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Fri, 12 Feb 2010, 06:51
Jayenkai
I don't think C++ cares, but who knows it's C++! I imagine it'll pick up the .h anyway, if it's there.

This is one of the things I hate about Techy-Books, they just can't keep up.
Is there a website for the book? It might have amendments that could help you get up to speed.

-=-=-
''Load, Next List!''
Fri, 12 Feb 2010, 10:37
shroom_monk
I have the book, so I could give you a hand. But I know it always uses <iostream>, never <iostream.h>. I no longer use DevC++, for the reasons others have given, but when I did use it, for simple code like the examples in the book, I would just create a new file (not bothering with projects), then compile and run. Worked for me.

-=-=-
A mushroom a day keeps the doctor away...

Keep It Simple, Shroom!
Fri, 12 Feb 2010, 14:39
bubbashere
Hey all, thanks for allt he posts. the stuff above, is exactly as it appeared, i just copied and pasted. Shroom i see u got the book as well.. So u typed the examples from the C++ teachyouself in Visual C++ express, the free edition? i cant follow all the project / file, all that from the book, in to the visual C++ express, u know what i mean ? anyone understand what im talking about? thx
Fri, 12 Feb 2010, 15:19
shroom_monk
Actually, I used DevC++ then, but I use Code::Blocks now, which is better. I've never used Visual C++.

-=-=-
A mushroom a day keeps the doctor away...

Keep It Simple, Shroom!
Fri, 12 Feb 2010, 18:43
bubbashere
Ok when i typed that simple first example listing1.1 I dont see the display hello world! on m y screen, i see something like Less than second disappear , is that whats supposed to happen? i have Windows Vista
Fri, 12 Feb 2010, 18:45
9572AD
*sigh* I remember the days when everyone (who used C) used Borland C because MicroSoft C was shite.
Pascal and COBOL were still in wide use back then.

-=-=-
All the raw, animal magnetism of a rutabaga.
Fri, 12 Feb 2010, 18:55
bubbashere
Lets not get off the subject here lol. I did AP pascal like early 90's , so long ago . !
Sat, 13 Feb 2010, 08:05
Afr0
Ok when i typed that simple first example listing1.1 I dont see the display hello world! on m y screen, i see something like Less than second disappear , is that whats supposed to happen? i have Windows Vista


That happens because your program returns 0, which means it'll just exit when it's finished executing.
On the start menu in Windows, go... hm, I think it's called 'Utilities' or 'Additional Utilities'. Then run the console from there and type in the full address of your program. Then you'll see the output on the screen.

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Sat, 13 Feb 2010, 10:22
shroom_monk
Yeah, forgot to mention that. DevC++ will close it instantly. Either run it from the console as Afr0 said, or stick system("pause"); before return 0;. I think there's a better way than that line, but I can't remember what it is. Anyone?

Alternatively, if you use Code::Blocks instead of DevC++, it will leave the console window open so you can see the result.

-=-=-
A mushroom a day keeps the doctor away...

Keep It Simple, Shroom!
Sun, 21 Feb 2010, 22:23
bubbashere
okay, so i type this into C++ Express and it still is NOT working 1!! ?? anyone any ideas ??
#include <iostream>

int main()
{
std::cout << "hello world!\n";
return 0;
}

Sun, 21 Feb 2010, 22:49
bubbashere
Success, typed in my first simple Demo Simple Fuctions code Listing 2.4 on DevC++ and it WORKS!! yea ! the systems pause; Line thing Worked ! Thanks
Sun, 21 Feb 2010, 22:52
bubbashere
All i need now , if someone can give some hints regarding VisualC++Express 2008 Edition please. NOne of the stuff above seems to be working on there, im confused, i tried to follow the instruction for the Visual Studio 6 IDE for Visual C++ but it doesn't work ? thanks again
Mon, 22 Feb 2010, 03:29
Afr0
Sigh!



1. Make sure you actually have Visual Studio C++ installed.
2. Go where it shows you on the image!

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Mon, 22 Feb 2010, 03:32
Afr0


3. Go where it shows you on the image!
4. Fill in the boxes like it says on the image!

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Mon, 22 Feb 2010, 03:34
Afr0


5. Click 'Next' like it shows you on the image!

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Mon, 22 Feb 2010, 03:38
Afr0


6. Do what it says on the image!

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Mon, 22 Feb 2010, 03:41
Afr0


7. Continiue to do what it says on the image!

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Mon, 22 Feb 2010, 03:44
Afr0


8. Follow the instructions on the image!

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Mon, 22 Feb 2010, 03:48
Afr0


9. Type in your code, like it says on the image!

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Page : 1 Prev 2 3 Next