Click here to Skip to main content
15,895,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: InternetOpenUrl - urgent help needed Pin
YaronNir10-Jan-10 20:20
YaronNir10-Jan-10 20:20 
GeneralRe: InternetOpenUrl - urgent help needed Pin
Bram van Kampen11-Jan-10 16:28
Bram van Kampen11-Jan-10 16:28 
GeneralRe: InternetOpenUrl - urgent help needed Pin
YaronNir11-Jan-10 20:49
YaronNir11-Jan-10 20:49 
AnswerRe: InternetOpenUrl - urgent help needed Pin
Richard MacCutchan11-Jan-10 1:53
mveRichard MacCutchan11-Jan-10 1:53 
GeneralRe: InternetOpenUrl - urgent help needed Pin
YaronNir11-Jan-10 1:55
YaronNir11-Jan-10 1:55 
GeneralRe: InternetOpenUrl - urgent help needed Pin
Richard MacCutchan11-Jan-10 3:15
mveRichard MacCutchan11-Jan-10 3:15 
GeneralRe: InternetOpenUrl - urgent help needed Pin
YaronNir11-Jan-10 3:19
YaronNir11-Jan-10 3:19 
GeneralRe: InternetOpenUrl - urgent help needed Pin
Richard MacCutchan11-Jan-10 4:09
mveRichard MacCutchan11-Jan-10 4:09 
First thing is to run some tests with different buffer sizes to see how that affects performance, 2048 was just a number plucked from the air.

Looking at your code I notice that you use ZeroMemory on the input buffer just before reading data into it; this is wasteful and serves no purpose, just allocate it with the new call.

Alternatively you could allocate your buffer at the beginning of the program, either via new or as a static data area. This would save repeated new delete[] pairs, and the consequent garbage collection code.

There may be other issues in the rest of your code, but I leave that for you to investigate.
GeneralRe: InternetOpenUrl - urgent help needed Pin
YaronNir11-Jan-10 4:32
YaronNir11-Jan-10 4:32 
QuestionUsing Crystal Report in VC++ (VS 2008). Pin
lsubash64@gmail.com10-Jan-10 18:42
lsubash64@gmail.com10-Jan-10 18:42 
QuestionMulti-line string into dialog box Pin
itkid10-Jan-10 18:31
itkid10-Jan-10 18:31 
AnswerRe: Multi-line string into dialog box Pin
KingsGambit10-Jan-10 18:38
KingsGambit10-Jan-10 18:38 
AnswerRe: Multi-line string into dialog box Pin
David Crow11-Jan-10 5:31
David Crow11-Jan-10 5:31 
QuestionDeskband/Tray App using MFC (+ $700) Pin
d1557710-Jan-10 16:55
d1557710-Jan-10 16:55 
AnswerRe: Deskband/Tray App using MFC (+ $700) Pin
«_Superman_»10-Jan-10 19:22
professional«_Superman_»10-Jan-10 19:22 
QuestionHow to write C or C++ program that locks desktop icons placement? Pin
rain-1310-Jan-10 9:55
rain-1310-Jan-10 9:55 
AnswerRe: How to write C or C++ program that locks desktop icons placement? [modified] Pin
A*****10-Jan-10 15:09
A*****10-Jan-10 15:09 
GeneralRe: How to write C or C++ program that locks desktop icons placement? Pin
A*****10-Jan-10 19:36
A*****10-Jan-10 19:36 
GeneralRe: How to write C or C++ program that locks desktop icons placement? Pin
rain-1311-Jan-10 3:00
rain-1311-Jan-10 3:00 
GeneralRe: How to write C or C++ program that locks desktop icons placement? Pin
A*****11-Jan-10 13:42
A*****11-Jan-10 13:42 
AnswerRe: How to write C or C++ program that locks desktop icons placement? Pin
Rolf Kristensen13-Jan-10 11:53
Rolf Kristensen13-Jan-10 11:53 
QuestionCatch drag'n'drop event Pin
tibiz10-Jan-10 8:19
tibiz10-Jan-10 8:19 
AnswerRe: Catch drag'n'drop event Pin
«_Superman_»10-Jan-10 15:44
professional«_Superman_»10-Jan-10 15:44 
GeneralRe: Catch drag'n'drop event Pin
tibiz11-Jan-10 11:40
tibiz11-Jan-10 11:40 
Question2 static libs with a function of the same name Pin
Chesnokov Yuriy10-Jan-10 1:46
professionalChesnokov Yuriy10-Jan-10 1:46 

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.