Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
QuestionWhy do the GNU/Linux users recommend C#? Pin
X.Cyclop8-Jun-06 11:38
X.Cyclop8-Jun-06 11:38 
AnswerRe: Why do the GNU/Linux users recommend C#? Pin
Colin Angus Mackay8-Jun-06 12:20
Colin Angus Mackay8-Jun-06 12:20 
GeneralRe: Why do the GNU/Linux users recommend C#? Pin
X.Cyclop8-Jun-06 12:27
X.Cyclop8-Jun-06 12:27 
GeneralRe: Why do the GNU/Linux users recommend C#? Pin
Colin Angus Mackay8-Jun-06 12:33
Colin Angus Mackay8-Jun-06 12:33 
QuestionDatabind xml to a treeview Pin
eggie58-Jun-06 10:58
eggie58-Jun-06 10:58 
AnswerRe: Databind xml to a treeview Pin
Koushik Biswas9-Jun-06 7:19
Koushik Biswas9-Jun-06 7:19 
QuestionC# speed vs unmanaged C++ Pin
sjdevo3gsr8-Jun-06 10:58
sjdevo3gsr8-Jun-06 10:58 
AnswerRe: C# speed vs unmanaged C++ Pin
Stephan Samuel8-Jun-06 11:31
Stephan Samuel8-Jun-06 11:31 
sjdevo3gsr wrote:
1) Will calling an unmanaged C++ DLL function (derived from my old app) execute faster than the C# code? I'm thinking about DLL load overhead and similar.


Yes, in this case. Native pointer math is always faster for bitmaps, all other things being equal. If you're doing a lot of memory access and you're sure your not going to overrun any buffers or anything, unmanaged code can be blazingly faster for bitmap work. You may also have easier access to BitBlt and similar functions, which could save you a lot of math.

sjdevo3gsr wrote:
2) Is it possible to embed C++ code directly in the C# project? My books and VS help seem to hint at this, but I have yet to find an explicit answer.


You can put managed C++ classes in your C# project/solution. They're still managed, though. That may not necessarily be bad.

You can also but "unsafe" C# code inline in your C# files. That will allow you to use pointers. It's not going to be as fast as native Win32 C code, but it'll allow pointer math, which could save you time over ordinary C# code in this case.
AnswerRe: C# speed vs unmanaged C++ Pin
leppie8-Jun-06 20:42
leppie8-Jun-06 20:42 
AnswerRe: C# speed vs unmanaged C++ Pin
Robert Rohde8-Jun-06 20:55
Robert Rohde8-Jun-06 20:55 
GeneralRe: C# speed vs unmanaged C++ Pin
Guffa9-Jun-06 3:10
Guffa9-Jun-06 3:10 
QuestionDataGridView grid lines??? Pin
Small Rat8-Jun-06 10:47
Small Rat8-Jun-06 10:47 
AnswerRe: DataGridView grid lines??? Pin
Mairaaj Khan8-Jun-06 21:22
professionalMairaaj Khan8-Jun-06 21:22 
QuestionRegEx help Pin
econner8-Jun-06 9:02
econner8-Jun-06 9:02 
AnswerRe: RegEx help Pin
Dustin Metzgar8-Jun-06 9:06
Dustin Metzgar8-Jun-06 9:06 
GeneralRe: RegEx help Pin
econner8-Jun-06 9:11
econner8-Jun-06 9:11 
GeneralRe: RegEx help Pin
Le centriste8-Jun-06 9:24
Le centriste8-Jun-06 9:24 
GeneralRe: RegEx help Pin
Dustin Metzgar8-Jun-06 9:40
Dustin Metzgar8-Jun-06 9:40 
QuestionHow to get a list of active USB and Floppy-devices? Pin
Martin#8-Jun-06 8:58
Martin#8-Jun-06 8:58 
QuestionRemoving rows depending on date [modified] Pin
Yustme8-Jun-06 8:38
Yustme8-Jun-06 8:38 
AnswerRe: Removing rows depending on date [modified] Pin
Stephan Samuel8-Jun-06 9:50
Stephan Samuel8-Jun-06 9:50 
GeneralRe: Removing rows depending on date [modified] Pin
Yustme8-Jun-06 10:15
Yustme8-Jun-06 10:15 
GeneralRe: Removing rows depending on date [modified] Pin
Stephan Samuel8-Jun-06 10:57
Stephan Samuel8-Jun-06 10:57 
GeneralRe: Removing rows depending on date [modified] Pin
Yustme8-Jun-06 12:24
Yustme8-Jun-06 12:24 
AnswerRe: Removing rows depending on date [modified] Pin
Stephan Samuel8-Jun-06 13:09
Stephan Samuel8-Jun-06 13:09 

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.