Professional Documents
Culture Documents
Net V4
Hermes.Net V4/v5
Copyright © 2001-2008 VOCALCOM S.A., 7 rue de Tilsitt 75017 PARIS – FRANCE. Tous droits réservés. 1/6
Hermes.Net V4
Desciption
This technical note explains how to create a DLL in C # and use it in an IVR function.
Create a DLL
In « solution explorer » window, select the file « Class1.CS » (of course this file can be renamed as you need to).
Copyright © 2001-2008 VOCALCOM S.A., 7 rue de Tilsitt 75017 PARIS – FRANCE. Tous droits réservés. 2/6
Hermes.Net V4
using System;
using System.Collections.Generic;
using System.Text;
namespace Hello_DLL
{
public class CallClass
{
public static string SayHello(string name)
{
return("Hello" + name);
}
}
}
Once your code is completed (or for single test), then build the DLL
Copyright © 2001-2008 VOCALCOM S.A., 7 rue de Tilsitt 75017 PARIS – FRANCE. Tous droits réservés. 3/6
Hermes.Net V4
Copyright © 2001-2008 VOCALCOM S.A., 7 rue de Tilsitt 75017 PARIS – FRANCE. Tous droits réservés. 4/6
Hermes.Net V4
Open the file "IVR_EXTERNAL_FCT.CS" to add your function prototype provided by your DLL.
Copyright © 2001-2008 VOCALCOM S.A., 7 rue de Tilsitt 75017 PARIS – FRANCE. Tous droits réservés. 5/6
Hermes.Net V4
For test purposes, you will find in folder "d:\hermes_net_v4\OnData\" a test program called
« Test_Ivr_Custom_Cde.exe ».
Fill function name and parameters and click Call, which will have the effect of calling the created function.
Copyright © 2001-2008 VOCALCOM S.A., 7 rue de Tilsitt 75017 PARIS – FRANCE. Tous droits réservés. 6/6