C++ programming

Discussion in 'General Science & Technology' started by Krusher, Mar 13, 2000.

Thread Status:
Not open for further replies.
  1. Krusher Registered Senior Member

    Messages:
    50
    bowser,
    (that wouldn't be any referance to the nintendo character would it)

    What kind of code do you want posted.

    How about someone give me a small challenge that I have to figure out how to code.

    I love a bit of a puzzle.


    Krusher
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Krusher Registered Senior Member

    Messages:
    50
    Oh yeah, I looked at a little bit of java and i have great respect for it.

    2 things that could be improved though.

    Pointers - OMG where did they go. I love working with pointers.

    Platform independance - The way I understand it a java proggy does not need to be recompiled for other OSes.
    Its a good idea, but the speed greatly suffers.
    Is there and option to turn this off.


    Krusher
    ========
    Quake - its not a game - its away of life

    Please Register or Log in to view the hidden image!

     
  4. Google AdSense Guest Advertisement



    to hide all adverts.
  5. Bowser Namaste Valued Senior Member

    Messages:
    8,828
    "Platform independance - The way I understand it a java proggy does not need to be recompiled for other OSes."


    <img src = "http://users.esc.net.au/~nitro/BBoard_member_gifs/bowser_anim.gif"> I think that was the idea while it was being developed, but what I understand is that MS changed the rules. Go figure.

    Post anything that's interesting. I've been playing with code which loads and saves bitmaps (written in C). I probably could have used an API call like LoadImage(), but that doesn't teach me anything about the bitmap file.

    Write me a C++ class which does the same thing. It must also use the common dlg Open and Save boxes.


    [This message has been edited by Bowser (edited March 27, 2000).]
     
  6. Google AdSense Guest Advertisement



    to hide all adverts.
  7. DaveW Registered Senior Member

    Messages:
    243
    You love working with pointers!??!?

    Please Register or Log in to view the hidden image!



    In actuality, everything in Java is a pointer. So if you mean that you like the features of pointers, ie. dynamic memory, dynamic binding etc., then Java is functionally equivalent. So a simple statement like:
    String s = new String();

    ..is actually using pointers and dynamic memory.

    The nice thing about Java pointers is that you avoid the danger of C++ pointers, since any attempt to access unallocated memory (by accident) will throw an exception and end the program. This is better than C++ where you will simply get random resuls and perhaps memory corruption of your entire system.

    As for platform independance, I there are Java compilers that will produce executable code if told to.
     
  8. DaveW Registered Senior Member

    Messages:
    243
    MS tried to subvert the platform independance of Java by introducing Windows-specific classes to its J++ visual editor software. This didn't go over well with Sun, who revoked MS's Java certification.

    Since then, MS has basically given up on Java. J++ probably will never be upgraded. Also, a while back MS issued a ban on all Java applets in use on their websites. Very typical anticompetitive behavior by MS.
     
  9. Bowser Namaste Valued Senior Member

    Messages:
    8,828
    <img src = "http://users.esc.net.au/~nitro/BBoard_member_gifs/bowser_anim.gif">That's pretty much what I remember. Thank you. <img src = "http://www.exosci.com/ubb/icons/icon7.gif">
     
  10. Krusher Registered Senior Member

    Messages:
    50
    Even though I believe MS is the spawn of all computer based evil and must be destroyed

    Please Register or Log in to view the hidden image!



    I feel that if MS stop the development of there Java compiler then this will greatly impead the development of the language.

    MS maybe bad but whatever way you look at it they are a vital part of the software world today.

    Clearly anything that microsoft does not endorse has a hard time in the computer industry.

    Just as Alpha sever prices dropped for the soul reason microsoft stopped support for them in winNT.

    I will try and write a proggy like you said.

    Krusher
     
  11. DaveW Registered Senior Member

    Messages:
    243
    Java, per se, doesn't really need any support from Microsoft. Windows can support any computer language which can be compiled for the x86 hardware. Microsoft can stop supporting Java (as they have done), but they cannot ban it. Java support on the Windows platform is far from lacking. Many companies have Java environments for Windows, including Sun. This environment is all one needs to run non-compiled Java programs. And, of course, compiled programs will run fine regardless.

    Microsoft's J++ editor was never very good, and there are many other excellent products for development on Windows.

    Being a student, I know that university compsci departments are endorsing Java. If compsci majors are brought up on Java, you can bet that the entire industry will soon have to follow.
     
  12. Krusher Registered Senior Member

    Messages:
    50
    Yeah, your right but I was just trying to say loosing out with microsoft isn't the best thing.

    Krusher
     
  13. Bowser Namaste Valued Senior Member

    Messages:
    8,828
    <img src = "http://users.esc.net.au/~nitro/BBoard_member_gifs/bowser_anim.gif"> Certainly, MS has provided a standard OS (used by many) which has encourage growth of both the software and PC industries. I have to give them credit for that. They did provide us with a ruler which was used by most pc users.

    ------------------
    It's all very large.
     
  14. Krusher Registered Senior Member

    Messages:
    50
    Fortunatly now you have a choice with your OS.

    At one point most home PC couldn't run anything but microsoft software.
     
  15. Bowser Namaste Valued Senior Member

    Messages:
    8,828
    <img src = "http://users.esc.net.au/~nitro/BBoard_member_gifs/bowser_anim.gif">That's true, K; however, MS was an impotant catalyst during the revolution of personal computers, while the industry was still young. It became a common platform which everyone was familiar. It played an important role. Having a single, more popular OS was both an advantage to the consumer and the industry.

    It is time to move beyond MS and to explore other platforms. I feel that the consumers and indutry have matured beyond MS and are ready for other options.

    ------------------
    It's all very large.
     
  16. Krusher Registered Senior Member

    Messages:
    50
    Yes, thats true.

    I feel that microsoft must step down a notch now though.
    Windows is very un-user friendly to install with another OS.
     
  17. Krusher Registered Senior Member

    Messages:
    50
    Alright then. Who wants to help me code a game.
    Most of you would be as good if not better than me(most probably the later of the two

    Please Register or Log in to view the hidden image!

    )

    I want to start of with a simple 320x200 platformmer.

    I think I'll use djgpp but I don't paticularly want to use allegro.

    I want to write my own graphics library.
    but I need to know a couple of things.

    First off, how can I access the Vertical Syncronization for double buffering and how do I create bitmaps in memory.
    I could do the bitmaps in some form of class but i have a feeling theres a better way.

    Krusher
     
  18. Bowser Namaste Valued Senior Member

    Messages:
    8,828
    <img src = "http://users.esc.net.au/~nitro/BBoard_member_gifs/bowser_anim.gif"> Hey! I just finished my code for loading and saving bitmaps on disk. I started this project just so I could better understand bitmap files, so I could write games using DirectX. I still need to get a better grasp of the files and their uses. But I have made a functional program. If you have MSDN library on CD, you have a great resource for sample code on bitmap files and their use.

    Let me know how it goes. I'm so involved with my current project that my DirectX books are getting dusty <img src = "http://www.exosci.com/ubb/icons/icon7.gif">

    ------------------
    It's all very large.

    [This message has been edited by Bowser (edited April 08, 2000).]
     
  19. Krusher Registered Senior Member

    Messages:
    50
    I've got MSVC++ 5 and I am totally confused by most of it.
    Can anyone help me out?

    I can do some simple dialog box apps and stuff with win32 and MFC but how does all this direct x stuff work, i have no idea where to start.
     
  20. Krusher Registered Senior Member

    Messages:
    50
    Does anyone have a copy of TASM32

    I NNNNEEEEEEEEDDDD it badly.

    I'm writing my own graphics library and I need that for it to work.

    Even TASM would work.

    PLEASE
     
  21. Bowser Namaste Valued Senior Member

    Messages:
    8,828
    Krusher,

    <img src = "http://users.esc.net.au/~nitro/BBoard_member_gifs/bowser_anim.gif"> Go to ebay and search DirectX. You can find books on the subject and get 'em for near $10.00--as well as c/c++ books. I'll never buy my books retail again ($40.00 or more).

    ------------------
    It's all very large.
     
  22. Krusher Registered Senior Member

    Messages:
    50
    Direct X is cool, i found a really good tutorial on it and to my disbelief understood most of it straight away.

    Its pretty straight forward. Pretty cool to.

    What I need is a copy of VC++ 6 and the direct X 7 sdk.

    Any volentres(how the hell do you spell that

    Please Register or Log in to view the hidden image!

    )

    I have been toying with the idea of making a virtual town where everything in the world revolves around your actions.

    Sort of like a game with no goal, just possibilitys.

    Tell me if you want to help
     
  23. Bowser Namaste Valued Senior Member

    Messages:
    8,828
    <img src = "http://users.esc.net.au/~nitro/BBoard_member_gifs/bowser_anim.gif"> That does sound like an interesting idea. When I'm ready, I'm going to write something simple. My one idea for a game is something I call "Kitty Shoot." The objective is to blast all of the cats that enter my backyard. Of course, these felines are rabid, and you must shoot them before they reach you; otherwise, they win.

    Pretty silly, but I need to start with something simple.

    ------------------
    It's all very large.
     
Thread Status:
Not open for further replies.

Share This Page