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

C#

 
QuestionC# COM dll with same name and same location to work for two projects/modules Pin
Member 117321396-Jun-18 21:31
Member 117321396-Jun-18 21:31 
QuestionRe: C# COM dll with same name and same location to work for two projects/modules Pin
Richard MacCutchan6-Jun-18 21:53
mveRichard MacCutchan6-Jun-18 21:53 
AnswerRe: C# COM dll with same name and same location to work for two projects/modules Pin
Member 117321396-Jun-18 22:57
Member 117321396-Jun-18 22:57 
GeneralRe: C# COM dll with same name and same location to work for two projects/modules Pin
Richard MacCutchan6-Jun-18 23:05
mveRichard MacCutchan6-Jun-18 23:05 
GeneralRe: C# COM dll with same name and same location to work for two projects/modules Pin
OriginalGriff6-Jun-18 23:19
mveOriginalGriff6-Jun-18 23:19 
Questioncant send file bigger that 1 megabit ( Server_client ) *(Thanks For helping fixed) Pin
Hussein Tb6-Jun-18 3:20
Hussein Tb6-Jun-18 3:20 
SuggestionRe: cant send file bigger that 1 megabit ( Server_client ) Pin
Richard MacCutchan6-Jun-18 3:56
mveRichard MacCutchan6-Jun-18 3:56 
AnswerRe: cant send file bigger that 1 megabit ( Server_client ) Pin
Gerry Schmitz6-Jun-18 7:08
mveGerry Schmitz6-Jun-18 7:08 
QuestionRe: cant send file bigger that 1 megabit ( Server_client ) Pin
Eddy Vluggen6-Jun-18 11:21
professionalEddy Vluggen6-Jun-18 11:21 
AnswerRe: cant send file bigger that 1 megabit ( Server_client ) Pin
Hussein Tb6-Jun-18 18:44
Hussein Tb6-Jun-18 18:44 
GeneralRe: cant send file bigger that 1 megabit ( Server_client ) Pin
Hussein Tb6-Jun-18 18:55
Hussein Tb6-Jun-18 18:55 
QuestionRe: cant send file bigger that 1 megabit ( Server_client ) Pin
Eddy Vluggen6-Jun-18 11:20
professionalEddy Vluggen6-Jun-18 11:20 
AnswerRe: cant send file bigger that 1 megabit ( Server_client ) Pin
Hussein Tb6-Jun-18 18:48
Hussein Tb6-Jun-18 18:48 
GeneralRe: cant send file bigger that 1 megabit ( Server_client ) Pin
Peter_in_27806-Jun-18 20:33
professionalPeter_in_27806-Jun-18 20:33 
Questionhow to calculate in c# Pin
denis.larocque5-Jun-18 17:31
denis.larocque5-Jun-18 17:31 
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 

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.