Click here to Skip to main content
15,905,325 members
Home / Discussions / C#
   

C#

 
AnswerRe: (c#) if (label1.Text < label2.Text); ??? Pin
Richard MacCutchan7-Feb-16 6:20
mveRichard MacCutchan7-Feb-16 6:20 
Questiontableadapter updating! Pin
Isawyouoo6-Feb-16 14:42
Isawyouoo6-Feb-16 14:42 
AnswerRe: tableadapter updating! Pin
Dave Kreskowiak6-Feb-16 16:40
mveDave Kreskowiak6-Feb-16 16:40 
GeneralRe: tableadapter updating! Pin
Isawyouoo8-Feb-16 11:33
Isawyouoo8-Feb-16 11:33 
GeneralRe: tableadapter updating! Pin
Dave Kreskowiak8-Feb-16 16:41
mveDave Kreskowiak8-Feb-16 16:41 
Questionhow can i get this to work in c# Pin
elfenliedtopfan56-Feb-16 13:52
elfenliedtopfan56-Feb-16 13:52 
AnswerRe: how can i get this to work in c# Pin
Dave Kreskowiak6-Feb-16 16:39
mveDave Kreskowiak6-Feb-16 16:39 
AnswerRe: how can i get this to work in c# Pin
BillWoodruff7-Feb-16 2:50
professionalBillWoodruff7-Feb-16 2:50 
You can try using the free C++ to C# converter here: [^], but I think the "translation" will only be useful to give you ideas about what the C++ code is doing, and how specific syntaxes map from C++ to C#. And, the output is likely to need considerable "massage."

Until you understand the purpose and usage of the code, you are dancing in the dark.

What I can say about the structure of the code, speaking as a "C/C++ non-native speaker", from a quick glance: ... of course you'll have a NameSpace ....

a. you have an Interface 'IBaseWeapon ... the on-line converter would convert that to an abstract class.

b. you will have (not static) classes, WeaponsMng, Ak47, Kap40

b.1. Ak47 and Kap40 will inherit from 'IBaseWeapon

b.2. WeaponsMng keeps a List of IBaseWeapon

c. you will have some static methods which should be put in a static class
«In art as in science there is no delight without the detail ... Let me repeat that unless these are thoroughly understood and remembered, all “general ideas” (so easily acquired, so profitably resold) must necessarily remain but worn passports allowing their bearers short cuts from one area of ignorance to another.» Vladimir Nabokov, commentary on translation of “Eugene Onegin.”

GeneralRe: how can i get this to work in c# Pin
Member 117127539-Feb-16 5:36
Member 117127539-Feb-16 5:36 
AnswerRe: how can i get this to work in c# Pin
Gerry Schmitz8-Feb-16 6:16
mveGerry Schmitz8-Feb-16 6:16 
QuestionHow To Start Process On Remote Machine which is tied to Particular service using C#.net WMI Pin
Tej_dev5-Feb-16 10:04
Tej_dev5-Feb-16 10:04 
AnswerRe: How To Start Process On Remote Machine which is tied to Particular service using C#.net WMI Pin
Dave Kreskowiak5-Feb-16 11:39
mveDave Kreskowiak5-Feb-16 11:39 
GeneralRe: How To Start Process On Remote Machine which is tied to Particular service using C#.net WMI Pin
Tej_dev8-Feb-16 5:10
Tej_dev8-Feb-16 5:10 
GeneralRe: How To Start Process On Remote Machine which is tied to Particular service using C#.net WMI Pin
Dave Kreskowiak8-Feb-16 8:50
mveDave Kreskowiak8-Feb-16 8:50 
GeneralRe: How To Start Process On Remote Machine which is tied to Particular service using C#.net WMI Pin
Tej_dev8-Feb-16 10:16
Tej_dev8-Feb-16 10:16 
QuestionDoes this ensure function1 and function2 use my class in thread safe way? Pin
Member 120616005-Feb-16 0:15
Member 120616005-Feb-16 0:15 
AnswerRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Eddy Vluggen5-Feb-16 7:16
professionalEddy Vluggen5-Feb-16 7:16 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Member 120616005-Feb-16 7:43
Member 120616005-Feb-16 7:43 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Eddy Vluggen5-Feb-16 9:44
professionalEddy Vluggen5-Feb-16 9:44 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Member 120616005-Feb-16 10:12
Member 120616005-Feb-16 10:12 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Eddy Vluggen5-Feb-16 11:16
professionalEddy Vluggen5-Feb-16 11:16 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Member 120616005-Feb-16 11:27
Member 120616005-Feb-16 11:27 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Eddy Vluggen5-Feb-16 23:05
professionalEddy Vluggen5-Feb-16 23:05 
QuestionRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Gerry Schmitz5-Feb-16 12:50
mveGerry Schmitz5-Feb-16 12:50 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
PIEBALDconsult5-Feb-16 15:00
mvePIEBALDconsult5-Feb-16 15: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.