Solved

compiling scripts with VisualC++ ?

Posted on 1997-10-05
5
206 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

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Introduction:   Welcome to my first article ever. To begin with, the reason I write this article.  I participated in a question on Experts Exchange about the start command in Windows and there were some discussion about the usage. The discussio‚Ķ
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

809 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