Click here to Skip to main content
16,011,436 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: help needed Pin
Prakash Nadar3-Feb-06 2:47
Prakash Nadar3-Feb-06 2:47 
QuestionF1 should launch the help of my dialog app Pin
rampaul3-Feb-06 1:02
rampaul3-Feb-06 1:02 
AnswerRe: F1 should launch the help of my dialog app Pin
Aryan S3-Feb-06 1:20
Aryan S3-Feb-06 1:20 
General[OT] Pin
toxcct3-Feb-06 2:34
toxcct3-Feb-06 2:34 
GeneralRe: [OT] Pin
Prakash Nadar3-Feb-06 2:46
Prakash Nadar3-Feb-06 2:46 
Questionallocating disk space Pin
sundar_mca3-Feb-06 0:38
sundar_mca3-Feb-06 0:38 
AnswerRe: allocating disk space Pin
Axonn Echysttas3-Feb-06 0:53
Axonn Echysttas3-Feb-06 0:53 
AnswerRe: allocating disk space Pin
John R. Shaw3-Feb-06 1:15
John R. Shaw3-Feb-06 1:15 
I do not know if that is possible, directly.

Here is a way that you may be able to do it:
1) create a file that takes up the required space. This file contains no valid data, it is just a place holder. The idea here is just to insure that you have at least that much disk space to work with.
2) When you need to add another file to the directory, calculate how many bytes of data it will require. Then reduce the size of the place holder by that many bytes, before you save the new file. I recommend that durring testing, that you verify that the number of bytes you calculated matches the actual number of bytes required.

That should do the trick, but there are many other things you should consider provided that the number of bytes required might excceed what you think they will.

INTP
Every thing is relative...
GeneralRe: allocating disk space Pin
sundar_mca3-Feb-06 1:19
sundar_mca3-Feb-06 1:19 
GeneralRe: allocating disk space Pin
John R. Shaw3-Feb-06 2:20
John R. Shaw3-Feb-06 2:20 
QuestionRe: allocating disk space Pin
sundar_mca3-Feb-06 17:19
sundar_mca3-Feb-06 17:19 
GeneralRe: allocating disk space Pin
sundar_mca3-Feb-06 17:29
sundar_mca3-Feb-06 17:29 
AnswerRe: allocating disk space Pin
David Crow3-Feb-06 3:22
David Crow3-Feb-06 3:22 
Questionproblem with a mesasge box Pin
Castello073-Feb-06 0:09
Castello073-Feb-06 0:09 
AnswerRe: problem with a mesasge box Pin
Aryan S3-Feb-06 0:53
Aryan S3-Feb-06 0:53 
AnswerRe: problem with a mesasge box Pin
John R. Shaw3-Feb-06 1:39
John R. Shaw3-Feb-06 1:39 
GeneralRe: problem with a mesasge box Pin
Castello073-Feb-06 2:22
Castello073-Feb-06 2:22 
GeneralRe: problem with a mesasge box Pin
John R. Shaw3-Feb-06 2:52
John R. Shaw3-Feb-06 2:52 
GeneralRe: problem with a mesasge box Pin
Castello073-Feb-06 3:17
Castello073-Feb-06 3:17 
AnswerRe: problem with a mesasge box Pin
Iain Clarke, Warrior Programmer3-Feb-06 5:04
Iain Clarke, Warrior Programmer3-Feb-06 5:04 
GeneralRe: problem with a mesasge box Pin
Castello075-Feb-06 22:03
Castello075-Feb-06 22:03 
Questiongetting problem with PlaySound() function Pin
trinadh_t2-Feb-06 23:54
trinadh_t2-Feb-06 23:54 
AnswerRe: getting problem with PlaySound() function Pin
EXTEIDE3-Feb-06 2:01
EXTEIDE3-Feb-06 2:01 
Questionadd a new dll, & lib files to my project Pin
kevincwong2-Feb-06 22:50
kevincwong2-Feb-06 22:50 
AnswerRe: add a new dll, & lib files to my project Pin
khan++2-Feb-06 23:08
khan++2-Feb-06 23:08 

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.