Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
C

Cptkli

@Cptkli
About
Posts
11
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • exception handling for another program, is it possible in c#?
    C Cptkli

    But i did read it's possible to replace the exception handler of a program without injecting any code with the SetUnhandledExceptionFilter api. It replaces the existing top-level exception filter of the targeted program. Is it wrong?

    C# tutorial question csharp debugging performance

  • exception handling for another program, is it possible in c#?
    C Cptkli

    For example, if i VirtualProtectEx portion of memory of another program, with page guard or no access, how can i handle the exception when it will be raised, and get exception informations like registers value ect...? I think to handle the exception my program would require enabled debug privileges which i know how to code but then i don't know how to set a top level exception filter. I am still learning so any help would be great. :)

    C# tutorial question csharp debugging performance

  • Count same values in single array
    C Cptkli

    thanks got it working. Dictionary dic = new Dictionary(); for (int i = 0; i < myArray.Length; i++) { int value = myArray[i]; if (dic.ContainsKey(value)) { dic[value] += 1; } else { dic.Add(value, 1); } } int[] keys = new int[dic.Count]; int[] values = new int[dic.Count]; dic.Keys.CopyTo(keys, 0); dic.Values.CopyTo(values, 0); for (int i = 0; i < keys.Length; i++){ Console.WriteLine("{0} \t : {1}", keys[i], values[i]); }

    C# question data-structures

  • Count same values in single array
    C Cptkli

    Hi, sorry but how do you use Dictionary please? I can get unique values with the following code but i am stuck with the count. List myList = new List(); int index; for (int i = 0; i < myArray.Length; i++) { index = myList.BinarySearch(myArray[i]); if (index < 0) { myList.Insert(~index, myArray[i]); } } int[] arr = myList.ToArray(); foreach (Int32 tmp in arr) { Console.WriteLine("id: {0}", tmp); }

    C# question data-structures

  • Count same values in single array
    C Cptkli

    how can i count same values considering i don't know what values are in the array? :confused:

    C# question data-structures

  • How to add comments in Config file?
    C Cptkli

    Hello, i use ConfigurationManager and i don't find how to add and breaklines in my config file between the config.AppSettings.Settings.Add Is it possible?

    C# tutorial question

  • Array of bytes to Korean chars array?
    C Cptkli

    Thanks it helped, i just found char[] array_country = System.Text.Encoding.Unicode.GetString(byte_country).ToCharArray(); string_country = new String(array_country); MessageBox.Show(string_country); works perfectly, the message box show the good string in Korean. I then add the string to a listview, so is there any option to set to show the Korean characters in the listview? *edit ok it's resolved the problem came from the font i used in the listview ;P -- modified at 18:45 Saturday 1st December, 2007

    C# data-structures question

  • Array of bytes to Korean chars array?
    C Cptkli

    Hi, i have an array of bytes i need to convert to a Korean string but i don't know how. I tried char[] chars_array = System.Text.Encoding.GetEncoding(949).GetString(bytes_array).ToCharArray(); korean_string = new String(char_array); but it ends with square and ! ? characters. Any idea :confused:

    C# data-structures question

  • how to check if any textbox has changed on a form?
    C Cptkli

    Luc Pattyn wrote:

    or you may set Form.KeyPreview true and take care of it in Form.OnKeyDown/OnKeyPress (possibly with checking object sender is a TextBox).

    Thx allot it works. I am also interested in Giorgi solution as i do not know how to do what he tells.

    C# tutorial question

  • how to check if any textbox has changed on a form?
    C Cptkli

    Hi, i have several textBoxes on a form and i want to set a Boolean to false if a key is pressed in any of them. Is there a quick method to do that instead of "textBox1_KeyPress", "textBox2_KeyPress" ect... ? Thanks in advance :rose:

    C# tutorial question

  • DebugActiveProcess question
    C Cptkli

    hello, after i used DebugActiveProcess how can i have the handle of the thread who caused a debugging event? I am lost :cool: Thank you!

    C / C++ / MFC question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups