Click here to Skip to main content
15,906,558 members
Home / Discussions / C#
   

C#

 
JokeRe: Handling Text data taken from file Pin
Andrei Ungureanu8-Oct-07 1:03
Andrei Ungureanu8-Oct-07 1:03 
QuestionOperator @ Masked textbox [modified] Pin
G. Mathu7-Oct-07 22:54
G. Mathu7-Oct-07 22:54 
AnswerRe: Operator @ Masked textbox Pin
Seishin#7-Oct-07 22:59
Seishin#7-Oct-07 22:59 
Questionvariable as type of generic (method) Pin
Seishin#7-Oct-07 22:50
Seishin#7-Oct-07 22:50 
AnswerRe: variable as type of generic (method) Pin
Eduard Keilholz8-Oct-07 2:16
Eduard Keilholz8-Oct-07 2:16 
GeneralRe: variable as type of generic (method) Pin
Seishin#8-Oct-07 2:20
Seishin#8-Oct-07 2:20 
GeneralRe: variable as type of generic (method) Pin
Guffa8-Oct-07 2:35
Guffa8-Oct-07 2:35 
QuestionBinary Equals Pin
Patricio Tapia7-Oct-07 21:55
Patricio Tapia7-Oct-07 21:55 
      byte[] comparar = new byte[16];<br />
            comparar[0] = 0x57;<br />
            comparar[1] = 0x33;<br />
            comparar[2] = 0x58;<br />
            comparar[3] = 0x20;<br />
            comparar[4] = 0x56;<br />
            comparar[5] = 0x69;<br />
            comparar[6] = 0x73;<br />
            comparar[7] = 0x69;<br />
            comparar[8] = 0x6f;<br />
            comparar[9] = 0x6e;<br />
            comparar[10] = 0x48;<br />
            comparar[11] = 0x61;<br />
            comparar[12] = 0x63;<br />
            comparar[13] = 0x6b;<br />
            comparar[14] = 0x20;<br />
            comparar[15] = 0x31;<br />
<br />
            byte[] regl = new byte[16];<br />
            bool emp = false;<br />
            string FName = @"c:\W3XVisionHack12003.exe";<br />
            BinaryReader f = new BinaryReader(File.Open(FName,FileMode.Open),Encoding.ASCII);<br />
            for (int i = 16; i <= f.BaseStream.Length; i++)<br />
            {<br />
                if (!emp)<br />
                {<br />
                    for (int a = 0; a < 16; a++)<br />
                        regl[a] = f.ReadByte();<br />
                    emp = true;<br />
                }<br />
                else<br />
                {<br />
                    for (int a = 0; a < 15; a++)<br />
                        regl[a] = regl[a + 1];<br />
<br />
                    regl[15] = f.ReadByte();<br />
                }<br />
<br />
                if (regl == comparar)<br />
                    MessageBox.Show("Found");<br />
<br />
            }<br />

How i can comparate byte arrays? (my byte array with a BinaryReader byte array)
AnswerRe: Binary Equals Pin
Andrei Ungureanu7-Oct-07 22:35
Andrei Ungureanu7-Oct-07 22:35 
GeneralRe: Binary Equals Pin
Patricio Tapia7-Oct-07 22:38
Patricio Tapia7-Oct-07 22:38 
Questionfunction rectification Pin
Sonia Gupta7-Oct-07 21:46
Sonia Gupta7-Oct-07 21:46 
AnswerRe: function rectification Pin
pmarfleet7-Oct-07 21:57
pmarfleet7-Oct-07 21:57 
GeneralRe: function rectification Pin
Sonia Gupta7-Oct-07 22:15
Sonia Gupta7-Oct-07 22:15 
AnswerRe: function rectification Pin
Nissim Salomon7-Oct-07 22:03
Nissim Salomon7-Oct-07 22:03 
QuestionDisable the Automatic ToolTip Of Treeview Pin
Venki567-Oct-07 20:35
Venki567-Oct-07 20:35 
AnswerRe: Disable the Automatic ToolTip Of Treeview Pin
stancrm7-Oct-07 20:44
stancrm7-Oct-07 20:44 
GeneralRe: Disable the Automatic ToolTip Of Treeview Pin
Venki568-Oct-07 18:09
Venki568-Oct-07 18:09 
QuestionSet XmlSerialize to ignore fields in their default value Pin
eggie57-Oct-07 20:16
eggie57-Oct-07 20:16 
AnswerRe: Set XmlSerialize to ignore fields in their default value Pin
stancrm7-Oct-07 20:40
stancrm7-Oct-07 20:40 
GeneralRe: Set XmlSerialize to ignore fields in their default value Pin
eggie57-Oct-07 20:43
eggie57-Oct-07 20:43 
QuestionProblem in uplod File through FTP Pin
pritesh_patel7-Oct-07 19:33
pritesh_patel7-Oct-07 19:33 
AnswerRe: Problem in uplod File through FTP Pin
Nokoff8-Oct-07 2:31
Nokoff8-Oct-07 2:31 
QuestionRe: Problem in uplod File through FTP Pin
pritesh_patel10-Oct-07 20:35
pritesh_patel10-Oct-07 20:35 
Questioncopy column values from one table to another Pin
Glen Harvy7-Oct-07 19:05
Glen Harvy7-Oct-07 19:05 
AnswerRe: copy column values from one table to another Pin
il_masacratore7-Oct-07 21:17
il_masacratore7-Oct-07 21:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.