H
hassanmushtaq
hello to all fellows
i am using VS 2003 with CF 1.0 and C#. i have pocket PC (Windows
Mobile 5.0). my task is to vibrate a pocket pc with p/invoke. i have
found a solution but it is not working in my favour. it gives me
exception Missing Method Exception
my code is
[DllImport("aygshell.dll")]
private static extern int Vibrate(int cvn,IntPtr rgvn,bool
fRepeat,uint dwTimeout);
public static bool Play()
{
int result = Vibrate(0, IntPtr.Zero, true, 0xffffffff);
if(result!=0)
{
return false;
}
return true;
}
[DllImport("aygshell.dll")]
private static extern int vibrateStop();
public static bool Stop()
{
int result = vibrateStop();
if(result!=0)
{
return false;
}
return true;
}
but when i call play() for vibration MissingMethod Exception occurs.
can anyone give me solution
regards
Hassan Mushtaq
i am using VS 2003 with CF 1.0 and C#. i have pocket PC (Windows
Mobile 5.0). my task is to vibrate a pocket pc with p/invoke. i have
found a solution but it is not working in my favour. it gives me
exception Missing Method Exception
my code is
[DllImport("aygshell.dll")]
private static extern int Vibrate(int cvn,IntPtr rgvn,bool
fRepeat,uint dwTimeout);
public static bool Play()
{
int result = Vibrate(0, IntPtr.Zero, true, 0xffffffff);
if(result!=0)
{
return false;
}
return true;
}
[DllImport("aygshell.dll")]
private static extern int vibrateStop();
public static bool Stop()
{
int result = vibrateStop();
if(result!=0)
{
return false;
}
return true;
}
but when i call play() for vibration MissingMethod Exception occurs.
can anyone give me solution
regards
Hassan Mushtaq