Click here to Skip to main content
15,902,938 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to copy CPU Electronic Serial Number during Installation of a program Pin
Larry Mills Sr14-Jun-08 2:08
Larry Mills Sr14-Jun-08 2:08 
GeneralRe: How to copy CPU Electronic Serial Number during Installation of a program Pin
Nelek15-Jun-08 22:28
protectorNelek15-Jun-08 22:28 
QuestionIs C# a JOKE? [modified] Pin
bigchump12-Jun-08 11:06
bigchump12-Jun-08 11:06 
AnswerRe: Is C# a JOKE? Pin
Baltoro12-Jun-08 13:01
Baltoro12-Jun-08 13:01 
GeneralRe: Is C# a JOKE? Pin
bigchump12-Jun-08 13:12
bigchump12-Jun-08 13:12 
GeneralSearched at MSDN Pin
Baltoro12-Jun-08 13:38
Baltoro12-Jun-08 13:38 
GeneralRe: Is C# a JOKE? Pin
Simon P Stevens12-Jun-08 22:28
Simon P Stevens12-Jun-08 22:28 
AnswerRe: Is C# a JOKE? Pin
Alan Balkany13-Jun-08 4:57
Alan Balkany13-Jun-08 4:57 
C# is generally slower than C++ but there are techniques for speeding it up. For example,

1. C# does safety checks that you can skip by running sections in unsafe mode. For example if you're doing an operation on every element of an array, C# will check the array bounds on EVERY array access unless you do it in unsafe mode.

2. When you combine value items and reference items, C# will do "boxing" to convert the value item to a reference item, which is very slow. Avoid this.

3. You can speed up a critical section of your C# by writing a C++ DLL to do it, and calling it from C#.

4. XML serialization in C# is easy, but the SOAP format is insane. It's many times larger than it has to be, and the XML generated is unintelligible. Using a custom format that writes out just the data you need will be faster and more compact.

5. If you're processing bitmaps, look at LockBits to get the bitmap data to work on, which is faster than getpixel/setpixel.
GeneralRe: Is C# a JOKE? Pin
bigchump13-Jun-08 6:11
bigchump13-Jun-08 6:11 
GeneralRe: Is C# a JOKE? Pin
Alan Balkany13-Jun-08 6:25
Alan Balkany13-Jun-08 6:25 
GeneralRe: Is C# a JOKE? Pin
bigchump13-Jun-08 9:19
bigchump13-Jun-08 9:19 
GeneralRe: Is C# a JOKE? Pin
Alan Balkany13-Jun-08 11:22
Alan Balkany13-Jun-08 11:22 
QuestionReadDirectoryChangesW Problem~~~ Pin
york52812-Jun-08 8:13
york52812-Jun-08 8:13 
AnswerRe: ReadDirectoryChangesW Problem~~~ Pin
Nibu babu thomas12-Jun-08 17:26
Nibu babu thomas12-Jun-08 17:26 
GeneralRe: ReadDirectoryChangesW Problem~~~ Pin
york52812-Jun-08 18:30
york52812-Jun-08 18:30 
GeneralRe: ReadDirectoryChangesW Problem~~~ Pin
york52812-Jun-08 19:18
york52812-Jun-08 19:18 
GeneralRe: ReadDirectoryChangesW Problem~~~ Pin
Nibu babu thomas12-Jun-08 19:39
Nibu babu thomas12-Jun-08 19:39 
GeneralRe: ReadDirectoryChangesW Problem~~~ Pin
york52812-Jun-08 20:18
york52812-Jun-08 20:18 
GeneralRe: ReadDirectoryChangesW Problem~~~ Pin
Nibu babu thomas12-Jun-08 20:23
Nibu babu thomas12-Jun-08 20:23 
GeneralRe: ReadDirectoryChangesW Problem~~~ Pin
york52812-Jun-08 20:31
york52812-Jun-08 20:31 
QuestionMDI Application with more than one child? Pin
CrocodileBuck12-Jun-08 5:31
CrocodileBuck12-Jun-08 5:31 
AnswerRe: MDI Application with more than one child? Pin
Nelek12-Jun-08 5:46
protectorNelek12-Jun-08 5:46 
GeneralRe: MDI Application with more than one child? Pin
CrocodileBuck12-Jun-08 6:55
CrocodileBuck12-Jun-08 6:55 
GeneralRe: MDI Application with more than one child? Pin
JudyL_MD12-Jun-08 7:52
JudyL_MD12-Jun-08 7:52 
GeneralAccessing the Taskbar [Notification Area] Pin
Jach Mullan12-Jun-08 17:28
Jach Mullan12-Jun-08 17:28 

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.