Click here to Skip to main content
15,886,026 members
Home / Discussions / C#
   

C#

 
AnswerRe: Converting from C to C# Pin
jschell15-Oct-12 7:40
jschell15-Oct-12 7:40 
GeneralRe: Converting from C to C# Pin
AseelHadlaq15-Oct-12 8:30
AseelHadlaq15-Oct-12 8:30 
GeneralRe: Converting from C to C# Pin
jschell15-Oct-12 12:46
jschell15-Oct-12 12:46 
GeneralRe: Converting from C to C# Pin
AseelHadlaq16-Oct-12 5:38
AseelHadlaq16-Oct-12 5:38 
GeneralRe: Converting from C to C# Pin
jschell16-Oct-12 8:36
jschell16-Oct-12 8:36 
AnswerRe: Converting from C to C# Pin
Dave Doknjas15-Oct-12 9:41
Dave Doknjas15-Oct-12 9:41 
GeneralRe: Converting from C to C# Pin
AseelHadlaq16-Oct-12 5:43
AseelHadlaq16-Oct-12 5:43 
AnswerRe: Converting from C to C# Pin
DaveyM6915-Oct-12 11:30
professionalDaveyM6915-Oct-12 11:30 
Conversion isn't usually that difficult once you get underway.

Pointers are fairly straight forward.
In C# all classes are 'reference' types, meaning that a pointer (actually a copy of the pointer) is passed, not the value - so these are often directly interchangeable with C code when translating.
structs are 'value' types so the value is copied rather than the reference. This can be changed by using out or ref to retrieve or pass a pointer.

Only if there is pointer arithmetic involved or pointers to pointers do matters get more complicated. Much of the time, by carefull examination of the code and refactoring it into smaller sections, you will find you can get rid of the pointers altogether Smile | :)

Good luck, and if you get stuck with any individual parts feel free to post.
Dave

Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.
Astonish us. Be exceptional. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)



GeneralRe: Converting from C to C# Pin
AseelHadlaq16-Oct-12 5:45
AseelHadlaq16-Oct-12 5:45 
AnswerRe: Converting from C to C# Pin
Bernhard Hiller15-Oct-12 22:35
Bernhard Hiller15-Oct-12 22:35 
GeneralRe: Converting from C to C# Pin
AseelHadlaq16-Oct-12 5:49
AseelHadlaq16-Oct-12 5:49 
GeneralRe: Converting from C to C# Pin
Pete O'Hanlon16-Oct-12 6:21
mvePete O'Hanlon16-Oct-12 6:21 
QuestionDirectoryEntry Questions Pin
Erick Kinnee15-Oct-12 4:37
Erick Kinnee15-Oct-12 4:37 
QuestionRe: DirectoryEntry Questions Pin
Richard MacCutchan15-Oct-12 4:45
mveRichard MacCutchan15-Oct-12 4:45 
AnswerRe: DirectoryEntry Questions Pin
Erick Kinnee15-Oct-12 4:49
Erick Kinnee15-Oct-12 4:49 
GeneralRe: DirectoryEntry Questions Pin
Richard MacCutchan15-Oct-12 5:04
mveRichard MacCutchan15-Oct-12 5:04 
AnswerRe: DirectoryEntry Questions Pin
Eddy Vluggen15-Oct-12 5:04
professionalEddy Vluggen15-Oct-12 5:04 
QuestionMessageBox error Pin
Saridakis Manolis14-Oct-12 23:36
Saridakis Manolis14-Oct-12 23:36 
AnswerRe: MessageBox error Pin
Sivaraman Dhamodharan14-Oct-12 23:39
Sivaraman Dhamodharan14-Oct-12 23:39 
AnswerRe: MessageBox error Pin
Pete O'Hanlon15-Oct-12 0:21
mvePete O'Hanlon15-Oct-12 0:21 
AnswerRe: MessageBox error Pin
Eddy Vluggen15-Oct-12 0:43
professionalEddy Vluggen15-Oct-12 0:43 
QuestionUnhandledException Pin
Hamid_RT14-Oct-12 3:38
Hamid_RT14-Oct-12 3:38 
AnswerRe: UnhandledException Pin
OriginalGriff14-Oct-12 3:49
mveOriginalGriff14-Oct-12 3:49 
GeneralRe: UnhandledException Pin
Hamid_RT14-Oct-12 4:14
Hamid_RT14-Oct-12 4:14 
GeneralRe: UnhandledException Pin
OriginalGriff14-Oct-12 4:25
mveOriginalGriff14-Oct-12 4:25 

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.