Results for "Author: irbme"
This is more of a tutorial than a code submission. It shows you how the LONG variable is represented in memory by VB. It also shows you how data types are represented in memory and how to place custom bytes into longs without having to figure out what numeber all 4 bytes would be etc. It uses a simple function to domenstarte this which converts a dotted string IP address to it's long representation (they way it's represented in memory). And to prove it works, you can test it alongside the real API function used to do this. The tutorial is integrated into the commenting. Leave some feedback.
This is a tutorial which explains how to start off creating powerful network/internet applications using the Winsock API. The API allows far more control, power and speed in your application than the control ever would and is definetly something worth learning.
This is a DLL (full source included) written in pure assembly which will detect a collision between 2 sprites given their masks to the pixel. Because it is written in assembly, it is extremely fast. The fastest I got for 1 call on my 1.65 GHz was 2 milliseconds. The slowest being 11 milliseconds. You can use it outwith VB if you want (VB Calls to the DLL are slow). This is the second submission with some optmiization and also I fixed a bug whereby it raised an access violation when used with compiled exe's. If you like it, please vote and leave some feedback. ;)
This is an update to the first packet sniffer I submitted yestarday. It got alot of good feedback so I decided to resubmitt it with all the bugs fixed. It currently has support for 3 protocols (TCP, UDP and ICMP) and can very easily be expanded to include more. The packet sniffer itself is wrapped in a very object oriented fashoin allowing you to just plug it right into your own apps. NOTICE: This will only work on OS' with raw socket support (Windows XP/2000/NT) with root access (admin privilages).
AFter learning how to use the API call ReadProcessMemoy, I made this. It discoveres the locations of the hidden mine's in the game MineSweeper. Just load the game then run this program.
This is a little tile engine I made a few months back. It includes a map editor, the engine itself and a built in little example. The engine supports things like fadein/fadeout, collision detection, scrolling maps of unlimited size, ''Tile portals'' (Tiles which when stepped on lead to other tiles/maps. For example - try going inside the caves for a pleasant surprise). Be sure to read the readme file and if you plan on using the editor, read the help file. Comments/Suggestions welcome.
This is a tutorial whic will explain to you how to write maintainable, robust, efficient, reliable, portable, reusable software and will also give you some ideas and advice on how to go about this by giving you an understanding of coupling, cohesion, testing, code documentation and so on.
Nothing spectacular or ground breaking, but just a little piece of code I thought I would do in 20 minutes. After 'Fateha Rahman's attempts at writing this code, I felt my comments weren't really taking effect of improving their code much. So I decided to write this in 20 minutes of spare time to show how it should be done. This code shows 3 different methods of checking if a number is even or odd, and shows which is the fastest. It includes proper bench marking code with it.
This is a very complete, rich object oriented DLL which provides an easy to use set of classes for working with all aspects of winsock programming. It includes dns, enumeration, socket options, socket io, async and blocking mode and much more. IMPORTANT: This library isn't really complete. It's complete enough to use, but it hasn't been tested, and some things still don't work. I gave up on it half way through and started working on something else. Right now I don't know if I'll bother finishing it (possibly some time in the future) so I figured I'd release it to the public. If you ever want to work with Winsock API then this is a must, even if just for the incredibly compelte winsock.bas module I wrote for it.
Have you ever wondered how to do colour codes? Boxes? ASCII Graphics etc in telnet? Ever wanted to write your own MUD or telnet game? Then this code is for you. It provides 4 classes: CDrawing, CCursor, CErase and CColor to provide most of the methods you could want to use for, (example), a MUD game. Included is a small demonstration. I know the code is pretty horrible, and uncommented but that's because it was written in a hurry in amongst tonnes of other projects :) Leave some feedback if you like or dislike anything about it, or want to add some suggestions or anything.
This is a basic multi-threaded ping utility using a raw socket. Take a look at the screenshot for the feature list. This code is not 100% mine. It was adapted from code on the internet (Found in several places so not sure of the author). It has been modified alot though.
Subclassing ofers great advantages to VB programmres. This article should teach you all about the message system Windows Uses, and how to implement it into your Visual Basic Programs.
This is a fully functioning server written without the use of the Winsock control. It uses API only. It can accept a theoretically unlimited number of clients and features an ICMP ping feature. This code uses my recently submitted Winsock API DLL. Download it here: http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=39858&lngWId=1 Your votes and comments are greatly appreciated ;)
Little API that will show you how to make a nifty little scrolling text picturebox using the rect and scrollDC API's. Check it out, and if you like it, leave some feedback.
This project is an attempt to create an easy to use DLL, which will allow your programs to connect to the Internet. It makes use of the Winsock API functions and the ICMP API functions, as well as various other Kernel32 API functions, to allow you to easily connect to other computers, and allow other computers to connect to you. Once a connection has been established, the DLL allows data to be sent and received and information about the local and the remote end of the connection to be gained. There is also a feature in the DLL that will allow your programs to send a PING, connected or not.
Every wanted to allow users to control certain aspects of your program...to make you programmes shorter and easier...this shows you how to add scripting to your apps using the VBScript control. It mostly focuses on the purpose and usage of it.
This will monitor all data being sent between an IRC client and server. Just run the program, press listen, then in IRC type /server 127.0.0.1 (6667) And it should work. Great if you want to write an IRC client/server/bot. I tried to comment the code a little. Its pretty easy code too, most of it is just UI stuff.
This is a tutorial which will show you how to load bitmaps, gifs, jpegs or whatever from a resource file into main memory and use them. Remember to download the ZIP it has some source you can use and an example. Also please vote and and give feedback.
This is a spinning 3D cube made using DirectX. It contains the following features: -Zoom In/Out -Change Textures -Rotate 2 ways -Turn on/off 3 different lights -Enumerate hardware, display modes and device -Change textures at runtime I spent a good bit of time commenting it. Any votes are appreciated but what I really want is some feedback telling me what you think. If it goes well, I may upload and make more stuff like this.
This activex dll makes using DirectSound as easy as can be. It lets you load unlimited amount of wave files. Then you can apply special effects such as Frequency change, Echo, Flange, Gargle and more, Play and Stop individual Files. And it even includes a special Sound manager which can optionally delete duplicate sounds, load sounds form resource files, and reuse empty "slots" where sounds used to be before being removed. The download includes full source code for hte dll, and a simple sample application to show how to use it. Ths source is commented. Please vote and leave feedback.