Click here to Skip to main content
15,888,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionBest way to open a HTML file from an URL Pin
Joschwenk66631-May-10 6:34
Joschwenk66631-May-10 6:34 
QuestionRe: Best way to open a HTML file from an URL Pin
David Crow31-May-10 7:13
David Crow31-May-10 7:13 
AnswerRe: Best way to open a HTML file from an URL Pin
Aescleal31-May-10 10:10
Aescleal31-May-10 10:10 
QuestionThe I/O Question of the network file or share file Pin
WanLiJun31-May-10 3:01
WanLiJun31-May-10 3:01 
AnswerRe: The I/O Question of the network file or share file Pin
KarstenK31-May-10 3:51
mveKarstenK31-May-10 3:51 
JokeRe: The I/O Question of the network file or share file Pin
Code-o-mat31-May-10 4:24
Code-o-mat31-May-10 4:24 
JokeRe: The I/O Question of the network file or share file Pin
KarstenK31-May-10 4:36
mveKarstenK31-May-10 4:36 
AnswerRe: The I/O Question of the network file or share file Pin
Aescleal31-May-10 9:59
Aescleal31-May-10 9:59 
When you create a file over the network there's loads of things that can go wrong - the OS has got to wait a while to see if the remote system responds before failing.

There's probably not a lot you can do to speed things up, but there's a couple of tricks that can work.

First one is to do the opening assynchronously. Spin off a thread and use a future to signal when the file's open. If you can reorder your logic a bit so you start opening the file, process what you can in memory then write to the file when it's open you might be able to make it look like the file open opened quicker.

The second one only works if you know you're going to want to open the file well in advance of needing to use it. Just open the file as one of the first things your program does. When you need the file just open it again. This uses the fact that most OS filesystems are better at reopening already open files as it just needs to duplicate the file handle. Of course if you don't know what the file is well in advance this is absolutely no use to you whatsoever.

Cheers,

Ash
Questionlibmms and ffmpeg Pin
rastaVnuce31-May-10 2:52
rastaVnuce31-May-10 2:52 
QuestionDLL Pin
john563231-May-10 0:03
john563231-May-10 0:03 
AnswerRe: DLL Pin
Cedric Moonen31-May-10 0:14
Cedric Moonen31-May-10 0:14 
GeneralRe: DLL Pin
john563231-May-10 0:39
john563231-May-10 0:39 
GeneralRe: DLL Pin
ThatsAlok31-May-10 1:47
ThatsAlok31-May-10 1:47 
AnswerRe: DLL Pin
ThatsAlok31-May-10 1:13
ThatsAlok31-May-10 1:13 
GeneralRe: DLL Pin
john563231-May-10 2:29
john563231-May-10 2:29 
AnswerRe: DLL Pin
Aescleal31-May-10 9:49
Aescleal31-May-10 9:49 
Questionencrypt: how to save key to key store Pin
lcryby30-May-10 22:01
lcryby30-May-10 22:01 
QuestionCStaic Problem Pin
john563230-May-10 21:14
john563230-May-10 21:14 
AnswerRe: CStaic Problem Pin
Code-o-mat30-May-10 21:25
Code-o-mat30-May-10 21:25 
AnswerRe: CStaic Problem Pin
ThatsAlok30-May-10 21:27
ThatsAlok30-May-10 21:27 
QuestionGetFont() returning Null [modified] Pin
decoder_8530-May-10 19:26
decoder_8530-May-10 19:26 
AnswerRe: GetFont() returning Null Pin
ThatsAlok30-May-10 20:47
ThatsAlok30-May-10 20:47 
GeneralRe: GetFont() returning Null Pin
decoder_8530-May-10 23:36
decoder_8530-May-10 23:36 
GeneralRe: GetFont() returning Null Pin
KarstenK31-May-10 3:53
mveKarstenK31-May-10 3:53 
AnswerRe: GetFont() returning Null Pin
Code-o-mat30-May-10 21:32
Code-o-mat30-May-10 21:32 

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.