Jump to content
xisto Community

switch

Members
  • Content Count

    179
  • Joined

  • Last visited

Everything posted by switch

  1. thanks alot guys. sorry it took me a while to get back to ya. i'll see if it works, as an inbetween, i've been using PHP designer, which has an interface that can do the basics. actually it's great software. if you're interested, check it out: http://www.mpsoftware.dk/. thanks again guys, all the best.
  2. switch

    Opengl

    yeah, NeHe GL has heaps of great tutorials on that.... their website is nehe.gamedev.net. great website. awesome tutorials. completely free. also gametutorials.com have some awesome tutorials (i was using them when they were still free), but unfortunately now they cost money. still fantastic though.
  3. hi all I'm VERY new to PHP and I'm having a slight problem... I want to be able to run PHP scripts on my computer without installing a web browser. Let's say I have this code.... myScript.php <HTML> <HEAD> <TITLE>PHP Example</TITLE> </HEAD> <BODY>[color=#009900] <?php print "This is an awesome scripting example."; ?>[/color] </BODY></HTML> ok. if I open this with Firefox or IE or any other Browser, I will get a blank document titled "PHP Example". I know that this is because the browser simply ignores the script between the <? tags. So, what I want to do, is find a way to run/execute 'myScript.php' and open the result in a browser. I tried using the php-cgi.exe program included in the download from the PHP website, running the script with that, then copy-pasting the output into an HTML file and opening that in the Browser, but the problem is, for really long output, the console clips off the earliest part of the output. So yeah, If anyone has any ideas I would be greatly appreciative to hear them. Thanks alot!
  4. here's a really quick inefficient way to do it if you're absolutely desperate (and using windows): system("c:\myProgram.exe"); system just pops open a command prompt and runs the bits in the quotation marks. good luck!
  5. after my first useless post, i just read your post properly and edited accordingly. what is happening is you have a function that has two data types declared, for example: int char myFunction();that's my understanding of the compiler error (as int and char are two different kinds of data type). if you only want to return one kind of data type, then you would just take out the data type you don't want. if you want to use multiple data types, use this method: make the function return a pointer to void, i.e. do this: void *myFunction();that will return a pointer to ANY DATA type you like. you have to be careful with this however, that the calling function knows what data type the pointer holds or at least knows how big the data is. for instance, if myFunction returns an int, and you interpret it as returning a char, you're going to lose 3 bytes of data. be careful when using void pointers. if you want, after calling the function, you might want to convert the pointer to a typed pointer to avoid type confusion. i.e., if you know that an int is being returned, to avoid any future problems, try something like this: int* myPointer;myPointer = (*int)myFunction();(*int) just converts the void pointer returned by myFunction() into an int pointer. sorry if that confused more than helped also, i don't know anything about malloc, as i've never had to use it. sorry ok! good luck mate!
  6. well, i'm not sure if there is a specific Windows API call that handles adding straight to the Startup list, but there are definately commands that add to the registry, and there is definately a startup list in the registry. You can tell because I've got a whole chunk of stuff that loads on startup but isn't in the startup shortcuts folder :huh:just learn how to use the Win32 registry commands and find out the specific registry entry the startup list is under. There are plenty of tutorials around on the net.Good luck mate.
  7. alot of the time when i start having trouble with C++ i just seek out an alternate route of doing the same thing. When you are using pointers to reference arrays (we'll call ours myPointer), normally *myPointer just returns the first value in the array. On this note, you could try outputting myPointer[0], as that is equivalent to saying *(myPointer + 0).maybe change the declaration from vlist[] and plist[] to *vlist and *plist respectively and then changing their initialization to vlist = new float[100] and plist = new int[100]. That could help.apart from that, i must congratulate you on how neat your code looks. Good work. Nice and Easy to read. :rolleyes:ok good luck mate.
  8. I was with hotmail for a long time, but only cause i didn't know what else was around and everyone else had it. That was back in Hotmail's 2MB days though :rolleyes:One of my friends invited me to Gmail though, and it's absoultely brilliant. I mean, even just the fact that you can search for emails... "Where is my Battle.net forgotten password email?" hotmail: trawl through hundreds of emails, looking for one link. Gmail: "search: Battle.net" search took 0.17 seconds. Oh yeah!And the 2.something GB of space, and the reasonably good spam filtering are pluses.I wouldn't say hotmail are the worst (check out myownemail.com) but they are far from the best.
  9. I totally agree with Goofy. One of the best things about games is the fact that you can do stuff that you would normally never dream of doing, and if the graphics are too realistic, I think it just kills that atmosphere of fantasy. Also, the really brilliant stuff is often the way that the graphics are used: I mean, realistic or not, if the graphics aren't breathtaking, if they don't have the right feel to them, then they count for nothing anyway.Dungeon Siege is a brilliant example of this. The graphics aren't as real as they could be, but WOAH the scenery is amazing. True Art at its finest.Also the cinematics in final fantasy 8... the people don't look entirely real, but the cinematics are still absolutely amazing. And the computer generated look of the whole thing is part of what makes it special. Makes it look like animation as opposed to photography.
  10. yeah! :)there was this classic game around a while ago for PlayStation One called Vib Ribbon... it was brilliant! Used only 4 buttons, and was easy to get the hang of, but still somehow got challenging later into the game. And the coolest bit: you could play to songs from your own CD's. How good is that!They just don't make quality, original, games like that anymore! lol
  11. you might want to try checking an error reference on your system to find out a specific meaning of the error.also, this is a circular linked list. This means that the last item links back to the first. This could have something to do with your problem, especially if extra memory is being allocated along the way. try not linking the last item to the first and see what happens.you might also have some luck if you email the guy who wrote it. you could probably find his email somewhere on his site.good luck mate.
  12. now here's some people who know what they talking about! lots of respect for Joshua and Delivi and Realthor too catfish, upon the discovery on the Dead Sea scrolls they were cross checked with the Modern manuscripts and found to be 5% different. Now, 5% isn't that much as it is, and 80% of that 5% was spelling mistakes. So we are left with 1% of the Bible has had its meaning changed at all. This is usually in a reasonably insignificant way. As a result of this, you'll often find in Bibles footnotes (marked with a * or a superscript letter) that say "Some Manuscripts add" or "Has been rendered suchandsuch in some Masoretic texts" or something like that. If you want more detailed explanations of the accuracy of the Bible, there's plenty of books, and probably loads of websites about it (but i'd be more inclined to trust a book). Good stuff guys!
  13. Pah! Game making software! I haven't seen any that's decent in ages! Although I have to say that DarkBasic is pretty good.To all you people who are making games but just can't get the touch they want with their software:Learn a language! You'll get heaps better results on the final product. Sure it will be harder, but still.. if you're really keen on making a game, it's worth it.DarkBasic is a great 3D game programming language. Way easy to use as well!But if you want to get into real solid stuff, have a whirl at C++.Good to see some gamers doing it for themselves.Peace out
  14. yep, you use a wonderful thing called pointers. Pretty much 'pointers' point to a memory location. So if you set a pointer as '0' it will point to memory location 0. if you set it to '14' it will point to location 14. this way, you can simply scan through memory by incrementing the pointer. I assume you're using C++, so, to declare a pointer: int *myPointer;This makes a new pointer titled myPointer that can only point to ints. then, to change the address that a pointer pointers to: myPointer = myPointer + whatever;This adds whatever to the address number of myPointer. then, to access the data in the pointer: data = *myPointer;This extracts the information from the memory location that myPointer is pointing to. If you're still confused, sorry I didn't explain it better. Also, there's heaps of information around on the web. Just search for "C++ pointers" or something and you'll find loads of simpler tutorials. Cheers.
  15. Firstly, it always helps to search the MSDN documentation for stuff like this. You would need to use Windows-specific commands (probably) to access the clipboard and take screenshots. The way I'd do it is: 1) simulate a PrintScreen keypress (I'm pretty sure you could do this with the SendMessage() Function; send the WM_KEYDOWN Message with VK_SNAPSHOT as a parameter). If you wanted to find other Key Codes for any other steps, the MSDN library has an article titled 'Virtual-Key Codes' which has every code listed. 2) Use the Clipboard Win32 function/message set (MSDN article here: http://forums.xisto.com/no_longer_exists/) to retrieve the data. The MSDN library has info on it all. You can easily find the articles in step 1 by simply searching for furthur reference. Good Luck mate!
  16. you can use the 'sizeof' command to determine the size of a variable. I'm not sure if it's in bits or bytes (probably bytes) but there are 8 bits for every byte. As for input and output, there's heaps of basic tutorials around that'll get you what you need. Here's a good place to start: http://www.cprogramming.com/tutorial/lesson1.html. Good Luck!
  17. character variables store values between -128 and 127 for signed and 0 and 255 for unsigned. they take up one byte of memory and are most usually used to store Alphanumeric characters, i.e. 'a' 'b' '$' '/'. integers usually use between 16 and 32 bits of memory and can therefore store 2^16 or 2^32 different numbers (works out to be up to 4294967296). It's also important to note that Mathematical Operations (+x-/) should not be used on character variables. If you want to manipulate whole numbers, then use an integer.
  18. kasm, you know what you're talking about! Some would definately argue that there is more concrete evidence for Intelligent design than evolution. My mate Scott had an incredibly interesting argument about it. The argument is that: -> stars cool down as they age (basic astronomy). -> our Sun has only been cool enough to support life for X years. (sorry, not sure on exact numbers) -> The minimum amount of time that it would take for a human to evolve from a single-celled amoeba is longer than X years. --> So the Earth has not been able to support life for as long as it would take for humans to evolve. Another argument is in relation to the saltiness of the sea: -> Once again, with all factors tweaked in favour of evolution. ->The sea is actually not salty enough for the Earth to have been around long enough for human beings to evolve. So, there's evidence for and against. Anyway, most of the argument for large-scale evolution is made by common people (i.e. not professional evolutionary scientists) using science as an excuse. Think about it. Charles Darwin's theory of Evolution was Micro-Mutational. (Meaning consists of many small variations in genetic code passed on from generation to generation) These micro-mutations allow creatures to adapt in small ways, giving them a slight upper hand. Not changes them completely so that they can dominate their territory. And then there's the fact that everything in nature fits together so beautifully. Random Accident? I think not.
  19. Oh wow, I found Shattered Galaxy a while back when I was looking for a Free MMORPG i could play on the school computers. Unfortunately, i forgot to bookmark it and could never find it again... lol. I reckon that runescape isn't as bad as people make it out to be, I mean, i sure couldn't waste my life on it but then again I don't do that with many games anyway. I reckon, like most games, it's only fun when you're playing with friends. Anyway, has anybody heard of Wurm Online? the website is here: http://www.wurmonline.com/. I was going to have a try at this but in the end i decided that the concept wasn't particularly thrilling, and it sounded like it wasn't very well developed (i.e., not many members, not a particularly advanced community). Also, a good free text-based MMORPG/strategy game is Lords of Legend. Nice and simple, and great fun. A little bit similar to Utopia (for those familiar). Doesn't take too much commitment either. The website is here: http://forums.xisto.com/no_longer_exists/. Happy Gaming!
  20. Actually I stumbled across a really comprehensive search engine a while back.... http://www.dogpile.com/. The way it works is by grabbing results from Google, Yahoo, MSN and AskJeeves and then sorts them in order of most comprehensive. Quite an ingenious concept, when you think about it!
  21. lol Yeah some funny stories in the hosting credits department! :(Let's see... Since I got my web hosting I've had a maximum of 33 or so credits. That was when I was only at school for half my subjects (as the other half had finished) and so I spent alot of time in the school library posting on this site!Back when I first got my hosting though i had 62.5 credits or something. I applied for the package and then some kind of error occured on the way (I think it was an invalid password). So I applied again, and when I got back to Xisto i found i only had 2 credits! I thought they'd billed me twice or something. Kind of annoying actually, I didn't read the readme or anything before joining (I joined fairly early into trap's existance anyway, so I'm not sure that the readme would've been nearly as helpful as it is now) and so I didn't even know that you lost credits over time to keep your hosting alive.Anyway, here I am, with a working website (yay!) and enought credits to last me out a couple of weeks. I think that 20 credits is a good amount to sit on.cheers
  22. I dunno, it could just be me but it seems that every grade that's gone through our school (mine included) has had a major attitude problem in relation to this when they were in year 7.I think that's cause it's the start of high-school here in Australia though and so they get some weird confidence boost. It takes a while, but eventually they grow up and stuff.And everyone gets frustrated, and when they swear, it's generally an accident. The worst kind of swearing is pre-meditated: when people swear to sound 'cool'. That annoys me a bit.If it's particular people who are offending you by doing it over and over again, you could try asking them to stop. The results could be surprising!
  23. haha... my first sig ever... what do ya think? simple yet effective? all original art. good luck everyone! Notice from jlhaslip: Edit to repair second URL
  24. according to the MSDN library (search for "fopen()" ), you need put 'b' in front of the 'w' and 'r' to specify binary mode. also you may want to try substituting 'w' and 'r' for 'w+' and 'r+' respectively. They essentially won't make any difference to the program for what you are doing.Take a look at the MSDN library. It's got a VERY comprehensive coverage of this function, and the whole C Runtime Library for that matter.Cheers
  25. yeah... actually, from memory I had a similar problem earlier on... I think the easiest solution is just to try some other FTP Software that's easy to use. Try FTP Commander. It's brilliant. The website is http://www.internet-soft.com/. Also, you might just want to make sure that you can access any FTP sites at all. Try ftp.microsoft.com for example. Lastly, just double check that any firewall software you have installed isn't blocking either your FTP software or the ports it's trying to use. You'd probably be able to check the FTP port in use in an Options section of the program (I'm not sure though as I don't have the same software as you). Good Luck.
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.