View Full Version : Running DLL functions
04-03-2001, 07:33 PM
I have some Visual Basic code which runs a procedure from winmm.dll I can get it to work in a Visual Basic macro. The problem is that I want to run it from a script. I cannot use rundll, as I don't know what parameters to give it, and I would like it to run without user interaction. Is there either a way to run DLL commands, or to run an MS Excel macro with the window hidden?
04-05-2001, 11:38 PM
scripting is not intended to be a full programming language and as such the ability to run any dll code may not be present.
a quick suggestion from me would be to make a VB command line project, have WinMM in a wrapper function (you mention you have used it already) and the call the command line program from the script.
J have no time to do further research now, but from within VB you could check to see if WinMM is implemented as a COM object (most likely to be found by Tools>References). In this case there may be a chance that you can instantiate an object from within scripting and send messages to it.
Regards - Richard