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

C#

 
AnswerRe: how to calculate in c# Pin
OriginalGriff5-Jun-18 19:21
mveOriginalGriff5-Jun-18 19:21 
GeneralRe: how to calculate in c# Pin
Richard Andrew x648-Jun-18 12:02
professionalRichard Andrew x648-Jun-18 12:02 
GeneralRe: how to calculate in c# Pin
OriginalGriff8-Jun-18 19:28
mveOriginalGriff8-Jun-18 19:28 
GeneralRe: how to calculate in c# Pin
Richard Andrew x649-Jun-18 2:31
professionalRichard Andrew x649-Jun-18 2:31 
GeneralRe: how to calculate in c# Pin
OriginalGriff9-Jun-18 2:40
mveOriginalGriff9-Jun-18 2:40 
QuestionConvert C++ code, with calls to ATL, into C# to quickly get com ports and their friendly names? Pin
arnold_w5-Jun-18 5:13
arnold_w5-Jun-18 5:13 
AnswerRe: Convert C++ code, with calls to ATL, into C# to quickly get com ports and their friendly names? Pin
Gerry Schmitz5-Jun-18 5:26
mveGerry Schmitz5-Jun-18 5:26 
GeneralRe: Convert C++ code, with calls to ATL, into C# to quickly get com ports and their friendly names? Pin
arnold_w5-Jun-18 7:15
arnold_w5-Jun-18 7:15 
I usually link in my dll into the .exe file to speed up the loading, but in this case I would prefer to not have to use a dll, instead I want to translate the C++ code into c# but I run into trouble with the ATL stuff. I need to enumerate com ports several times during runtime, it's not enough to do it only once.

Slow is more than 50 ms, less than that is fast. Here are some measurements from a StackOverflow forum thread that I apparently am not allowed to link to:
"SetupAPI1" using calls to SETUPAPI.DLL
Found com0com ports, also reported "friendly names", took 15ms.

"SetupAPI2" using calls to SETUPAPI.DLL
Did not find com0com ports, reported "friendly names", took 32ms.

Here are examples of friendly names:
Com1 "USB Serial Port"
Com2 "USB Serial Device"
Com3 "STMicroelectronics STLink Virtual COM Port"
GeneralRe: Convert C++ code, with calls to ATL, into C# to quickly get com ports and their friendly names? Pin
Gerry Schmitz5-Jun-18 7:51
mveGerry Schmitz5-Jun-18 7:51 
GeneralRe: Convert C++ code, with calls to ATL, into C# to quickly get com ports and their friendly names? Pin
arnold_w5-Jun-18 10:16
arnold_w5-Jun-18 10:16 
GeneralRe: Convert C++ code, with calls to ATL, into C# to quickly get com ports and their friendly names? Pin
Gerry Schmitz6-Jun-18 5:31
mveGerry Schmitz6-Jun-18 5:31 
AnswerRe: Convert C++ code, with calls to ATL, into C# to quickly get com ports and their friendly names? Pin
Jochen Arndt5-Jun-18 21:24
professionalJochen Arndt5-Jun-18 21:24 
GeneralRe: Convert C++ code, with calls to ATL, into C# to quickly get com ports and their friendly names? Pin
arnold_w6-Jun-18 0:39
arnold_w6-Jun-18 0:39 
QuestionIN DESPERATE NEED OF IDEAS FOR NEW PROJECTS IN C# .NET Pin
KFC MANAGER 694-Jun-18 6:25
KFC MANAGER 694-Jun-18 6:25 
AnswerRe: IN DESPERATE NEED OF IDEAS FOR NEW PROJECTS IN C# .NET Pin
OriginalGriff4-Jun-18 6:34
mveOriginalGriff4-Jun-18 6:34 
Answerre: in desperate need of ideas for new projects in c# .net Pin
BillWoodruff4-Jun-18 6:48
professionalBillWoodruff4-Jun-18 6:48 
AnswerRe: IN DESPERATE NEED OF IDEAS FOR NEW PROJECTS IN C# .NET Pin
Gerry Schmitz5-Jun-18 5:18
mveGerry Schmitz5-Jun-18 5:18 
AnswerRe: IN DESPERATE NEED OF IDEAS FOR NEW PROJECTS IN C# .NET Pin
#realJSOP6-Jun-18 3:32
mve#realJSOP6-Jun-18 3:32 
QuestionJSON problem with backslash through REST service Pin
Member 90507314-Jun-18 5:30
Member 90507314-Jun-18 5:30 
AnswerRe: JSON problem with backslash through REST service Pin
Richard Deeming4-Jun-18 5:53
mveRichard Deeming4-Jun-18 5:53 
Questionsend sms from c# windows application Pin
Mohamed Fahad M2-Jun-18 21:53
Mohamed Fahad M2-Jun-18 21:53 
AnswerRe: send sms from c# windows application Pin
OriginalGriff2-Jun-18 22:14
mveOriginalGriff2-Jun-18 22:14 
QuestionC sharp code for Objective and subjective CBT Exam Pin
Member 1293991431-May-18 0:39
Member 1293991431-May-18 0:39 
AnswerRe: C sharp code for Objective and subjective CBT Exam Pin
Richard MacCutchan31-May-18 0:47
mveRichard MacCutchan31-May-18 0:47 
AnswerRe: C sharp code for Objective and subjective CBT Exam Pin
OriginalGriff31-May-18 2:24
mveOriginalGriff31-May-18 2:24 

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.