Visual Basic Development Bookmark and Share   
 Home > Visual Basic Language > Urgent: Calling VB DLL from VBSCRIPT
 

Urgent: Calling VB DLL from VBSCRIPT

Hi,

I have created a VB DLL. I have tested the same DLL in VB.EXE. It works.

Now, I have to createa VBScript which invokes this DLL. Please note, I am not using ASP or .NET.

I just need to create a VBScript that invokes a DLL created in VB.

Can anyone please help me with the code.

I have tried the following but it does not work



---------------------------------------------------------------------------------------------------------
PrivateDeclareSubclsMsgLib"C:\WINDOWS\system32\ClassLibrary1.dll"
callclsMsg.showMsg
--------------------------------------------------------------------------------------------
ajexpert  Monday, September 08, 2008 11:23 PM
Write your DLL in native C/C++, if you want to call it with a declare statement.
JohnWein  Tuesday, September 09, 2008 7:45 AM
You can't.

Write your application in VB;
Do as john says, create a native DLL;
Create an EXE and execute that.

Stephen J Whiteley
SJWhiteley  Tuesday, September 09, 2008 5:08 PM
Write your DLL in native C/C++, if you want to call it with a declare statement.
JohnWein  Tuesday, September 09, 2008 7:45 AM
I just want to call a VBDLL in VBScript. Is this supported? If yes, Pleaselet me know how I can do that.
ajexpert  Tuesday, September 09, 2008 4:58 PM
You can't.

Write your application in VB;
Do as john says, create a native DLL;
Create an EXE and execute that.

Stephen J Whiteley
SJWhiteley  Tuesday, September 09, 2008 5:08 PM

You can use google to search for other answers

Custom Search

More Threads

• SQL DateTimePicker
• Copy the inputbox value to specified position in another sheet
• VB 5
• printdocumnet1 question(s)
• Timer control don't work when running paralell thread
• What is wrong here? Arrays!!!
• help on a console based socket app
• Store value in Database
• Logic error in Do While loop
• Open multiple files