Click here to Skip to main content
15,892,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: [Help] VC++ & mathlab Pin
Rage23-Jan-06 1:27
professionalRage23-Jan-06 1:27 
GeneralRe: [Help] VC++ & mathlab Pin
uumeme23-Jan-06 15:54
uumeme23-Jan-06 15:54 
QuestionMaking controls appear/disappear according to list selection Pin
kk_vp22-Jan-06 22:29
kk_vp22-Jan-06 22:29 
AnswerRe: Making controls appear/disappear according to list selection Pin
Cedric Moonen22-Jan-06 22:35
Cedric Moonen22-Jan-06 22:35 
AnswerRe: Making controls appear/disappear according to list selection Pin
Rage22-Jan-06 23:12
professionalRage22-Jan-06 23:12 
AnswerRe: Making controls appear/disappear according to list selection Pin
Owner drawn22-Jan-06 23:22
Owner drawn22-Jan-06 23:22 
AnswerRe: Making controls appear/disappear according to list selection Pin
BadKarma22-Jan-06 23:43
BadKarma22-Jan-06 23:43 
AnswerRe: Making controls appear/disappear according to list selection Pin
David Crow23-Jan-06 3:44
David Crow23-Jan-06 3:44 
GeneralRe: Making controls appear/disappear according to list selection Pin
kk_vp24-Jan-06 21:54
kk_vp24-Jan-06 21:54 
GeneralRe: Making controls appear/disappear according to list selection Pin
David Crow25-Jan-06 3:00
David Crow25-Jan-06 3:00 
GeneralRe: Making controls appear/disappear according to list selection Pin
kk_vp27-Jan-06 1:47
kk_vp27-Jan-06 1:47 
GeneralRe: Making controls appear/disappear according to list selection Pin
David Crow27-Jan-06 2:54
David Crow27-Jan-06 2:54 
GeneralRe: Making controls appear/disappear according to list selection Pin
kk_vp29-Jan-06 22:43
kk_vp29-Jan-06 22:43 
QuestionGetPrivateProfileString Pin
Nishad S22-Jan-06 22:07
Nishad S22-Jan-06 22:07 
AnswerRe: GetPrivateProfileString Pin
Owner drawn22-Jan-06 22:49
Owner drawn22-Jan-06 22:49 
GeneralRe: GetPrivateProfileString Pin
Nishad S22-Jan-06 22:53
Nishad S22-Jan-06 22:53 
GeneralRe: GetPrivateProfileString Pin
Owner drawn22-Jan-06 22:56
Owner drawn22-Jan-06 22:56 
AnswerRe: GetPrivateProfileString Pin
Rage22-Jan-06 23:29
professionalRage22-Jan-06 23:29 
GeneralRe: GetPrivateProfileString Pin
Nishad S23-Jan-06 0:13
Nishad S23-Jan-06 0:13 
GeneralRe: GetPrivateProfileString Pin
Rage23-Jan-06 1:20
professionalRage23-Jan-06 1:20 
NS17 wrote:
In this situation one method that I think to do is specify a very higher size ( about 32K ).
Could you please tell me your opinion about this?


This is very memory consuming. I would suggest to use my second method: Read in the key names using ::GetPrivateProfileSectionNames ( this give you only the names, with which you can retrieve the keys later) as long as the return value is equal to the size of your buffer minus two, and increase dynamically the size of the buffer at each step.

MSDN quote : If the buffer is not large enough to contain all the section names associated with the specified initialization file, the return value is equal to the length specified by nSize minus two.

~RaGE();
GeneralRe: GetPrivateProfileString Pin
Nishad S23-Jan-06 1:28
Nishad S23-Jan-06 1:28 
GeneralRe: GetPrivateProfileString Pin
Rage23-Jan-06 1:57
professionalRage23-Jan-06 1:57 
GeneralRe: GetPrivateProfileString Pin
Nishad S23-Jan-06 2:00
Nishad S23-Jan-06 2:00 
GeneralRe: GetPrivateProfileString Pin
Stephen Hewitt23-Jan-06 2:46
Stephen Hewitt23-Jan-06 2:46 
GeneralRe: GetPrivateProfileString Pin
Nishad S23-Jan-06 16:29
Nishad S23-Jan-06 16:29 

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.