don't click here

Chaoxed being ported to C++

Discussion in 'Engineering & Reverse Engineering' started by Wurly, Sep 25, 2006.

Thread Status:
Not open for further replies.
  1. Wurly

    Wurly

    :| Tech Member
    1. The Idea / Progress
    ==================
    About a week ago, I took the time and effort to study the basics of the Win32 API, and I felt like making a use out of this knowledge. A few days back, I started porting my Knuckles Chaotix Art Editor, or Chaoxed for short, from VB 6.0 to C++. Not much has been done because of school, so I was only able to work on it last weekend on my pentium 2 thinkpad, spending about half the weekend trying to get VS6.0 to work on the piece of shit. The main form is 95% ported, my user datatypes are all ported, and the function to read the pointers from the rom into an array is pretty much done.

    [​IMG]

    2. The Plan
    ==========
    If ANYONE wants to help with the project-hopefully drx because he's maybe the only one other than me who understands the format-feel free to give me a chat/call/message/whatever. It would be awesome if I could get like maybe 2 people with knowledge of the win32 API that I can release my source to and let them spice it up a bit, or just give me help in general. Remember if you do help, you get credit, meaning the name would no longer be JJFTails' Knuckles Chaotix Art Editor, but Knuckles Chaotix Art Editor, and your name/s would be right under mine in the credits. Now you may think, "Yeah yeah, it's just a name, no big deal", but I believe people have to be credited, whether they help with one real small thing or one huge thing. Now I don't mean to go on a big spiel, most of you would agree that if someone steals your work and everyone praises him/her, that's not fair, and its a really good way to piss people off. And even if someone reminds you to add a semicolon to the end of that line in your code, and you credit him/her in your program, you raise his/her confidence. It's a lot more effective than just a "Hah, how could I have missed that? Thanks.", and it's always nice to know you made someone proud, right?

    3. C++ means cross compatible
    =========================
    I recall people suggesting a mac port, and because I know awesome people like Lostgame, I can possibly make this happen. I'm not exactly sure how hard this would be, and not even sure if I can even do it. But if you're one of those Mac junkies with knowledge of the Mac API(?), and you want to help make it happen, then awesome. If you don't want to help with anything, it's still awesome, because you took the time and effort to look at this topic.

    Summary for the lazy
    =================
    if u want 2 help w/teh chaoxed port 2 c++ then lol gvie me a holla
     
  2. Aurochs

    Aurochs

    Единый, могучий Советский Союз! Tech Member
    2,343
    0
    0
    Whatever catches my fancy
    If you want to make it portable, you really shouldn't be using Win32 function calls. wxWidgets would be better for that. You could probably write code with it that will compile on any of Windows, MacOS, or Linux without any changes whatsoever.

    It will slow your program down a bit, though. As long as you aren't making API calls in any tight loops, it probably won't be an appreciable difference.

    Also, portable code is written in GCC, not MSVC++.
     
  3. drx

    drx

    mfw Researcher
    2,254
    351
    63
    :rolleyes:
    Good luck =)

    If you need any help, catch me on AIM or on IRC =P
     
  4. fuzzbuzz

    fuzzbuzz

    Tech Member
    625
    0
    0
    Here
    Many Many Programming/hacking tools...
    He's Right
    He's Wrong
     
  5. Lostgame

    Lostgame

    producer/turnablist. homebrew dev. cosplayer. Oldbie
    4,137
    62
    28
    Toronto, ON
    The O.I.C.

    Ditto. I have Maxine back now, so you should be more able to catch me. =-)
     
  6. Wurly

    Wurly

    :| Tech Member
    Well, it would be a good idea to use wxWidgets if you say it's portable, but only a small fraction of my code (about 1/8th) is API calls. So it wouldn't be too hard/time consuming to change that stuff around.

    Incorrect. The only difference about MSVC++ is that it has a visual resource editor, so instead of typing up your .RC files, you can do it visually, which is why I am using it. I was able to import the main form and about box from the VB version, which made a little less work for me. Everything else is just a nice looking user-interface with all the goods to make your code more readable, and projects and stuff like that.

    [quote post='143877' date='Sep 26 2006, 06:26 PM']Ditto. I have Maxine back now, so you should be more able to catch me. =-)[/quote]

    Kick-ass man. I'm so happy for you =) Hopefully you can help with the mac port and stuff.

    As for updates, the pointers are now loaded correctly into the listboxes (thanks to drx's awesome knowledge), and I fully ported the functions/datatypes and stuff to read the compressed art from the rom. Now all I need to do is port the displaying of the art, and art viewing will be fully functional. Because drx is amazing like that, it should be pretty easy with the write-pixel-buffer-to-window functions he gave me, which I turned into a class.

    Thanks for the help guys, I'll keep you updated :lol:
     
Thread Status:
Not open for further replies.