Click here to Skip to main content
15,922,894 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Pointer Pin
Stephen Hewitt2-Mar-09 5:10
Stephen Hewitt2-Mar-09 5:10 
GeneralRe: Pointer Pin
dehseth2-Mar-09 7:30
dehseth2-Mar-09 7:30 
AnswerRe: Pointer Pin
Stuart Dootson2-Mar-09 7:13
professionalStuart Dootson2-Mar-09 7:13 
GeneralRe: Pointer Pin
dehseth2-Mar-09 7:31
dehseth2-Mar-09 7:31 
GeneralRe: Pointer Pin
Stuart Dootson2-Mar-09 8:07
professionalStuart Dootson2-Mar-09 8:07 
Questionhow to fill out fields in a third party program's GUI window Pin
Tanveer Ansari 12-Mar-09 3:17
Tanveer Ansari 12-Mar-09 3:17 
AnswerRe: how to fill out fields in a third party program's GUI window Pin
Perisic, Aleksandar2-Mar-09 6:02
Perisic, Aleksandar2-Mar-09 6:02 
Questionquestion about structured storages Pin
rkata2-Mar-09 2:38
rkata2-Mar-09 2:38 
Greetings to all.
At me a question on structured storages. I have one big file of the order 2 GBytes. I should be able read and write to it quickly. The number of such operations can reach some thousand. I have started to use it in hope that it will work quickly - before instead of one big file there were some tens thousand small ones. Unfortunately reading/writing with it works also slowly. And operations OpenStorage and OpenStream work slowly. Speed of work depends on the size of a file - for not so greater methods IStorage and IStream work fast. I assume, that have collided with restrictions of these objects (IStorage and IStream) and hardly it will be possible to overcome them. But there can be I am mistaken also somebody can prompt as to solve my problem. Or to specify existing equivalents IStorage and IStream which work quickly and them it is possible to use freely (better with an initial code). Below I shall set a brief example of that that I used:

1. Tried to open IStorage with different flags. Has noticed, that speed of work depends on it. Flags STGM_READWRITE, STGM_READ, STGM_WRITE;
2. Method Commit also brakes even if I do not use transacted mode;
3. Root storage I created so:
StgCreateDocfile (T2OLE (csPath), STGM_CREATE|STGM_READWRITE|STGM_DIRECT|STGM_SHARE_EXCLUSIVE, 0, *lpRootStorage);
StgOpenStorage (T2OLE (csPath), NULL, STGM_READWRITE|STGM_DIRECT|STGM_SHARE_EXCLUSIVE, 0,0, *lpStorage);

If at me a small storage file (the exact size I do not remember) methods of interfaces IStorage and IStream work very quickly, from 0 up to some milliseconds. If a file big the operating time can reach hundreds milliseconds.
AnswerRe: question about structured storages Pin
led mike2-Mar-09 4:10
led mike2-Mar-09 4:10 
QuestionError message Pin
vanishaa2-Mar-09 2:26
vanishaa2-Mar-09 2:26 
AnswerRe: Error message Pin
CPallini2-Mar-09 2:54
mveCPallini2-Mar-09 2:54 
AnswerRe: Error message Pin
David Crow2-Mar-09 3:06
David Crow2-Mar-09 3:06 
GeneralRe: Error message Pin
vanishaa2-Mar-09 3:13
vanishaa2-Mar-09 3:13 
GeneralRe: Error message Pin
David Crow2-Mar-09 3:16
David Crow2-Mar-09 3:16 
GeneralRe: Error message Pin
vanishaa2-Mar-09 3:28
vanishaa2-Mar-09 3:28 
GeneralRe: Error message Pin
David Crow2-Mar-09 3:31
David Crow2-Mar-09 3:31 
Questionparellel mutithread problem Pin
JackPuppy2-Mar-09 1:53
JackPuppy2-Mar-09 1:53 
AnswerRe: parellel mutithread problem Pin
Code-o-mat2-Mar-09 2:15
Code-o-mat2-Mar-09 2:15 
GeneralRe: parellel mutithread problem Pin
JackPuppy2-Mar-09 2:31
JackPuppy2-Mar-09 2:31 
GeneralRe: parellel mutithread problem Pin
Code-o-mat2-Mar-09 2:36
Code-o-mat2-Mar-09 2:36 
Questionhow to include a paneld inside the client area in SDI architect? Pin
Joseph Marzbani2-Mar-09 1:25
Joseph Marzbani2-Mar-09 1:25 
AnswerRe: how to include a paneld inside the client area in SDI architect? Pin
Stuart Dootson2-Mar-09 3:32
professionalStuart Dootson2-Mar-09 3:32 
GeneralRe: how to include a paneld inside the client area in SDI architect? Pin
Joseph Marzbani2-Mar-09 6:59
Joseph Marzbani2-Mar-09 6:59 
QuestionHow C++ read one digit each time from a sequence of digits? Pin
followait2-Mar-09 0:28
followait2-Mar-09 0:28 
AnswerRe: How C++ read one digit each time from a sequence of digits? Pin
_AnsHUMAN_ 2-Mar-09 0:37
_AnsHUMAN_ 2-Mar-09 0:37 

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.