Register | Login | |||||
Main
| Memberlist
| Active users
| ACS
| Commons
| Calendar
| Online users Ranks | FAQ | Color Chart | Photo album | IRC Chat |
| |
0 user currently in Programming. | 3 guests |
Acmlm's Board - I2 Archive - Programming - Useful programming resources | | | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
User | Post | ||
HyperLamer <||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people Sesshomaru Tamaranian Level: 118 Posts: 6941/8210 EXP: 18171887 For next: 211027 Since: 03-15-04 From: Canada, w00t! LOL FAD Since last post: 2 hours Last activity: 2 hours |
| ||
I thought it might be a good idea to make a thread for useful programming-related notes and code that can be used in various applications. So I did. The most useful website you will ever find for programming in Windows is the official Windows developer documentation - MSDN (the Microsoft Developers Network). It's free and contains information on every API function, control, constant and structure. The page linked here contains information about each type of control; I've bookmarked it here since it's quite useful. To look up API functions, constants or structures, just type their name (case insensitive) in the search box; the info will usually be the second or third result on the page and looks something like Beep(DWORD,DWORD) function [Base]. (Don't bother typing in things that aren't a name; it won't get you anywhere. ) Here's another useful MSDN link - API functions in alphabetical order. For Visual Basic programmers, AllAPI lists VB6 implementations of nearly every API function. Make sure you have a good ad-blocker, though. Popup and flash blocking is recommended. If you develop for the Gameboy or GBA, be it programming them or emulating them, you'll find these specifications very useful: Gameboy GBA For DS developers, DSLinux and the DS Tech Wiki can offer some useful information. If you use PHP, you only need to know one website: PHP.net. C programmers should find some good use for this function I made: /* You'll need the following declarations: //Debug output levels Set the ConsoleDebugLevel, FileDebugLevel and MessageDebugLevel to whatever output level you want. Any messages with that level or lower will be printed. ConsoleDebugLevel prints the message to the console (stdout). FileDebugLevel writes it into debug.log; this file is automatically created the first time a message is printed to it (overwriting any existing file) and flushed after each write to ensure that the text will be there if the program crashes. MessageDebugLevel displays the message in a popup message box (only recommended for critical errors; you don't want to get caught in a message box loop). Any message with a level equal to or less than DO_ERR_THRESHOLD will be followed by a message containing the error code and corresponding error message from GetLastError(). (This doesn't apply to message boxes, I should fix that sometime. ) The function works just like printf(), but you specify the output level before it, like so: DebugOut(DO_CRITICAL,"Out of memory!"); Note that you need to add the '\n' to the end to create a line break. This is so you can print that a certain part of a small task has completed, and have the entire task's status on one line (like "Reading header... reading objects... reading sprites... done.") or whatever else you could do with printf(). Here's a trick I like to use: DebugOut(DO_STATUS,"Doing something... "); This way, with DO_STATUS you'll just see "Doing something... Done.", while with DO_ALL you'll see more detailed information. Also note that you need to manually close debugfile when the program ends, and don't use DebugOut() after that anymore or it'll open it again (unless your messages are a higher level than FileDebugLevel). So feel free to post your own links and useful code snippets. |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
Acmlm's Board - I2 Archive - Programming - Useful programming resources | | | |