Search

You searched for the word(s): userid:293885

Matching Posts

  • How do the instance variable (valueTypes) inside an object (i.e. reference type) gets stored/Saved in Stack or Heap???

    Hello All, Following is my understanding Reference type gets Saved/Stored in Heap Value type gets Saved/Stored in Stack So my question is how do the instance variable (valueTypes) inside an object (i.e. Reference type) gets stored/Saved in an object My Guess If the object has the reference of the instance variable (valueTypes) Stored in Stack, So isn’t CLR needs to resolve the reference of all the variable stored in Stack? What happens if there are 10,000 instance variable (ValueType) in an object
    Posted to C# (Forum) by bips_kr on 9/24/2009
  • How do I close a child Modal window from the Parent form?

    Hi All, Please guide me How do I close a child Modal window from the Parent form? If I write childModalWindow.Close(); it throws “Cross-Thread operation not valid” If I use delegate with InvokeRequired(as given below) makes the application very slow. private void CloseModalForm ( ) { if (!InvokeRequired) { CloseModalWindowDelegate d = new CloseModalWindowDelegate ( CloseModalWindow ); Invoke ( d ); } }
    Posted to Client Side Web Development (Forum) by bips_kr on 1/5/2009
  • Re: How to convert ASCII data to ANSI in C# ?

    Thanks a lot... its working
    Posted to C# (Forum) by bips_kr on 2/14/2008
  • Re: How to convert ASCII data to ANSI in C# ?

    Here 130 corresponds to é in ASCII and for ANSI it needs to be converted to 233
    Posted to C# (Forum) by bips_kr on 2/14/2008
  • Re: How to convert ASCII data to ANSI in C# ?

    here is the code Encoding enc = Encoding .GetEncoding(1252); byte [] myByte = new byte [] { 67, 97, 102, 130 }; //Café string str = enc.GetString(myByte); and I am getting Cafe (not Caf é)
    Posted to C# (Forum) by bips_kr on 2/14/2008
  • How to convert ASCII data to ANSI in C# ?

    Hi All, I am converting a byte array into string but before converting it to string I need to convert the ASCII data in the byte array to ANSI. 1 public static string ConvertToString( byte [] bytes) 2 { 3 char [] chars = new char [bytes.Length]; 4 for ( int j = 0; j < chars.Length; j++) 5 { 6 chars[j] = Convert.ToChar(bytes[j]); 7 } 8 return new string (chars); 9 } 10 Do let me know how do I convert the ASCII to ANSI ? Do we have any classes in C# for the conversion? Thanks in Advance
    Posted to C# (Forum) by bips_kr on 2/14/2008
  • Not able to read special character “è” using BinaryReader in C#

    Hi All, I am trying to read a string (“ Coéucés ”) from a text file, using the following code. 1 public static void ReadFile(FileInfo dbfFile) 2 3 { 4 5 string returnValue = string .Empty; 6 7 using (FileStream stream = dbfFile.OpenRead()) 8 9 { 10 11 using (BinaryReader reader = new BinaryReader(stream)) 12 13 { 14 15 char [] myChar = reader.ReadChars(15); 16 17 returnValue = new string (myChar); 18 19 } 20 21 } 22 23 MessageBox.Show(returnValue); 24 25 } 26 27 But my code is not correctly reading
    Posted to C# (Forum) by bips_kr on 2/14/2008
  • Re: What is assembly, Native code, PE file

    How can we choose between JIT and Install time compiler ?
    Posted to Architecture (Forum) by bips_kr on 10/24/2007
  • Re: What is assembly, Native code, PE file

    Thanks Tyagi, I believe the path provided in the point 3 is the location where the content of the Bin folder (ASP.net project) gets save, I.e. .net DLLs And native code for all the project i.e. (Window form, Asp.net or consol application) gets stored in the memory not as a physical file.
    Posted to Architecture (Forum) by bips_kr on 10/23/2007
  • Re: What is assembly, Native code, PE file

    Thanks a lot, Please find my questions inline 1. Assemblies are not "real" executables, they are Intermediate Language which has a lot of resemblance to assembly language. When you build your project, you're really building to IL. You can look at this with an assembly viewer like ILDASM, the Microsoft IL Disassembler So after compiling the C# code from VS 2005 IDE we get an assembly file with an extension Dlls and EXEs but they are not an executables, they are just an assembly containing
    Posted to Architecture (Forum) by bips_kr on 10/23/2007
Page 1 of 15 (144 items) 1 2 3 4 5 Next > ... Last »