Solved

compiling scripts with VisualC++ ?

Posted on 1997-10-05
5
200 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
The viewer will learn how to dynamically set the form action using jQuery.

763 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

8 Experts available now in Live!

Get 1:1 Help Now