Click here to Skip to main content
15,912,457 members
Home / Discussions / C#
   

C#

 
QuestionSpying on System.Windows.Forms.DataGridView in another app... Pin
Fuzzychaos4-Jul-08 7:28
Fuzzychaos4-Jul-08 7:28 
QuestionC# or C++/CLI? Pin
Tal Rasha's Guardianship4-Jul-08 7:27
Tal Rasha's Guardianship4-Jul-08 7:27 
AnswerRe: C# or C++/CLI? Pin
Paul Conrad4-Jul-08 7:40
professionalPaul Conrad4-Jul-08 7:40 
AnswerRe: C# or C++/CLI? Pin
BadKarma4-Jul-08 12:07
BadKarma4-Jul-08 12:07 
GeneralRe: C# or C++/CLI? Pin
Tal Rasha's Guardianship5-Jul-08 3:47
Tal Rasha's Guardianship5-Jul-08 3:47 
Questionrefresh dataset after updating Pin
jaffa4-Jul-08 6:39
jaffa4-Jul-08 6:39 
AnswerRe: refresh dataset after updating Pin
jaffa4-Jul-08 6:49
jaffa4-Jul-08 6:49 
QuestionString.fromCharCode and charCodeAt Pin
tim_gunning4-Jul-08 6:16
tim_gunning4-Jul-08 6:16 
hi all does anyone know how to convert the following js into c# ?

my_str += String.fromCharCode((src.charCodeAt(c) ^ keys[cc]));


which is contained in the following loop (for clarity):

for(var c:Number = 0; c < src.length; c ++){
	if(cc>=i) {
		cc = 0;
	}
	my_str += String.fromCharCode((src.charCodeAt(c) ^ keys[cc]));
	cc++;
	}


I've searched and found the equivalent for both but dont seem to be able to put it together, it should be something like this in c#:

my_str += new String(new char[]{(Int32)Data[c] ^ keys[cc]});


but that obviously fails and im just confusing myself now. any pointer very very much appreciated.

keys is already converted into an array of ASCII codes and Data is a string at present, i was thinking I should convert it into an array of ASCII codes as well.....

thank you
tim
AnswerRe: String.fromCharCode and charCodeAt Pin
tim_gunning4-Jul-08 6:42
tim_gunning4-Jul-08 6:42 
AnswerRe: String.fromCharCode and charCodeAt Pin
Guffa4-Jul-08 6:43
Guffa4-Jul-08 6:43 
GeneralRe: String.fromCharCode and charCodeAt Pin
tim_gunning4-Jul-08 9:17
tim_gunning4-Jul-08 9:17 
AnswerRe: String.fromCharCode and charCodeAt Pin
Guffa4-Jul-08 12:44
Guffa4-Jul-08 12:44 
GeneralRe: String.fromCharCode and charCodeAt [modified] Pin
tim_gunning4-Jul-08 14:27
tim_gunning4-Jul-08 14:27 
GeneralRe: String.fromCharCode and charCodeAt Pin
Guffa4-Jul-08 14:38
Guffa4-Jul-08 14:38 
GeneralRe: String.fromCharCode and charCodeAt Pin
tim_gunning4-Jul-08 14:49
tim_gunning4-Jul-08 14:49 
GeneralRe: String.fromCharCode and charCodeAt Pin
Guffa5-Jul-08 3:32
Guffa5-Jul-08 3:32 
GeneralRe: String.fromCharCode and charCodeAt Pin
tim_gunning6-Jul-08 2:08
tim_gunning6-Jul-08 2:08 
GeneralRe: String.fromCharCode and charCodeAt Pin
N a v a n e e t h4-Jul-08 16:45
N a v a n e e t h4-Jul-08 16:45 
GeneralRe: String.fromCharCode and charCodeAt Pin
Guffa5-Jul-08 3:18
Guffa5-Jul-08 3:18 
GeneralRe: String.fromCharCode and charCodeAt Pin
N a v a n e e t h5-Jul-08 16:33
N a v a n e e t h5-Jul-08 16:33 
Questionwindows service Pin
arkiboys4-Jul-08 4:55
arkiboys4-Jul-08 4:55 
AnswerRe: windows service Pin
Michael90004-Jul-08 8:17
Michael90004-Jul-08 8:17 
AnswerRe: windows service Pin
N a v a n e e t h4-Jul-08 18:43
N a v a n e e t h4-Jul-08 18:43 
QuestionAccess Denied to AllUsers Folder Pin
Richard Blythe4-Jul-08 4:43
Richard Blythe4-Jul-08 4:43 
AnswerRe: Access Denied to AllUsers Folder Pin
Daniel Grunwald5-Jul-08 7:27
Daniel Grunwald5-Jul-08 7:27 

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.