Click here to Skip to main content
15,917,862 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: visual styles in vista Pin
bob1697212-Jun-08 17:18
bob1697212-Jun-08 17:18 
AnswerRe: visual styles in vista Pin
Jagdish V. Bhimbha12-Jun-08 19:34
Jagdish V. Bhimbha12-Jun-08 19:34 
GeneralRe: visual styles in vista Pin
locoone13-Jun-08 11:21
locoone13-Jun-08 11:21 
QuestionCould you send me Audio Compress code? Pin
doudou-shen12-Jun-08 15:17
doudou-shen12-Jun-08 15:17 
AnswerRe: Could you send me Audio Compress code? Pin
doudou-shen12-Jun-08 23:33
doudou-shen12-Jun-08 23:33 
QuestionHow to eliminate the Help Created by the Wizzard in MFC and enable your own HTML Hep Workshop file already created. Pin
Larry Mills Sr12-Jun-08 12:46
Larry Mills Sr12-Jun-08 12:46 
QuestionHow to copy CPU Electronic Serial Number during Installation of a program Pin
Larry Mills Sr12-Jun-08 12:30
Larry Mills Sr12-Jun-08 12:30 
AnswerRe: How to copy CPU Electronic Serial Number during Installation of a program Pin
Michael Schubert12-Jun-08 12:42
Michael Schubert12-Jun-08 12:42 
GeneralRe: How to copy CPU Electronic Serial Number during Installation of a program Pin
Larry Mills Sr12-Jun-08 12:48
Larry Mills Sr12-Jun-08 12:48 
QuestionRe: How to copy CPU Electronic Serial Number during Installation of a program Pin
Michael Schubert12-Jun-08 12:51
Michael Schubert12-Jun-08 12:51 
GeneralRe: How to copy CPU Electronic Serial Number during Installation of a program Pin
Nelek12-Jun-08 21:18
protectorNelek12-Jun-08 21:18 
GeneralRe: How to copy CPU Electronic Serial Number during Installation of a program Pin
Larry Mills Sr13-Jun-08 2:12
Larry Mills Sr13-Jun-08 2:12 
GeneralRe: How to copy CPU Electronic Serial Number during Installation of a program Pin
Nelek13-Jun-08 3:09
protectorNelek13-Jun-08 3:09 
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 

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.