Click here to Skip to main content
15,896,456 members
Home / Discussions / C#
   

C#

 
AnswerRe: VIRTUAL CD OR MOUNT VIRTUAL DRIVE Pin
Thomas Stockwell4-Aug-07 12:52
professionalThomas Stockwell4-Aug-07 12:52 
QuestionVB6 to C# Question Pin
jay in CT1-Aug-07 10:34
jay in CT1-Aug-07 10:34 
AnswerRe: VB6 to C# Question Pin
Judah Gabriel Himango1-Aug-07 11:51
sponsorJudah Gabriel Himango1-Aug-07 11:51 
GeneralRe: VB6 to C# Question Pin
jay in CT2-Aug-07 2:03
jay in CT2-Aug-07 2:03 
GeneralRe: VB6 to C# Question Pin
Judah Gabriel Himango2-Aug-07 4:36
sponsorJudah Gabriel Himango2-Aug-07 4:36 
QuestionBinary conversion , Help please!! Pin
Fara761-Aug-07 10:22
Fara761-Aug-07 10:22 
AnswerRe: Binary conversion , Help please!! Pin
Luc Pattyn1-Aug-07 12:42
sitebuilderLuc Pattyn1-Aug-07 12:42 
AnswerRe: Binary conversion , Help please!! Pin
pmarfleet1-Aug-07 12:52
pmarfleet1-Aug-07 12:52 
static void Main(string[] args)
{
int number = 0;

try
{
if (args.Length == 0)
{
throw new Exception("Number not specified");
}

if (!int.TryParse(args[0], out number))
{
throw new Exception("Could not convert value to integer");
}

const int power = 7;
int tmpNumber = number;
int i = 1;
int maxValue = (int)Math.Pow((double)2, (double)power * i);

while (number >= maxValue)
{
tmpNumber |= maxValue << 6;
maxValue = (int)Math.Pow((double)2, (double)power * ++i);
}

Console.WriteLine(tmpNumber.ToString());
}
catch (Exception ex)
{
Console.WriteLine("Exception occured");
while (ex != null)
{
Console.WriteLine(String.Format("Message: {0}", ex.Message));
Console.WriteLine(String.Format("Stack trace: {0}", ex.StackTrace));
ex = ex.InnerException;
}
}
finally
{
Console.ReadLine();
}
}
GeneralRe: Binary conversion , Help please!! Pin
Fara761-Aug-07 13:19
Fara761-Aug-07 13:19 
AnswerRe: Binary conversion , Help please!! Pin
Vega021-Aug-07 19:37
Vega021-Aug-07 19:37 
GeneralRe: Binary conversion , Help please!! Pin
Fara762-Aug-07 15:54
Fara762-Aug-07 15:54 
QuestionAspect Oriented Programing in C# Pin
Kevin Kinnett1-Aug-07 8:33
Kevin Kinnett1-Aug-07 8:33 
AnswerRe: Aspect Oriented Programing in C# Pin
Not Active1-Aug-07 9:38
mentorNot Active1-Aug-07 9:38 
QuestionHow to adjust timeouts when loading from web (help!) Pin
doug11111-Aug-07 8:33
doug11111-Aug-07 8:33 
AnswerRe: How to adjust timeouts when loading from web (help!) Pin
Not Active1-Aug-07 9:07
mentorNot Active1-Aug-07 9:07 
GeneralRe: How to adjust timeouts when loading from web (help!) Pin
doug11111-Aug-07 9:27
doug11111-Aug-07 9:27 
GeneralRe: How to adjust timeouts when loading from web (help!) Pin
Not Active1-Aug-07 9:33
mentorNot Active1-Aug-07 9:33 
QuestionSimplify this code Pin
eggie51-Aug-07 8:16
eggie51-Aug-07 8:16 
AnswerRe: Simplify this code Pin
eggie51-Aug-07 8:31
eggie51-Aug-07 8:31 
GeneralRe: Simplify this code Pin
Luc Pattyn1-Aug-07 8:43
sitebuilderLuc Pattyn1-Aug-07 8:43 
AnswerRe: Simplify this code Pin
Not Active1-Aug-07 9:04
mentorNot Active1-Aug-07 9:04 
QuestionListViews and Context Menus.., Pin
Shy Agam1-Aug-07 7:49
Shy Agam1-Aug-07 7:49 
AnswerRe: ListViews and Context Menus.., Pin
Shy Agam1-Aug-07 8:56
Shy Agam1-Aug-07 8:56 
QuestionTableAdapter Configuration failure Pin
lsconyer1-Aug-07 7:14
lsconyer1-Aug-07 7:14 
QuestionDataGrid Pin
ramdil1-Aug-07 5:59
ramdil1-Aug-07 5:59 

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.