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

C#

 
AnswerRe: pdf file creation Pin
PAVITHRA DWARAKANATHAN18-Nov-15 0:06
PAVITHRA DWARAKANATHAN18-Nov-15 0:06 
AnswerHow to upload and display images dynamically on webpage using asp.net and c# Pin
yurekha selvam30-Sep-15 20:28
yurekha selvam30-Sep-15 20:28 
GeneralRe: How to upload and display images dynamically on webpage using asp.net and c# Pin
OriginalGriff30-Sep-15 20:59
mveOriginalGriff30-Sep-15 20:59 
QuestionUse of DCB structure in C# Pin
Member 1206160030-Sep-15 0:52
Member 1206160030-Sep-15 0:52 
AnswerRe: Use of DCB structure in C# Pin
OriginalGriff30-Sep-15 1:06
mveOriginalGriff30-Sep-15 1:06 
GeneralRe: Use of DCB structure in C# Pin
Member 1206160030-Sep-15 1:32
Member 1206160030-Sep-15 1:32 
GeneralRe: Use of DCB structure in C# Pin
OriginalGriff30-Sep-15 1:41
mveOriginalGriff30-Sep-15 1:41 
GeneralRe: Use of DCB structure in C# Pin
Member 1206160030-Sep-15 1:55
Member 1206160030-Sep-15 1:55 
Why am I kidding ?
how do I know which bits in the new C# structure:
C++
[StructLayout(LayoutKind.Sequential)]
public struct DCB {
//taken from c struct in platform sdk
public int DCBlength; // sizeof(DCB)
public int BaudRate; // current baud rate
/* these are the c struct bit fields, bit twiddle flag to set
public int fBinary; // binary mode, no EOF check
public int fParity; // enable parity checking
public int fOutxCtsFlow; // CTS output flow control
public int fOutxDsrFlow; // DSR output flow control
public int fDtrControl; // DTR flow control type
public int fDsrSensitivity; // DSR sensitivity
public int fTXContinueOnXoff; // XOFF continues Tx
public int fOutX; // XON/XOFF out flow control
public int fInX; // XON/XOFF in flow control
public int fErrorChar; // enable error replacement
public int fNull; // enable null stripping
public int fRtsControl; // RTS flow control
public int fAbortOnError; // abort on error
public int fDummy2; // reserved
*/
public uint flags;
public ushort wReserved; // not currently used
public ushort XonLim; // transmit XON threshold
public ushort XoffLim; // transmit XOFF threshold
public byte ByteSize; // number of bits/byte, 4-8
public byte Parity; // 0-4=no,odd,even,mark,space
public byte StopBits; // 0,1,2 = 1, 1.5, 2
public char XonChar; // Tx and Rx XON character
public char XoffChar; // Tx and Rx XOFF character
public char ErrorChar; // error replacement character
public char EofChar; // end of input character
public char EvtChar; // received event character
public ushort wReserved1; // reserved; do not use
}


correspond to parameters like CTS, DSR, RTS, DTR, Xon/Xoff from the original structure?

PS. Do you think I should give a try maybe to SerialPort and if doesn't work revert to this PInvoke implementation?
GeneralRe: Use of DCB structure in C# Pin
Pete O'Hanlon30-Sep-15 2:24
mvePete O'Hanlon30-Sep-15 2:24 
GeneralRe: Use of DCB structure in C# Pin
Richard Deeming30-Sep-15 2:28
mveRichard Deeming30-Sep-15 2:28 
GeneralRe: Use of DCB structure in C# Pin
Member 1206160030-Sep-15 3:21
Member 1206160030-Sep-15 3:21 
GeneralRe: Use of DCB structure in C# Pin
Richard Deeming30-Sep-15 4:13
mveRichard Deeming30-Sep-15 4:13 
GeneralRe: Use of DCB structure in C# Pin
Member 1206160030-Sep-15 4:17
Member 1206160030-Sep-15 4:17 
QuestionHi Please help me Pin
NewbieProgs29-Sep-15 15:55
NewbieProgs29-Sep-15 15:55 
AnswerRe: Hi Please help me Pin
OriginalGriff29-Sep-15 20:35
mveOriginalGriff29-Sep-15 20:35 
AnswerRe: Hi Please help me Pin
aarif moh shaikh1-Oct-15 1:02
professionalaarif moh shaikh1-Oct-15 1:02 
QuestionHow to send .xlsx file as an email attachment in C#? Pin
Member 1162226629-Sep-15 3:50
Member 1162226629-Sep-15 3:50 
AnswerRe: How to send .xlsx file as an email attachment in C#? Pin
Chris Quinn29-Sep-15 4:15
Chris Quinn29-Sep-15 4:15 
AnswerRe: How to send .xlsx file as an email attachment in C#? Pin
ZurdoDev29-Sep-15 4:21
professionalZurdoDev29-Sep-15 4:21 
GeneralRe: How to send .xlsx file as an email attachment in C#? Pin
Member 1162226629-Sep-15 6:19
Member 1162226629-Sep-15 6:19 
QuestionSet Time outs on Serial Port Pin
Member 1206160029-Sep-15 3:09
Member 1206160029-Sep-15 3:09 
AnswerRe: Set Time outs on Serial Port Pin
ZurdoDev29-Sep-15 4:23
professionalZurdoDev29-Sep-15 4:23 
GeneralRe: Set Time outs on Serial Port Pin
Member 1206160029-Sep-15 4:25
Member 1206160029-Sep-15 4:25 
GeneralRe: Set Time outs on Serial Port Pin
ZurdoDev29-Sep-15 4:47
professionalZurdoDev29-Sep-15 4:47 
GeneralRe: Set Time outs on Serial Port Pin
Member 1206160029-Sep-15 4:59
Member 1206160029-Sep-15 4: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.