Click here to Skip to main content
15,881,938 members
Home / Discussions / C#
   

C#

 
GeneralRe: Identify max no of child nodes for a node in XML Pin
saud_a_k3-Aug-04 2:31
saud_a_k3-Aug-04 2:31 
GeneralProblem accessing array of objects Pin
crushinghellhammer2-Aug-04 20:33
crushinghellhammer2-Aug-04 20:33 
GeneralRe: Problem accessing array of objects Pin
misterbear2-Aug-04 23:22
misterbear2-Aug-04 23:22 
GeneralRe: Problem accessing array of objects Pin
Stefan Troschuetz2-Aug-04 23:35
Stefan Troschuetz2-Aug-04 23:35 
QuestionIs there an MMC Snap-in Designer for .NET environment? Pin
zzzhouzhou2-Aug-04 18:34
zzzhouzhou2-Aug-04 18:34 
Generalprobability Pin
Member 7040992-Aug-04 17:39
Member 7040992-Aug-04 17:39 
GeneralRe: probability Pin
SOCM_FP_CPP3-Aug-04 1:28
SOCM_FP_CPP3-Aug-04 1:28 
QuestionC++ class defined in header file. Implementation in C# ? Pin
crushinghellhammer2-Aug-04 14:42
crushinghellhammer2-Aug-04 14:42 
I'm trying to port some old C++ code to C#.

I have a few classes that were defined in a ".h" file. Their constructors and member variables were defined in the corresponding .cpp file.

What is the best way to port this file to C#. More specifically:

1. I assume that the class, its constructor and methods are all defined together as follows:

class DSP
{
// constructor

// methods
}

Is this correct?

2. The original C++ listing in the .h file is as follows:

class DSP
{
public:
// public variables

protected:
//constructor
// destructor
// private variables

void SomeMethod()
};

These public variables need to be properties that can be assigned to. Therefore in the C# implementation, do I need to define these fields with "get" and "set" properties?

I know these are very elementary questions, but I haven't ported any C++ code over to C# before, and I appreciate your help!
AnswerRe: C++ class defined in header file. Implementation in C# ? Pin
Christian Graus2-Aug-04 14:56
protectorChristian Graus2-Aug-04 14:56 
GeneralData Grid problem Pin
Anonymous2-Aug-04 13:33
Anonymous2-Aug-04 13:33 
QuestionMoved code breaks? Pin
Chris Korzeniowski2-Aug-04 13:09
Chris Korzeniowski2-Aug-04 13:09 
AnswerRe: Moved code breaks? Pin
Jay Shankar2-Aug-04 19:00
Jay Shankar2-Aug-04 19:00 
AnswerRe: Moved code breaks? Pin
sreejith ss nair2-Aug-04 19:22
sreejith ss nair2-Aug-04 19:22 
GeneralRe: Moved code breaks? Pin
Jay Shankar2-Aug-04 22:41
Jay Shankar2-Aug-04 22:41 
Questioncan't define a static method in an interface....? Pin
Jan R Hansen2-Aug-04 11:53
Jan R Hansen2-Aug-04 11:53 
QuestionDirect X 9 ID3 tags ? Pin
Christian Graus2-Aug-04 11:09
protectorChristian Graus2-Aug-04 11:09 
AnswerRe: Direct X 9 ID3 tags ? Pin
leppie2-Aug-04 19:39
leppie2-Aug-04 19:39 
GeneralRe: Direct X 9 ID3 tags ? Pin
Christian Graus3-Aug-04 10:48
protectorChristian Graus3-Aug-04 10:48 
GeneralRe: Direct X 9 ID3 tags ? Pin
Christian Graus3-Aug-04 13:39
protectorChristian Graus3-Aug-04 13:39 
GeneralRe: Direct X 9 ID3 tags ? Pin
leppie3-Aug-04 19:11
leppie3-Aug-04 19:11 
GeneralRe: Direct X 9 ID3 tags ? Pin
Christian Graus4-Aug-04 10:54
protectorChristian Graus4-Aug-04 10:54 
GeneralRe: Direct X 9 ID3 tags ? Pin
leppie3-Aug-04 19:12
leppie3-Aug-04 19:12 
GeneralAlignment of listview Pin
Christian Graus2-Aug-04 10:56
protectorChristian Graus2-Aug-04 10:56 
GeneralRe: Alignment of listview Pin
beowulfagate2-Aug-04 13:59
beowulfagate2-Aug-04 13:59 
GeneralMulti-Column What Pin
Peter86753092-Aug-04 7:41
Peter86753092-Aug-04 7:41 

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.