Advertisement

Results for "Volume: ASP_Volume3"

ASP_Volume3 #61383
vbaObjSetAddref - The native undocumented visual basic run-time APIs

For more than six years, i've been using visual basic, i've discovered many secrets, more than you can imagine.. now i decided to giveaway some of what i found out.. If you look in visual basic's run-time dll using depends, you'll see many functions, all undocumented, and from the names, it makes you want to grab them and use them. Some of the functions include: __vbaObjSetAddref __vbaObjSet They look so useful, but yet impossible to use, without knowing the correct declaration statement for each function.. (including byval/byref , data types, and the number of the parameters) if searched google, i've never found any result, only ordinals dump listing, cracking sites & such. i've tried and tried, and finally, i figured some of them out.. ------------------------------------------------- now to the description of those functions: __vbaObjSetAddref __vbaObjSet Both of these functions can be passed 2 parameters a long value(object pointer), and an object variable both functions will map(reference) the object pointer to the object variable, but in two different ways: __vbaObjSet: works pretty much as using CopyMemory to write the object pointer into the object variable, can crash your program at ease. __vbaObjSetAddref: This is the magic wand, will do the same as vbaObjSet, and increase the reference count (if you have any idea about COM interfaces, you'll understand).. thus preventing your application from crashing. -------------------------------------------------- now you must be wondering, why would i want to do that?! in some cases, like when using the timer APIs, you may send an object pointer, and recive it back later, what can you do with the pointer now?! instead of looking through a collection for the object using its pointer as the key(most vb programmers use this approach) you can simply map the pointer to an object variable, do what you want with the object, and then set it to nothing!!! you can experiment with other situations (like passing the pointer through DDE, multi-threading).. another approach is to link two object variables and and please tell me the results.. -------------------------------------------------- below is a simple code example of the usage. I've discovered more functions, but i'm planning on releasing them all as one big (module/tlb), didn't decide yet :) any comments/suggestions are welcome.

ASP_Volume3 #64239
Formatted MsgBoxes

I got really tired of having MsgBoxes that reached across the screen to deliver one or two lines of text, so I decided to write a function that would keep them about the same width. The function will add line breaks to keep the length of each line about 70, with variation according to content. I tried to keep the context of the input about the same by only breaking at spaces, dashes, and underscores. The code's a little sloppy, in my opinion, but sadly I'm not even sure how to clean it up.

ASP_Volume3 #63416
Math Graph 2.0: Advanced graph plotter/function analyzer ***UPDATED 21-August-2005***

Math Graph is a program that graphs many equations and analyzes functions, it has the following features: 1. Graphing Y(x)/X(y) functions, Parametric functions, Polar functions, and Implicit relations, as well as graphing cartesian Inequalities. 2. Deriving functions symbolically. 3. Analyzing a function(Get value at a point, Calculate limit, Area under curve, Extrema and Inflection points, Draw Tangent/Normal to curve...). 4. Adding, deleting and editing a graph. 5. Customizing the Axis and Grid colors and appearance. 6. Solving single variable equations. 7. Several zooming and scrolling functions including zoom-box. And more...

ASP_Volume3 #48454
WordWrap in only 5 codelines

I hope that this is the shortest and easiest wordwrap-function in vb you have ever seen, that you enjoy it and use it in all your projects :-)

ASP_Volume3 #62800
As Array got elements or not

Not many people know this one, an API that checks if an array as elements or not

ASP_Volume3 #59490
SimReal Estate

I converted this game from Farid version of Windowed mode and slow version.. So I changed this into DirectX version, and hope will add many features in the next release.. Please vote for me... Thanks in advance...

ASP_Volume3 #65306
mIRC Colors (inc Backcolors) v1.1

Add mIRC Forecolors and *Backcolors* to your IRC App. This simply shows you how to set foreground colors and background colors (highlight) in a richtextbox just like mIRC does. I've been searching for something like this for a while, couldn't find it; so decided to write my own. This code is fully commented so you get to see how I did all this. I realize that this may have bugs in it. If so, could you please comment. This is my first submission so be easy on me folks :) New in version 1.1 - Various bug fixes from 1.0. - A simple to understand tutorial on RTF Formatting and how I used it in my program. Vote if you like it. Thanks

ASP_Volume3 #64055
aaa quake3 clone

this is a FULL-FEATURED game. uses directX 8. it is a quake 3 type game where u r up against a brutal enemy. no missions, no story, just one on one fight..... unlike other full 3d games posted on this site, this one runs fast even though it has been programmed in vb...... the enemy moves according to way-points, when u hit the enemy it changes direction and runs away, the screen goes red when player gets hit..... etc..... this game is very much playable and enemy a little hard to beat.... PLZ VOTE 4 IT. PLZ LEAVE ANY COMMENTS U HAVE FOR THE GAME OR ME..... looking forward 4 ur feed-back.

ASP_Volume3 #59487
How to put any file(img,video,sounds,etc) on DB

I have searched psc for a way to put images on a access database and all that i could find was complicated code so i decided to do it myself and a few minutes later i have come to this...a simple way to store any file on a database field. Note that im not using BLOB field here.... Its simple and it works two most important things to me... hope you enjoy.

ASP_Volume3 #51138
Renaming files using excel program through Visual Basic

Imagine you have 1,000 files you want to rename. How will I do it? Will you do it manually one at a time using Windows Explorer by pressing F2, or would you rather automate the process and let the computer work for you. Below is a tip and convenient example of using the Excel program and visual basic.

ASP_Volume3 #62604
Yet Another Small Word Wrap Function

Due to the astonishing popularity of someone else's recent submission and me feeling bored...

ASP_Volume3 #65312
Ringtone Converter

Converts RTTTL ringtone data to the iMelody format for supported mobile phones.

ASP_Volume3 #65037
simplified bluetooth - parallel port interface

this is a stripped, simplified, elegant yet powerful way to acess a host's parallel port via a bluetooth device wirelessly

ASP_Volume3 #58771
Checkbox - - -a transparent usercontrol

Theres been several checkbox controls lately, so I thought I'd try one that was transparent. So here it is. Not to fancy but seems to work. Hope you like it.

ASP_Volume3 #64271
Log Reader

This is user to read very huge log files (no size limit). Usually developers or DBA wants to view few last lines from huge log files produced at production servers and it is not feasible to read them in notepad or any other windows based program.This utility is used to read huge log files either from bottom or from top.This is very fast and user friendly utility and very useful for DBA or programers to read very large files.

ASP_Volume3 #52366
Google Translator

Translate any word or any documents from Google translator and return result in VB forms ! Very, very fast. (16 languages mode) You must see my technics !

ASP_Volume3 #61452
Upgrade Wizard

Most of product today provide option to check for upgrades. One of way that can be standardized is explained.

ASP_Volume3 #64639
Mortars game project

I started a VB game a while ago, on DirectDraw. It is like the popular game "cannons". There are two cannons on the battlefield which 2 players command. They should choose the right combination of velocity and angle to hit each-other. The first that manage to destroy his oponent's cannon wins. Alas, i didn't had time to finish the game. Although i decided to publish the source. Maybe someone may find it helpful for his/her project. The game uses DX7 DirectDraw. The keys are: "1" and "2" - select player to shoot. "z" and "x" - change angle of current player, "a" and "s" - change velocity (gunpowder) of current player, "c" center screen at the cannonball, "esc" - exit. As i said it is unfinished. It is supposed to be turn-based, but here you can shoot with the both cannons. The effects of the exploding cannons should be fixed also. The game needs a menu and wind on the battlefield. I was alo planning to add multiplayer via Winsock. And many other things... But what we have here is enought just for a demonstration. Every time the game starts the terrain is different (randomly generated) also the places of the cennons are different. Destructable terrain. Arrow at the edges of the screen when the cannonball leaves the screen ("Worms" style :) I hope you find it useful. I don't expect 10s for it, but at least tell me your oppinion.

ASP_Volume3 #65299
Apartment Database

Its a simple database project about apartment selling & its customer information database project.

ASP_Volume3 #63758
process injection/API hooking

This shows you 2 API hooking techniques. IAT hooking and function redirecting, also how to inject your code into another VB process and hook a function remotely. Thanks to Ion Ion Alex Ionescu for his injection demo. It's important that you read the readme in the "inject" directory.

Languages
Top Categories
Global Discovery