Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I finally got Visual C++, but now i need help

Status
Not open for further replies.

denisfinn

Programmer
Jun 7, 2003
49
US
VC++ is a little strange to me.

If anyone could explain how to make console applications I would be grateful.

Also, is there any way to have a default source file that already has:

#include <iostream>

int main()
{
return 0;
}

already written. I am kind of lazy and don't like writing that all the time.

Please be kind to me, for now I am a complete noob to Visual C++.

Thanks,
Denis
 
ok....forget the beginning part (the console app, I figured that out), But I am still interested in the shortcut previously described.

Thanks,
Denis
 
The VC++ Applciation wizard will generate that starter code for you if you select the correct options. Try it with different options and take a look at the results. Also when your going through the app wizard screens take the time to read them as they try to explain what type of project you are selecting and the code that will be generated.

>> I am kind of lazy and don't like writing that all the time.

On the other hand if your averse to writing code, perhaps C++ is not going to be to your liking. Try VB or MS Access if you don't like writing code.


-pete
 
Another question....
What kind of thing should I choose atl com appwiz, devstudio add-in wiz, isapi extension wiz, makefile, mfc activex control wiz, mfc appwiz (dll), mfc appwiz (exe), utility project, win32 application, win32 console application, win32 dynamic - link library, or win32 static library?

I am working on a Windows machine using XP. I have no clue what any of these are or do, so I would just like some informations as to what my options are. If you could, it would be nice to have some examples of each of the projects choices (the big list in first paragraph).

Thank you so very very much,
Denis
 
Pete...

It's not that i don't like writing code, it's just when I can avoid it I try to.

Catch my drift?

Denis
 
Denis,

For a console application how about the item titled Win32 [red]Console Application[/red]

For beginners i highly recommend using a book written for beginners.

For starting C++ programming i highly recommend using a book that is written for beginners. Trying to learn C++ by piecing together information on the net or in a message based conversation will take FOREVER.

Most of the books for beginners try to cover the fundamentals of C++ programming. These fundamentals are absolutely necessary and attempting to skip over them will not produce a desirable result. There are also books targeting Visual C++ and cover the IDE topics like App Wizard etc.


-pete
 
ok...I created a .exe named &quot;ah&quot; in vc++.

it has a frame and everything, but I do not know which file is like the source file (the one that I would edit to make the program). Would it simply be ah.cpp or whichever ending they have? And to edit it would i just start adding to the end?

Thanks,
Denis
 
yes, I do have a c++ book...it's just that it isn't on VC++. It's just on c++ itself. Prior to this I was using the Bloodshed Dev-C++ editor, which came with the book I am using to learn c++ :).
 
Hey Denis,

How are things going? You might consider using the MFC tutorial from Microsoft called &quot;Scribble&quot;. You can find it at msdn.microsoft.com

-pete
 
thanks a million!

I'm not doing too good so this should help :) !

thanks,
denis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top