|
Posted by igorb
(80.87.240.30) on January 24, 2008 at 06:18:50:
In Reply to: Re: Re: Problem with C# posted by christian on January 23, 2008 at 14:54:20:
I'm try everything: Here is a full code: Every case make Exception. I', try to create a commponent, but unsuccesful. Console.WriteLine(" - New File"); try { jmbg = currentFolder.OpenFile("1", BasicCardFileOpenMode.AccessRead, 13); Console.WriteLine("ok"); } catch (Exception ex) { Console.WriteLine(ex.Message); } try { jmbg = currentFolder.OpenFile("1", BasicCardFileOpenMode.AccessReadWrite, 13); Console.WriteLine("ok"); } catch (Exception ex) { Console.WriteLine(ex.Message); } try { jmbg = currentFolder.OpenFile("1", BasicCardFileOpenMode.AccessWrite, 13); Console.WriteLine("ok"); } catch (Exception ex) { Console.WriteLine(ex.Message); } try { jmbg = currentFolder.OpenFile("1", BasicCardFileOpenMode.ModeAppend, 13); Console.WriteLine("ok"); } catch (Exception ex) { Console.WriteLine(ex.Message); } try { jmbg = currentFolder.OpenFile("1", BasicCardFileOpenMode.ModeBinary, 13); Console.WriteLine("ok"); } catch (Exception ex) { Console.WriteLine(ex.Message); } try { jmbg = currentFolder.OpenFile("1", BasicCardFileOpenMode.ModeInput, 13); Console.WriteLine("ok"); } catch (Exception ex) { Console.WriteLine(ex.Message); } try { jmbg = currentFolder.OpenFile("1", BasicCardFileOpenMode.ModeOutput, 13); Console.WriteLine("ok"); } catch (Exception ex) { Console.WriteLine(ex.Message); } try { jmbg = currentFolder.OpenFile("1", BasicCardFileOpenMode.ModeRandom, 13); Console.WriteLine("ok"); } catch (Exception ex) { Console.WriteLine(ex.Message); } try { jmbg = currentFolder.OpenFile("1", BasicCardFileOpenMode.ShareLocked, 13); Console.WriteLine("ok"); } catch (Exception ex) { Console.WriteLine(ex.Message); } try { jmbg = currentFolder.OpenFile("1", BasicCardFileOpenMode.ShareReadLocked, 13); Console.WriteLine("ok"); } catch (Exception ex) { Console.WriteLine(ex.Message); } try { jmbg = currentFolder.OpenFile("1", BasicCardFileOpenMode.ShareShared, 13); Console.WriteLine("ok"); } catch (Exception ex) { Console.WriteLine(ex.Message); } try { jmbg = currentFolder.OpenFile("1", BasicCardFileOpenMode.ShareWiteLocked, 13); Console.WriteLine("ok"); } catch (Exception ex) { Console.WriteLine(ex.Message); }
Follow Ups:
|