Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Calling DLL from VB or J Script

1 réponse
Avatar
khaled saber
please, i need a help.
I want to call (use) a DLL from VBSCRIPT or JAVASCRIPT.
HOW CAN I DO ?

1 réponse

Avatar
Daniel92
*Bonjour* , *Jean* écrit dans :
http://groups.google.com/groups?threadm=mn.796c7d5c842fde2d.41316%40windows

: > please, i need a help.
: > I want to call (use) a DLL from VBSCRIPT or JAVASCRIPT.
: > HOW CAN I DO ?

: If you mean "use an activex dll", you create objects by using :
:
: *jscript ActiveXObject object :
: http://msdn.microsoft.com/library/en-us/script56/html/9c7bed07-853f-48aa-92db-3131324746ec.asp
:
: *vbscript CreateObject function :
: http://msdn.microsoft.com/library/en-us/script56/html/b1545c3f-5cab-4c66-af6f-be9b7daa1131.asp
:
: and if your script is hosted by wscript or cscript (WSH) you can also
: use :
:
: *wsh CreateObject method :
: http://msdn.microsoft.com/library/en-us/script56/html/a0d71def-47b9-4797-837c-bef653d958aa.asp
:
: +To get infos outside the docs for activex you can use an object viewer
: like Microsoft Oleview to see objects, methods, functions, ... hosted
: by the activex:
: http://download.microsoft.com/download/2/f/1/2f15a59b-6cd7-467b-8ff2-f162c3932235/ovi386.exe
:
: If you mean "perform dll api calls", you haven't direct support in
: Windows Script 5.6 but you can :
:
: *use an api call activex wrapper like dynacall.dll :
: http://ourworld.compuserve.com/homepages/Guenter_Born/WSHBazaar/WSHDynaCall.htm
:
: *use (for very basics api calls) rundll/rundll32.exe inside the Run
: method of WSH :
: http://msdn.microsoft.com/library/en-us/script56/html/6f28899c-d653-4555-8a59-49640b0e32ea.asp
:
: see here for some infos on rundll :
: http://support.microsoft.com/default.aspx?scid=kb;en-us;164787
:
: *deploy your own activex with api calls or tasks you need, ie using
: the free vb5cce (visual basic 5 control creation edition):
: http://download.microsoft.com/msdownload/sbn/vbcce/vb5ccein.exe
:
: see here for some basics :
: "Creating Your First ActiveX Control with Visual Basic 5.0"
: http://msdn.microsoft.com/library/en-us/dnaxctrl/html/msdn_firstax.asp
:
: *(just to be complete) use some MS java classes inside scripts, but as
: MS Java was removed from Windows distributions this way can be
: considered as out of date now.
:
: +To get infos outside the docs for dll api calls you can use a tool
: like Microsoft Dependency Walker to ie retrieve entry points:
: http://www.dependencywalker.com
:
: To gain time, always be sure that the tasks or api calls you need
: aren't already interfaced in an existing standard activex or doable
: through an other way.
:
: Finally and just FYI, you're on the french part of the ms nntp server
: (microsoft.public.fr.*), you've an extensive scripting hierarchy on the
: english part (microsoft.public.scripting.*) where you can meet some
: real "scripting pioneers" to get english valuable answers.
:
: Regards,
: Jean - JMST
: Belgium


** Merci pour cette liste très utile pour le néophyte que je suis.

J'ai trouvé cette référence qui complête le Kb 164787 de
Microsoft (je cherchais des explications sur le 132) et
qui détaille l'action d'Installation avec Rundll32 :

Dx21 RunDLL32 Reference
http://www.dx21.com/SCRIPTING/RUNDLL32/INF.ASP

--
Cordialement,
:O)
Daniel.
====