Jump to content

Viusal Basic


Guest Majid -pr

Recommended Posts

Guest Majid -pr

Hi.

I want to make a visual basic plug in for IVM.

 

my program get two variable from IVM (a user code , a user password) and then

my program say special number like (124813) from a mdb database bank.( It take a few minute like 1 min)

how I can make a connect with this software.

 

and also: I want to play return number (e.g. 1243) but program only support English numbers.

for example number 123 say in english 'One two three' but in my country say 'Yek Dow See'

 

how I can write this program.

help me.

thank you.

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

To change the numbers to go

C:\Documents and Settings\All Users\Application Data\NCH Swift Sound\IVM\System Prompts

 

Open each of the number files in whatever sound recording system you use and record the numbers in your language.

 

To get VB to return values to the IVM you need to add the following code to your main module -

 

Public Declare Function GetStdHandle Lib "kernel32" (ByVal nStdHandle As Long) As Long

 

'Pass the argument -11& to get the handle for stdout and -10& for stdin. To read data from stdin use this API function:

 

 

Private Declare Function WriteFile Lib "kernel32" _

(ByVal hFile As Long, ByVal IpBuffer As Any, _

ByVal nNumberOfBytesToWrite As Long, _

IpNumberOfBytesWritten As Long, _

ByVal IpOverlapped As Any) As Long

 

'hFile is the handle of stdout obtained with GetStdHandle.

'IpBuffer is a string variable containing the data to be written.

'nNumberOfBytesToWrite is the number of bytes to write, the length of IpBuffer.

'IpNumberOfBytesWritten is where the function returns the actual number of bytes written.

'IpOverlapped is not used when writing to stdout and you should pass a value of 0.

 

'Here is a code fragment showing how it is done. The variable temp holds the text to be written to stdout:

 

hStdOut = GetStdHandle(-11&)

Call WriteFile(hStdOut, (rv), Len(rv), BytesWritten, 0&)

 

were - rv is the variable you want to send back to your program.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...