Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
GeneralHIGH MERCURY LEVELS IN DOLPHINS Pin
eggie522-Feb-03 19:31
eggie522-Feb-03 19:31 
GeneralRe: HIGH MERCURY LEVELS IN DOLPHINS Pin
leppie22-Feb-03 21:57
leppie22-Feb-03 21:57 
GeneralRe: HIGH MERCURY LEVELS IN DOLPHINS Pin
eggie523-Feb-03 13:19
eggie523-Feb-03 13:19 
GeneralRe: HIGH MERCURY LEVELS IN DOLPHINS Pin
John Karbin24-Feb-03 2:31
John Karbin24-Feb-03 2:31 
GeneralRe: HIGH MERCURY LEVELS IN DOLPHINS Pin
eggie524-Feb-03 4:08
eggie524-Feb-03 4:08 
GeneralRe: HIGH MERCURY LEVELS IN DOLPHINS Pin
John Karbin24-Feb-03 4:29
John Karbin24-Feb-03 4:29 
Generalencrypting question Pin
jtmtv1822-Feb-03 13:29
jtmtv1822-Feb-03 13:29 
GeneralRe: encrypting question Pin
Furty22-Feb-03 17:57
Furty22-Feb-03 17:57 
I don't quite follow what you mean Jesse..

If you want to identify the file as being encrypted, you could just add your own unique extension on the end:

document.doc -> document.doc.enc -> document.doc

Then remove it when decrypting using the Path class to strip off your added extansion. This way there's no need to store any filename info in the encrypted data at all.

However, if you want to store the original filename in the encrypted stream, replacing with something totally unrelated like this:

document.doc -> encrypted.file -> document.doc

Then it's going to be a little trickier. What you need to do here is use the Path class the get just the filename (not the whole path) of the source file, then store the length of the filename string in the encryption stream, followed by the string name itself as bytes. When decrypting, you will need to read your filename length first, then read that amount of bytes to re-create the filename, then read & decrypt the actual file data.
GeneralRe: encrypting question Pin
jtmtv1822-Feb-03 19:04
jtmtv1822-Feb-03 19:04 
QuestionFitting a form in a control? Pin
Arun Bhalla22-Feb-03 11:42
Arun Bhalla22-Feb-03 11:42 
AnswerRe: Fitting a form in a control? Pin
leppie22-Feb-03 12:19
leppie22-Feb-03 12:19 
GeneralRe: Fitting a form in a control? Pin
James T. Johnson22-Feb-03 17:07
James T. Johnson22-Feb-03 17:07 
QuestionIs it me or does poeple have less problems with .NET on weekends? Pin
leppie22-Feb-03 11:23
leppie22-Feb-03 11:23 
Questionhow can I Change Type "String" to "char *" within C#? Pin
c.jack22-Feb-03 0:41
c.jack22-Feb-03 0:41 
AnswerRe: how can I Change Type "String" to "char *" within C#? Pin
leppie22-Feb-03 0:45
leppie22-Feb-03 0:45 
AnswerThere are several ways: you can use the unsafe keyword and the Marshal class in the System.Runtime.Interop namespace. But if you are calling an external function, you can use the MarshalAs, it would be a more efficient way. It depends on what you are Pin
Daniel Turini22-Feb-03 0:57
Daniel Turini22-Feb-03 0:57 
GeneralHence my vague reply Pin
leppie22-Feb-03 1:02
leppie22-Feb-03 1:02 
AnswerRe: how can I Change Type "String" to "char *" within C#? Pin
Stephane Rodriguez.22-Feb-03 1:50
Stephane Rodriguez.22-Feb-03 1:50 
GeneralRe: how can I Change Type "String" to "char *" within C#? Pin
c.jack23-Feb-03 15:14
c.jack23-Feb-03 15:14 
GeneralAccessing varibles across forms. Pin
draco_iii21-Feb-03 23:23
draco_iii21-Feb-03 23:23 
GeneralRe: Accessing varibles across forms. Pin
leppie21-Feb-03 23:44
leppie21-Feb-03 23:44 
GeneralRe: Accessing varibles across forms. Pin
draco_iii22-Feb-03 23:46
draco_iii22-Feb-03 23:46 
GeneralRe: Accessing varibles across forms. Pin
leppie23-Feb-03 0:09
leppie23-Feb-03 0:09 
GeneralRe: Accessing varibles across forms. Pin
draco_iii23-Feb-03 14:53
draco_iii23-Feb-03 14:53 
GeneralRe: Accessing varibles across forms. Pin
Stephane Rodriguez.21-Feb-03 23:57
Stephane Rodriguez.21-Feb-03 23:57 

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.