Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 276
  • Last Modified:

C++ in VC++

How can I compile and run a C++ program in Visual C++ 5.0,
because I have .dsw file.
0
nhcuong
Asked:
nhcuong
1 Solution
 
nhcuongAuthor Commented:
sorry, because I haven't got .dsw file
                        ^^^^^^^^^^^^
0
 
raybCommented:
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
 
Rajkumar_RCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now