Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

compiling scripts with VisualC++ ?

Posted on 1997-10-05
5
Medium Priority
?
213 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 300 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Suggested Courses

610 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