Solved

C++ in VC++

Posted on 1998-07-17
3
211 Views
Last Modified: 2010-04-01
How can I compile and run a C++ program in Visual C++ 5.0,
because I have .dsw file.
0
Comment
Question by:nhcuong
3 Comments
 

Author Comment

by:nhcuong
ID: 1168075
sorry, because I haven't got .dsw file
                        ^^^^^^^^^^^^
0
 
LVL 2

Accepted Solution

by:
rayb earned 0 total points
ID: 1168076
If you have the .dsp file you should be able to compile that.  Otherwise, if you have a .mak or .mk file you can run nmake on that OR import it into devstudio.  Devstudio will create a project out of a .mak file.  If not these two solutions, you may need to create a new project and simply add the neccessary files.
0
 
LVL 1

Expert Comment

by:Rajkumar_R
ID: 1168077
Well ..i don't know whether it is as simple ..but
if you have the source code all you need to do is open it through VC++(through file menu )  and go to build menu and say build ..it will ask do you want to create a workspace ..say yes and rest it will do ...then you can execute it from the build menu itself !

If it is just a small program then you can go to dos prompt and use  " cl " compiler to do the job for you type cl /? to get different options !

If this works for you ...then let me know ..i will repost my comment as answer(After you reject the current one ) ..then you can give me points !


0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now