Click here to Skip to main content
15,921,793 members
Home / Discussions / C#
   

C#

 
GeneralAn apology Pin
Malcolm Smart23-Sep-07 21:55
Malcolm Smart23-Sep-07 21:55 
GeneralAn request Pin
Nitin S23-Sep-07 22:17
professionalNitin S23-Sep-07 22:17 
GeneralRe: An request Pin
originSH23-Sep-07 22:23
originSH23-Sep-07 22:23 
GeneralRe: An request [modified] Pin
Nitin S23-Sep-07 22:40
professionalNitin S23-Sep-07 22:40 
GeneralRe: An request Pin
Malcolm Smart23-Sep-07 22:51
Malcolm Smart23-Sep-07 22:51 
GeneralRe: An apology taken back... Pin
Malcolm Smart23-Sep-07 22:31
Malcolm Smart23-Sep-07 22:31 
QuestionWho thinks they can crack the famous ipod? Pin
MarkB77723-Sep-07 19:08
MarkB77723-Sep-07 19:08 
AnswerRe: Who thinks they can crack the famous ipod? Pin
Pete O'Hanlon23-Sep-07 21:45
mvePete O'Hanlon23-Sep-07 21:45 
QuestionPossibilities for 'Out of Memory Exception' Pin
ilango gandhi23-Sep-07 19:02
ilango gandhi23-Sep-07 19:02 
AnswerRe: Possibilities for 'Out of Memory Exception' Pin
Christian Graus23-Sep-07 19:07
protectorChristian Graus23-Sep-07 19:07 
AnswerRe: Possibilities for 'Out of Memory Exception' Pin
Nouman Bhatti23-Sep-07 19:23
Nouman Bhatti23-Sep-07 19:23 
GeneralRe: Possibilities for 'Out of Memory Exception' Pin
Harkamal Singh23-Sep-07 20:46
Harkamal Singh23-Sep-07 20:46 
GeneralRe: Possibilities for 'Out of Memory Exception' Pin
Rudolf Jan24-Sep-07 0:16
Rudolf Jan24-Sep-07 0:16 
QuestionExporting text in textboxes to Excel Sheet in C# Pin
iet200023-Sep-07 18:21
iet200023-Sep-07 18:21 
AnswerRe: Exporting text in textboxes to Excel Sheet in C# Pin
MarkB77723-Sep-07 19:00
MarkB77723-Sep-07 19:00 
QuestionI set the Anthor property of a control,why it not work? Pin
supercsharp123-Sep-07 16:49
supercsharp123-Sep-07 16:49 
Questionprinting encrypted byte array to a barcode and scan Pin
bttds23-Sep-07 15:45
bttds23-Sep-07 15:45 
I need to print encrypted customer details as a barcode. then need to scan the data and read back the details.
My approch is like this,
I encrypted the string data using cryptoservices and get memory stream and sen the byte array data as unmanaged byte arra to the printer.

Byte[] bytes = memoryStream.GetBuffer();
IntPtr pUnmanagedBytes = new IntPtr(0);
int nLength;

nLength = Convert.ToInt32(memoryStream.Length);
pUnmanagedBytes = Marshal.AllocCoTaskMem(nLength);
Marshal.Copy(bytes, 0, pUnmanagedBytes, nLength);

PrintDirect.WritePrinter1(lhPrinter, pUnmanagedBytes, nLength, out pcWritten);

How can I read this data back to managed byte array from the scan device.
(BTW am I in the correct path.)
AnswerRe: printing encrypted byte array to a barcode and scan Pin
Christian Graus23-Sep-07 15:56
protectorChristian Graus23-Sep-07 15:56 
GeneralRe: printing encrypted byte array to a barcode and scan Pin
bttds23-Sep-07 16:24
bttds23-Sep-07 16:24 
GeneralRe: printing encrypted byte array to a barcode and scan Pin
Christian Graus23-Sep-07 16:41
protectorChristian Graus23-Sep-07 16:41 
GeneralRe: printing encrypted byte array to a barcode and scan Pin
bttds23-Sep-07 17:26
bttds23-Sep-07 17:26 
GeneralRe: printing encrypted byte array to a barcode and scan Pin
Christian Graus23-Sep-07 18:50
protectorChristian Graus23-Sep-07 18:50 
GeneralRe: printing encrypted byte array to a barcode and scan Pin
Luc Pattyn24-Sep-07 0:08
sitebuilderLuc Pattyn24-Sep-07 0:08 
GeneralRe: printing encrypted byte array to a barcode and scan Pin
bttds25-Sep-07 15:32
bttds25-Sep-07 15:32 
QuestionMCAD and MCSD Pin
samymoenis23-Sep-07 14:36
samymoenis23-Sep-07 14:36 

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.