Click here to Skip to main content
15,895,557 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to do this? Pin
momer1-Nov-04 6:46
momer1-Nov-04 6:46 
QuestionDenis Bauer's Site Is Down? Pin
Josh Koppang1-Nov-04 5:04
Josh Koppang1-Nov-04 5:04 
GeneralChanging Opacity of Parent Form/Window Pin
sommarafton1-Nov-04 4:47
sommarafton1-Nov-04 4:47 
GeneralRe: Changing Opacity of Parent Form/Window Pin
Alex Korchemniy1-Nov-04 8:01
Alex Korchemniy1-Nov-04 8:01 
QuestionHow to "extract" data from a web page? Pin
Member 14309891-Nov-04 4:44
Member 14309891-Nov-04 4:44 
AnswerRe: How to "extract" data from a web page? Pin
Alex Korchemniy1-Nov-04 7:51
Alex Korchemniy1-Nov-04 7:51 
QuestionHow to do this in C#? Pin
momer1-Nov-04 2:27
momer1-Nov-04 2:27 
AnswerRe: How to do this in C#? Pin
Judah Gabriel Himango1-Nov-04 4:14
sponsorJudah Gabriel Himango1-Nov-04 4:14 
Should go something like this. You might want to look at System.Text.StringBuilder instead of using a string for strReturned, as each modification to a string creates a new string, whereas StringBuilder modifies the string directly.

public string PackData(string strInput)
{
   string strReturned;
   char nLength = (char) (strInput.Length + 2);
   char b = (char)0x03;
   char zero = (char)0x00;
   strReturned = string.Format("{0}{1}{2}", nLength, b, strInput);
   
   for(int i = 0; i < (32 - nLenght); i++)
   {
      strReturned += zero;
   }
  
   return strReturned;
}


And take it with a grain of salt, I didn't try to compile this.

Any remotely useful information on my blog will be removed immediately.
Judah Himango


GeneralRe: How to do this in C#? Pin
momer1-Nov-04 4:38
momer1-Nov-04 4:38 
GeneralRe: How to do this in C#? Pin
Judah Gabriel Himango1-Nov-04 5:15
sponsorJudah Gabriel Himango1-Nov-04 5:15 
GeneralRe: How to do this in C#? Pin
momer1-Nov-04 5:21
momer1-Nov-04 5:21 
GeneralProcess sql scripts Pin
totig1-Nov-04 2:21
totig1-Nov-04 2:21 
GeneralRe: Process sql scripts Pin
Alex Korchemniy1-Nov-04 7:14
Alex Korchemniy1-Nov-04 7:14 
GeneralInstall MSI from code Pin
petst1-Nov-04 1:57
petst1-Nov-04 1:57 
GeneralRe: Install MSI from code Pin
Heath Stewart1-Nov-04 8:20
protectorHeath Stewart1-Nov-04 8:20 
GeneralExtending ADODDB Classes in C# Pin
mohit_kinalekar1-Nov-04 1:43
mohit_kinalekar1-Nov-04 1:43 
Generaldownloading pdf files from web page links Pin
JeromeKJerome1-Nov-04 1:14
JeromeKJerome1-Nov-04 1:14 
GeneralRe: downloading pdf files from web page links Pin
perlmunger1-Nov-04 5:39
perlmunger1-Nov-04 5:39 
GeneralRe: downloading pdf files from web page links Pin
JeromeKJerome1-Nov-04 8:01
JeromeKJerome1-Nov-04 8:01 
GeneralRe: downloading pdf files from web page links Pin
Heath Stewart1-Nov-04 8:17
protectorHeath Stewart1-Nov-04 8:17 
Generalmarshall unsigned char *** Pin
naxos1-Nov-04 0:59
naxos1-Nov-04 0:59 
GeneralWhere is Managed DirectX installed on Win98 Pin
Wizard_011-Nov-04 0:21
Wizard_011-Nov-04 0:21 
GeneralRe: Where is Managed DirectX installed on Win98 Pin
Heath Stewart1-Nov-04 8:35
protectorHeath Stewart1-Nov-04 8:35 
GeneralSystem.Aritmetic exeption Pin
Lutfullah31-Oct-04 23:42
Lutfullah31-Oct-04 23:42 
GeneralRe: System.Aritmetic exeption Pin
Salil Khedkar1-Nov-04 19:13
Salil Khedkar1-Nov-04 19:13 

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.