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

C#

 
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 
AnswerRe: MCAD and MCSD Pin
Christian Graus23-Sep-07 15:08
protectorChristian Graus23-Sep-07 15:08 
GeneralRe: MCAD and MCSD Pin
StyleGuide24-Sep-07 0:17
StyleGuide24-Sep-07 0:17 
QuestionTaking User input and getting back to the previous control Pin
Dino2Dino23-Sep-07 13:52
Dino2Dino23-Sep-07 13:52 
AnswerRe: Taking User input and getting back to the previous control Pin
I.explore.code23-Sep-07 19:30
I.explore.code23-Sep-07 19:30 
GeneralRe: Taking User input and getting back to the previous control Pin
Dino2Dino24-Sep-07 13:45
Dino2Dino24-Sep-07 13:45 
QuestionPLEASE HELP! drawing squares/collision detection Pin
MasterSharp23-Sep-07 12:29
MasterSharp23-Sep-07 12:29 
AnswerRe: PLEASE HELP! drawing squares/collision detection Pin
Christian Graus23-Sep-07 12:45
protectorChristian Graus23-Sep-07 12:45 
GeneralRe: PLEASE HELP! drawing squares/collision detection Pin
MasterSharp23-Sep-07 12:53
MasterSharp23-Sep-07 12:53 
GeneralRe: PLEASE HELP! drawing squares/collision detection Pin
Christian Graus23-Sep-07 13:00
protectorChristian Graus23-Sep-07 13:00 

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.