Author Topic: Editing Source Code  (Read 6373 times)

Phyltre

  • *
  • Posts: 84
    • View Profile
Editing Source Code
« on: 2005-12-07 03:58:14 »
Okay, when one edits the code of say, Jenova, from source, what do we use to rewrap into the .exe?

-gone away-

  • *
  • Posts: 385
    • View Profile
Editing Source Code
« Reply #1 on: 2005-12-07 04:17:59 »
A compiler.

A different compiler depending what language it is written in. Then the next step is to strap yourself to the chair and brace yourself for all the errors that you are about to recieve.

Phyltre

  • *
  • Posts: 84
    • View Profile
Editing Source Code
« Reply #2 on: 2005-12-07 04:49:28 »
I have made a few simple changes that aren't going to change anything about the way the thing compiles.  What is the easiest way for me to go from the source folder that is downloaded back to the .exe?  I didn't actually change any of the code, just some of the editing parameters.

Also:  I'm using Dev-C++ at the moment...I know very little about programming languages, but I figured this must be what the files are coded in since it's plastered all over the text.

Otokoshi

  • *
  • Posts: 552
    • View Profile
Editing Source Code
« Reply #3 on: 2005-12-07 13:24:51 »
Well, assuming Jenova is written in either C or C++, you already have the tool you need.  Dev-C++ will compile and link the source code and the parameters you mentioned into an .exe.

Since you are new to programming, here is a mini tutorial or lesson with Dev-C++.  I'm sure there are better resources out there, I just happen to know the teacher and he published this for his class.  Best of luck on your project.

Link

EDIT: smithie is right!  Have a comfortable chair to sit in.  If it turns out like anything my first C project was, you're going to be sifting through errors for a while. :D   I certainly hope that will not be the case for you.

Phyltre

  • *
  • Posts: 84
    • View Profile
Editing Source Code
« Reply #4 on: 2005-12-07 13:54:13 »
Well, the problem I'm having now is, the compiler's bugging out with over 500 messages during compiling.  As in, "BYTE does not name a type," "USHORT does not name a type," "TEXT was not declared in this scope,"  and a very few "afxwin.h: No such file or directory".

Since I fooled around with exactly none of all that, obviously I'm doing something wrong.  Are there any likely causes for this?

-gone away-

  • *
  • Posts: 385
    • View Profile
Editing Source Code
« Reply #5 on: 2005-12-08 01:13:18 »
Quote from: Phyltre
Well, the problem I'm having now is, the compiler's bugging out with over 500 messages during compiling.  As in, "BYTE does not name a type," "USHORT does not name a type," "TEXT was not declared in this scope,"  and a very few "afxwin.h: No such file or directory".

Since I fooled around with exactly none of all that, obviously I'm doing something wrong.  Are there any likely causes for this?


afxwin.h: No such file or directory usually means you do not have or have not incuded this header file. Dont worry too much about all the errors deal with which ever one comes first because it's usually is the cause of all the other error's.
Whenever you get one error it will cause a snowball effect and produce 500 more errors.

Phyltre

  • *
  • Posts: 84
    • View Profile
Editing Source Code
« Reply #6 on: 2005-12-08 01:56:43 »
Okay.  So is it possible that the source folder for Jenova is incomplete?  Because I'm loading everything in the folder into the project, and I'm still coming up with those errors.

I guess I'll try a re-download...

Edit:  Looks like I need MS visual basic 6.0.  Ah well.  We'll see how that works out.

-gone away-

  • *
  • Posts: 385
    • View Profile
Editing Source Code
« Reply #7 on: 2005-12-08 06:10:17 »
What is the very first error that the compiler list?

Also download or get a copy of the msdn library from microsoft it will help you significatly to identify the causes of problems.

Phyltre

  • *
  • Posts: 84
    • View Profile
Editing Source Code
« Reply #8 on: 2005-12-08 15:35:58 »
Well, all the stuff it can't find (the first error messages) is afxwin.h, afxext.h, afxdtctl.h, and afxcmn.h, which are all part of the MFC library.  Apart from getting MVS 6.0, I don't know how to get all the .h files.

-gone away-

  • *
  • Posts: 385
    • View Profile
Editing Source Code
« Reply #9 on: 2005-12-09 01:12:16 »
It sounds to me like you are using the free 7 meg compiler. is this true?
If it is then you simply will not be able to compile anything with a interface. As it does not include the required header's and liberaries.

you could also try including.. its most likely allready incuded
#include <stdafx.h>
using namespace std;
// This needs to be done manually with some compilers even for simple things. as i keep finding out.

dont worry if you need MVS, i just read in a magazine that microsofts been giving away Visual Studio 2005 express edition for free on their web site. Its in fact the only reason im on the net now, to head off there and download it. It better be true.

---- ADD -----

I just checked, it is true but not as true as they made it out to be, it has a time period of 1 year. which is pretty good. borderland have a simular thing but it only last 60 days.

Phyltre

  • *
  • Posts: 84
    • View Profile
Editing Source Code
« Reply #10 on: 2005-12-09 04:13:23 »
Okay.  I got Visual Studio 2005 Express, and I'm only missing afxwin.h.  I don't suppose anyone has a copy they'd let me borrow temporarily?

Aaron

  • *
  • Posts: 2818
    • View Profile
    • http://aaron-kelley.net/
Editing Source Code
« Reply #11 on: 2005-12-09 04:34:53 »
VS Express is available for free for a year.  (I see you've already found it.)  

Quote
I just checked, it is true but not as true as they made it out to be, it has a time period of 1 year. which is pretty good. borderland have a simular thing but it only last 60 days.

If you do some reading, you'll see that if you download it now, there is not a one year time-out in the software.  If you download it now, you can use it forever.  What they mean is, in a year, it will no longer be available for free online.  This is pretty nice of them.  :-P

Quote
12. Do customers who acquire the Visual Studio Express products during the free promotional pricing period have to pay after the first year if they want to continue to use them?
   
No, as long as you download Visual Studio Express on or before November 7th 2006, you will not have to pay for it.

-gone away-

  • *
  • Posts: 385
    • View Profile
Editing Source Code
« Reply #12 on: 2005-12-09 04:55:27 »
aAAAaaaahhh.... sweet, i was just about to fork out $100 for a copy of it the other day but didn't have any money on the credit card.