hi
I have some unsafe code in asp.net
when i m assigning any text to my messagebox it is not displaying.
is there any solution by which we can handle our control in unsafe code function..??
public void UserResultFuc(
object pContext,
int imageStatus,
APIWrapper.ImageData image,
APIWrapper.CG4ImageType imageType,
int detectedOdbjects)
{
try
{
APIWrapper.CG4_Controls_SetLEDs(APIWrapper.CG4LedType.CG4_LED_EXTEND, 1);
Thread.Sleep(300);
APIWrapper.CG4_Controls_SetLEDs(APIWrapper.CG4LedType.CG4_LED_EXTEND, 0);
string fileName = "";
strFlag = "Veri";
if (strFlag == "Veri")
{
string strName = "";
fileName = "Images/veri.bmp";
int count = (int)image.Width * (int)image.Height;
byte[] dst = new byte[count];
Marshal.Copy(image.Buffer, dst, 0, count);
Bitmap bmp = CreateGreyscaleBitmap(dst, (int)image.Width, (int)image.Height);
bmp.RotateFlip(RotateFlipType.Rotate180FlipX);
bmp.Save(Server.MapPath (fileName));
intTmTimer = 1;
try
{
string veriFlag = "true";
if (veriFlag.ToString().Equals("true"))
{
textBox1.Text += "FINGERPRINT VERIFICATION SUCCESSFUL" + Environment.NewLine;
}
else
{
textBox1.Text += "FINGERPRINT VERIFICATION UNSUCCESSFUL" + Environment.NewLine;
}
actually this above code is for capturing finger print
device will take finger template and if it is matching it will give message box or it will display in lable that capture successfully.
i have written messg showing code in function used for capturing.
but it is not invoking that messagebox.in windows form it gets invoke..becoz i have used methodinvoker delegates there
thanx