Click here to Skip to main content
12,630,847 members (31,609 online)
   

C#

 
AnswerRe: Converting from C to C# Pin
jschell15-Oct-12 8:40
memberjschell15-Oct-12 8:40 
GeneralRe: Converting from C to C# Pin
AseelHadlaq15-Oct-12 9:30
memberAseelHadlaq15-Oct-12 9:30 
GeneralRe: Converting from C to C# Pin
jschell15-Oct-12 13:46
memberjschell15-Oct-12 13:46 
GeneralRe: Converting from C to C# Pin
AseelHadlaq16-Oct-12 6:38
memberAseelHadlaq16-Oct-12 6:38 
GeneralRe: Converting from C to C# Pin
jschell16-Oct-12 9:36
memberjschell16-Oct-12 9:36 
AnswerRe: Converting from C to C# Pin
Dave Doknjas15-Oct-12 10:41
memberDave Doknjas15-Oct-12 10:41 
GeneralRe: Converting from C to C# Pin
AseelHadlaq16-Oct-12 6:43
memberAseelHadlaq16-Oct-12 6:43 
AnswerRe: Converting from C to C# Pin
DaveyM6915-Oct-12 12:30
mentorDaveyM6915-Oct-12 12: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 6:45
memberAseelHadlaq16-Oct-12 6:45 
AnswerRe: Converting from C to C# Pin
Bernhard Hiller15-Oct-12 23:35
memberBernhard Hiller15-Oct-12 23:35 
GeneralRe: Converting from C to C# Pin
AseelHadlaq16-Oct-12 6:49
memberAseelHadlaq16-Oct-12 6:49 
GeneralRe: Converting from C to C# Pin
Pete O'Hanlon16-Oct-12 7:21
protectorPete O'Hanlon16-Oct-12 7:21 
QuestionDirectoryEntry Questions Pin
Erick Kinnee15-Oct-12 5:37
memberErick Kinnee15-Oct-12 5:37 
QuestionRe: DirectoryEntry Questions Pin
Richard MacCutchan15-Oct-12 5:45
mvpRichard MacCutchan15-Oct-12 5:45 
AnswerRe: DirectoryEntry Questions Pin
Erick Kinnee15-Oct-12 5:49
memberErick Kinnee15-Oct-12 5:49 
GeneralRe: DirectoryEntry Questions Pin
Richard MacCutchan15-Oct-12 6:04
mvpRichard MacCutchan15-Oct-12 6:04 
AnswerRe: DirectoryEntry Questions Pin
Eddy Vluggen15-Oct-12 6:04
memberEddy Vluggen15-Oct-12 6:04 
QuestionMessageBox error Pin
Saridakis Manolis15-Oct-12 0:36
memberSaridakis Manolis15-Oct-12 0:36 
AnswerRe: MessageBox error Pin
sirama200415-Oct-12 0:39
membersirama200415-Oct-12 0:39 
AnswerRe: MessageBox error Pin
Pete O'Hanlon15-Oct-12 1:21
protectorPete O'Hanlon15-Oct-12 1:21 
AnswerRe: MessageBox error Pin
Eddy Vluggen15-Oct-12 1:43
memberEddy Vluggen15-Oct-12 1:43 
QuestionUnhandledException Pin
Hamid.14-Oct-12 4:38
memberHamid.14-Oct-12 4:38 
AnswerRe: UnhandledException Pin
OriginalGriff14-Oct-12 4:49
mvpOriginalGriff14-Oct-12 4:49 
GeneralRe: UnhandledException Pin
Hamid.14-Oct-12 5:14
memberHamid.14-Oct-12 5:14 
GeneralRe: UnhandledException Pin
OriginalGriff14-Oct-12 5:25
mvpOriginalGriff14-Oct-12 5: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.


Advertise | Privacy | Mobile
Web01 | 2.8.161205.3 | Last Updated 8 Dec 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid