View previous topic :: View next topic |
Author |
Message |
CodeScript Moderator Team
Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Thu Jul 31, 2003 9:24 am Post subject: APImathDLL - math functions for API calls |
|
|
APImathDLL - math functions for API calls
This is a small dll which helps you with math functions needed while calling API functions that are not available in Visual Dialogscript 5.x.
It can also be used for other purposes like fast encryption and to increase the security of shareware app/DSU.
Functions:
Code: | You should load the library as follows:
LOADLIB APImathDLL
Make sure that the dll is in the right path
%A = @LIB(APImathDLL,csLOWORD,INT:,%U)
Returns LOWORD of %U (return value is contained in %A)
%A = @LIB(APImathDLL,csHIWORD,INT:,%U)
Returns HIWORD of %U
%A = @LIB(APImathDLL,csHIBYTE,INT:,%U)
Returns HIBYTE of %U
%A = @LIB(APImathDLL,csLOBYTE,INT:,%U)
Returns LOBYTE of %U
%A = @LIB(APImathDLL,csAND,INT:,%U,%Z)
Returns AND of %U and %Z
%A = @LIB(APImathDLL,csOR,INT:,%U,%Z)
Returns OR (Bitwise inclusive OR) of %U and %Z
%A = @LIB(APImathDLL,csXOR,INT:,%U,%Z)
Returns XOR (Bitwise Exclusive OR) of %U and %Z
And before you quit your application unload the dll.
FREELIB APImathDLL |
The dll is frreware to use in VDS and is unsuported.
get the dll here :
http://www.vdsworld.com/index.php?page=download&fileid=310
Enjoy !
If this is not the right place to post this moderators please move it. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension
Last edited by CodeScript on Thu Jul 31, 2003 5:48 pm; edited 1 time in total |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Jul 31, 2003 1:44 pm Post subject: |
|
|
CodeScript,
Would it at all be possible to share the source code of this DLL to further
support VDS users?
Thanks. I'd like to learn a little more about making DLLs and so I was just wondering. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
Dr. Dread Professional Member
Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Thu Jul 31, 2003 2:59 pm Post subject: Re: APImathDLL - math functions for API calls |
|
|
This is a handy utility for making this type of math calcs. Could prove to come in very useful
CodeScript wrote: | It can also be used for other purposes like fast encryption and to increase the security of shareware app/DSU.
|
Could you perhaps expand a little on these two further uses? No info about it in the documentation. Perhaps
a couple of examples
Greetz
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
Back to top |
|
|
SnarlingSheep Professional Member
Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Thu Jul 31, 2003 4:31 pm Post subject: |
|
|
For basic encryption you can loop through a key/password and XOR each character of the key/password with each character of the string you want to encrypt.
Although I think this is a good DLL and it will help, I really think these functions should be built into VDS. I also think there should be an easier built in way to define structs and arrays. These things are all needed now that you can access the API. _________________ -Sheep
My pockets hurt... |
|
Back to top |
|
|
CodeScript Moderator Team
Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Thu Jul 31, 2003 5:13 pm Post subject: |
|
|
I agree SnarlingSheep, these should have been built into VDS but for now I think this will do the job. Also for some API finctions containg array in a structure thing seem difficult. I have no success as yet in VDS though it seems easy on VB. May be a dll that passes the parameters in a friendly way helps ?
Moderator's note: CodeScript, please do not use an abbreviation for SnarlingSheep's particular name _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
Back to top |
|
|
Serge Professional Member
Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Fri Aug 01, 2003 10:20 am Post subject: |
|
|
can i ask clarification about the moderator's note in the post above...i know that sometimes others and i use ff for freezingfire and i assume that he doesn't mind...is there a policy i am not aware of...is it bad etiquette...is it personal choice...just so i know and understand
serge _________________
|
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Aug 01, 2003 1:18 pm Post subject: |
|
|
I'm not the one who put that there but I think that it's more of a personal
preference than a rule.
Personally I like my nickname "FF" so everybody can continue to call me
that.
In SnarlingSheep's case it's really up to him as to what he wants to be
called. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
CodeScript Moderator Team
Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Fri Aug 01, 2003 1:56 pm Post subject: |
|
|
Sorry very much I saw others using it (even for SnarlingSheep ) so I too did. I will not do that again.
SnarlingSheep please don't mind. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
Back to top |
|
|
SnarlingSheep Professional Member
Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Fri Aug 01, 2003 4:31 pm Post subject: |
|
|
Who actually did that and why?
I don't remember what you called me CodeScript but I'm sure I read it and didn't catch my eye, so I don't think it was bad.. _________________ -Sheep
My pockets hurt... |
|
Back to top |
|
|
CodeScript Moderator Team
Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Fri Aug 01, 2003 5:57 pm Post subject: |
|
|
I used "SS" - may be then it conflicted with someone else's name and he/she complained.
BTW it's nice to avoid shortcuts -- but reflex you see. Sorry If it hurt someone. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Aug 01, 2003 6:33 pm Post subject: |
|
|
Well I still want people to call me FF, that's my nickname for my nickname. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Fri Aug 01, 2003 10:01 pm Post subject: |
|
|
I notice that even SnarlingSheep himself has been doing that at times, but indeed the
point is avoiding to hurt anyone. I expected it wouldn't have needed any further explanation,
however the abbreviation had a bad meaning in World War II.
Still of course there's no problem with using abbreviations in general. |
|
Back to top |
|
|
SnarlingSheep Professional Member
Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Fri Aug 01, 2003 10:32 pm Post subject: |
|
|
I really doubt that anyone associated SS with anything but SnarlingSheep around here Tommy.
I could think of alot of bad things that FF could stand for too, no need to stop anyone from using that abbreviation. _________________ -Sheep
My pockets hurt... |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Aug 02, 2003 12:22 am Post subject: |
|
|
SnarlingSheep wrote: | ...alot of bad things that FF could stand for too |
- French Fry
- Furious Fly
- Fun Farm
Seriously, I'm glad we got things explained here. I think it should be
personal preference, unless people are being offended by it. If you're
being offended by a name just say so. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
Serge Professional Member
Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Sat Aug 02, 2003 12:28 am Post subject: |
|
|
thanks for the feedback...as for snarlingsheep's abbreviation, i would never have associated it with ww2...but then i live far away from europe ...i can understand how our vds friends in europe would feel seeing that abbreviation...i just wasn't sure as to why the moderator's message had been added...i too don't want to hurt anyone and i was seeking clarification so that i could understand why snarling's abbreviation should be avoided...now i understand
thanks ff and snarlingsheep for explaining your position
serge _________________
|
|
Back to top |
|
|
|