forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


APImathDLL - math functions for API calls
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Advanced VDS 5 Source Code
View previous topic :: View next topic  
Author Message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Thu Jul 31, 2003 9:24 am    Post subject: APImathDLL - math functions for API calls Reply with quote

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. Smile

_________________
Regards
- CodeScript
Arrow 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
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Jul 31, 2003 1:44 pm    Post subject: Reply with quote

CodeScript,

Would it at all be possible to share the source code of this DLL to further
support VDS users? Smile

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
View user's profile Send private message Visit poster's website
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Thu Jul 31, 2003 2:59 pm    Post subject: Re: APImathDLL - math functions for API calls Reply with quote

This is a handy utility for making this type of math calcs. Could prove to come in very useful Yes

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 Wink

Greetz
Dr. Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Thu Jul 31, 2003 4:31 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Thu Jul 31, 2003 5:13 pm    Post subject: Reply with quote

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
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Fri Aug 01, 2003 10:20 am    Post subject: Reply with quote

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 Smile

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Aug 01, 2003 1:18 pm    Post subject: Reply with quote

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. Smile

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
View user's profile Send private message Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Fri Aug 01, 2003 1:56 pm    Post subject: Reply with quote

Embarassed Embarassed 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
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Fri Aug 01, 2003 4:31 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Fri Aug 01, 2003 5:57 pm    Post subject: Reply with quote

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. Embarassed

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Aug 01, 2003 6:33 pm    Post subject: Reply with quote

Well I still want people to call me FF, that's my nickname for my nickname. Wink
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Fri Aug 01, 2003 10:01 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Fri Aug 01, 2003 10:32 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Aug 02, 2003 12:22 am    Post subject: Reply with quote

SnarlingSheep wrote:
...alot of bad things that FF could stand for too


  • French Fry
  • Furious Fly
  • Fun Farm


Wink

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. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Sat Aug 02, 2003 12:28 am    Post subject: Reply with quote

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 Smile

thanks ff and snarlingsheep for explaining your position Smile

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Advanced VDS 5 Source Code All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group