Click here to Skip to main content
15,915,829 members
Home / Discussions / C#
   

C#

 
GeneralRe: C/S mode To B/S mode Pin
Colin Angus Mackay29-Jun-04 1:42
Colin Angus Mackay29-Jun-04 1:42 
Generalproblem with drawstring and font "Microsoft Sans Serif" Pin
yonitgil28-Jun-04 21:50
yonitgil28-Jun-04 21:50 
GeneralRe: problem with drawstring and font "Microsoft Sans Serif" Pin
Heath Stewart29-Jun-04 5:29
protectorHeath Stewart29-Jun-04 5:29 
GeneralWeifenLuos DockManager Question Pin
matthias s.28-Jun-04 21:39
matthias s.28-Jun-04 21:39 
GeneralRe: WeifenLuos DockManager Question Pin
Dave Kreskowiak29-Jun-04 4:31
mveDave Kreskowiak29-Jun-04 4:31 
Generalrestarting second counter Pin
Jason Ranin28-Jun-04 18:43
Jason Ranin28-Jun-04 18:43 
GeneralRe: restarting second counter Pin
Colin Angus Mackay29-Jun-04 1:46
Colin Angus Mackay29-Jun-04 1:46 
Generalcode with a foxpro database Pin
cmarmr28-Jun-04 18:07
cmarmr28-Jun-04 18:07 
i have a custome encrypt program for a foxpro database i have so i converted the program to csharp it encrypts data to and from a table but when i encrypt it using csharp i can't decrypt it because the charter maping in csharp is diffrent i think because i can encrypt the letter "a" using my method but i can't read it from the table in its encrypted form and turn it back into a "a" so can somebody help me


here is a copy of a method that dose basicly the same thing as the encrypt program i am trying to use the idea is the same and i can't change it because we have hundreds of programs that use this method to encrypt and decrypt data in these tables

public string encrypt(char[] txt)
{
int length=txt.Length;
int char_num;
StringBuilder result=new StringBuilder();
char[] out_array=new char[length];
double x,y,num;

for(char_num=1; char_num<=length; char_num++)
{
x=(double) txt[char_num-1];
y=0;
for(double bit=7;bit>=0;bit--)
{

num=(int) Math.Pow(2,bit)-1;
if(x > num)
{
num= Math.Pow(2,bit);
x=x-num;
num= Math.Pow(2,7-bit);
y=y+(num);
}

}

out_array[length-char_num]=(char) y;

}
for(char_num=0; char_num
GeneralRe: code with a foxpro database Pin
Heath Stewart29-Jun-04 5:04
protectorHeath Stewart29-Jun-04 5:04 
GeneralRe: code with a foxpro database Pin
cmarmr29-Jun-04 15:19
cmarmr29-Jun-04 15:19 
GeneralRe: code with a foxpro database Pin
cmarmr2-Jul-04 3:29
cmarmr2-Jul-04 3:29 
GeneralRe: code with a foxpro database Pin
Heath Stewart2-Jul-04 3:35
protectorHeath Stewart2-Jul-04 3:35 
GeneralRe: code with a foxpro database Pin
cmarmr2-Jul-04 14:32
cmarmr2-Jul-04 14:32 
GeneralRe: code with a foxpro database Pin
Heath Stewart2-Jul-04 18:31
protectorHeath Stewart2-Jul-04 18:31 
GeneralCapture Pin
quocbao28-Jun-04 17:48
quocbao28-Jun-04 17:48 
GeneralPulling records within two sets of dates Pin
myNameIsRon28-Jun-04 17:38
myNameIsRon28-Jun-04 17:38 
GeneralRe: Pulling records within two sets of dates Pin
myNameIsRon28-Jun-04 20:08
myNameIsRon28-Jun-04 20:08 
GeneralRe: Capture live video. Pin
Dave Kreskowiak28-Jun-04 16:38
mveDave Kreskowiak28-Jun-04 16:38 
GeneralGetting table names from .mdb Pin
benglish7228-Jun-04 15:40
benglish7228-Jun-04 15:40 
GeneralRe: Getting table names from .mdb Pin
Heath Stewart29-Jun-04 3:34
protectorHeath Stewart29-Jun-04 3:34 
GeneralRe: Getting table names from .mdb Pin
benglish7229-Jun-04 14:30
benglish7229-Jun-04 14:30 
GeneralRe: Getting table names from .mdb Pin
Heath Stewart29-Jun-04 17:17
protectorHeath Stewart29-Jun-04 17:17 
QuestionHow to config **.exe.config by programming Pin
chansion28-Jun-04 15:04
chansion28-Jun-04 15:04 
AnswerRe: How to config **.exe.config by programming Pin
Dave Kreskowiak28-Jun-04 16:35
mveDave Kreskowiak28-Jun-04 16:35 
GeneralRe: How to config **.exe.config by programming Pin
Tom Larsen29-Jun-04 6:05
Tom Larsen29-Jun-04 6:05 

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.