Click here to Skip to main content
15,918,742 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: StreamWriter - How can I write as a .CSV file ? Pin
Mark Salsbery1-Mar-09 12:56
Mark Salsbery1-Mar-09 12:56 
General[Message Deleted] Pin
J_E_D_I2-Mar-09 2:43
J_E_D_I2-Mar-09 2:43 
GeneralRe: StreamWriter - How can I write as a .CSV file ? Pin
Luc Pattyn2-Mar-09 3:55
sitebuilderLuc Pattyn2-Mar-09 3:55 
GeneralRe: StreamWriter - How can I write as a .CSV file ? Pin
Luc Pattyn2-Mar-09 4:33
sitebuilderLuc Pattyn2-Mar-09 4:33 
GeneralRe: StreamWriter - How can I write as a .CSV file ? Pin
J_E_D_I2-Mar-09 5:10
J_E_D_I2-Mar-09 5:10 
GeneralRe: StreamWriter - How can I write as a .CSV file ? Pin
J_E_D_I2-Mar-09 5:16
J_E_D_I2-Mar-09 5:16 
GeneralRe: StreamWriter - How can I write as a .CSV file ? Pin
Luc Pattyn2-Mar-09 5:19
sitebuilderLuc Pattyn2-Mar-09 5:19 
AnswerRe: StreamWriter - How can I write as a .CSV file ? Pin
N a v a n e e t h1-Mar-09 14:03
N a v a n e e t h1-Mar-09 14:03 
GeneralNewLine Pin
J_E_D_I2-Mar-09 5:26
J_E_D_I2-Mar-09 5:26 
AnswerRe: StreamWriter - How can I write as a .CSV file ? Pin
Jens.Bonnermann6-Mar-09 7:01
Jens.Bonnermann6-Mar-09 7:01 
AnswerRe: StreamWriter - How can I write as a .CSV file ? Pin
Jens.Bonnermann6-Mar-09 7:02
Jens.Bonnermann6-Mar-09 7:02 
QuestionConverting System.Drawing.Image to a DirectDrawSurface Pin
bfoo7527-Feb-09 13:04
bfoo7527-Feb-09 13:04 
AnswerRe: Converting System.Drawing.Image to a DirectDrawSurface Pin
bfoo7528-Feb-09 13:57
bfoo7528-Feb-09 13:57 
QuestionReading the registry once and storing the values Pin
naveen_bij27-Feb-09 10:04
naveen_bij27-Feb-09 10:04 
QuestionRe: Reading the registry once and storing the values Pin
Mark Salsbery28-Feb-09 7:45
Mark Salsbery28-Feb-09 7:45 
AnswerRe: Reading the registry once and storing the values Pin
naveen_bij28-Feb-09 22:57
naveen_bij28-Feb-09 22:57 
GeneralRe: Reading the registry once and storing the values Pin
N a v a n e e t h1-Mar-09 13:27
N a v a n e e t h1-Mar-09 13:27 
GeneralRe: Reading the registry once and storing the values Pin
naveen_bij1-Mar-09 17:40
naveen_bij1-Mar-09 17:40 
GeneralRe: Reading the registry once and storing the values Pin
N a v a n e e t h1-Mar-09 20:59
N a v a n e e t h1-Mar-09 20:59 
GeneralRe: Reading the registry once and storing the values Pin
naveen_bij1-Mar-09 21:30
naveen_bij1-Mar-09 21:30 
GeneralRe: Reading the registry once and storing the values Pin
N a v a n e e t h1-Mar-09 21:57
N a v a n e e t h1-Mar-09 21:57 
GeneralRe: Reading the registry once and storing the values Pin
naveen_bij1-Mar-09 22:17
naveen_bij1-Mar-09 22:17 
QuestionAfter CLR conversion debugging is slow. Pin
KASR126-Feb-09 17:25
KASR126-Feb-09 17:25 
AnswerRe: After CLR conversion debugging is slow. Pin
Mark Salsbery27-Feb-09 6:24
Mark Salsbery27-Feb-09 6:24 
AnswerRe: After CLR conversion debugging is slow. Pin
Luc Pattyn27-Feb-09 7:02
sitebuilderLuc Pattyn27-Feb-09 7:02 
Hi,

some simple manual code optimization may (or may not) solve such problems. Here is a typical example (using C# syntax):
Bitmap bm=new Bitmap(otherBitmap);
for (int x=0; x< bm.Width; x++) {
    for (int y=0; y< bm.Height; y++) {
        // do something with or to pixel(x,y)
    }
}


in debug mode bm.Height will be evaluated for each and every pixel, possibly costing more CPU cycles than the actual pixel operation. Replace the above by:

Bitmap bm=new Bitmap(otherBitmap);
int height=bm.Height;
for (int x=0; x< bm.Width; x++) {
    for (int y=0; y< height; y++) {
        // do something with or to pixel(x,y)
    }
}


and it will run much faster in debug.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


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.