01.
[DllImport(@
"C:\Users\ymatrix\Documents\visual studio 2012\Projects\DLL_Suntower_test\DLL_Suntower_test\bin\Debug\CalParkSun.dll"
)]
02.
static
extern
int
calfee2(
int
min,
int
fareid,
ref
int
fee12);
03.
static
void
Main(
string
[] args)
04.
{
05.
int
fee12 = 0;
06.
try
07.
{
08.
int
a = DBactive();
09.
if
(a == 0)
10.
{
11.
Console.WriteLine(
"db connected"
);
12.
Console.WriteLine();
13.
Console.WriteLine (calfee2(30, 15,
ref
fee12));
14.
Thread.Sleep(1000);
15.
16.
17.
}
18.
19.
}
20.
catch
(Exception ex)
21.
{
22.
Console.WriteLine(ex.Message);
23.
}