Solved

compiling scripts with VisualC++ ?

Posted on 1997-10-05
5
209 Views
Last Modified: 2013-12-25
I have now set up my personal WebServer..
And i have downloaded a script for C++ with the file format  .CCP....
Now there is one more thing... How do i Compile the .ccp file in Microsoft VisualC++....
I have no experiance with VisualC++ and that is the only thing I have left to learn.. Anyone who can give me inctruction exactly how to compile the .ccp file?...

Thanks..
~Gizmo
0
Comment
Question by:Gizmo
  • 2
  • 2
5 Comments
 

Expert Comment

by:aurelio
ID: 1830739
I think that file you've donwloaded is some sort of gnu or similar c++
source.
Anyway , that 's different from file format .. that is always text.
I suggest you to rename the source from  ".ccp" to ".cpp" or ".c" and
try to recompile it under visual.
If it is the case  , possibly you will get a lot of errors in the compilation
phase : perhaps it would be necessary to change the name of the <include> files . If this happens , that can be another question.
0
 
LVL 7

Expert Comment

by:faster
ID: 1830740
1. Start Visual C++
2. If there is a .mdp file included, open the .mdp file, otherwise create a new project, the type of the project is most likely a windows console project.
3. Add all the .cpp files into the project
4. Build the project, if there are errors come out, make the necessary changes: include path, lib file etc.


0
 

Author Comment

by:Gizmo
ID: 1830741
The question was how to step by step compile the file...

The source works I know that.. But I did not know how to compile the source so it can be run on a webserver...
0
 
LVL 7

Accepted Solution

by:
faster earned 100 total points
ID: 1830742
I thought I have given you the answer.

In the 4 steps I mentioned, which one you have problem?  Does the file come with a .mdp file?

Here is a more detailed one:

1. Start Visual C++.
2.1 If you have a .mdp file, select menu option: File/Open and then select the .mdp file.
2.2 If you have a .mak file, select menu File/Open workspace and then the .mak file, answer "yes" to any question it asks.
2.3 If you only have .cpp and .h files, select File/New, then select "Project workspace", then click OK.  Now select "windows console" project type and select a diretory (the one holds the source files).  After the project in made, select Insert/Files into project and select all the .cpp files to add into the project.

3.  Now you are ready to compile it, just press "F7", you will get an exe file under the debug or release sub directory which can be put in the cgi directory of your web server and you can have a test.

If you still have problem, please indicate where you fail.


0
 

Author Comment

by:Gizmo
ID: 1830743
Sorry, the text said Grade "Aurelio's" answer.. And I did that..
If it had said your name to grade I have made another choice..
Sorry...

Thank's !
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever wondered how to display how many visitors you have online. In this tutorial I will show you an easy but effective way to display the number of online visitors in WhizBase. In this article I assume you have read my previous articles and know …
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

831 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