Click here to Skip to main content
15,567,468 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Making controls appear/disappear according to list selection Pin
BadKarma23-Jan-06 0:43
BadKarma23-Jan-06 0:43 
AnswerRe: Making controls appear/disappear according to list selection Pin
David Crow23-Jan-06 4:44
David Crow23-Jan-06 4:44 
GeneralRe: Making controls appear/disappear according to list selection Pin
kk_vp24-Jan-06 22:54
kk_vp24-Jan-06 22:54 
GeneralRe: Making controls appear/disappear according to list selection Pin
David Crow25-Jan-06 4:00
David Crow25-Jan-06 4:00 
GeneralRe: Making controls appear/disappear according to list selection Pin
kk_vp27-Jan-06 2:47
kk_vp27-Jan-06 2:47 
GeneralRe: Making controls appear/disappear according to list selection Pin
David Crow27-Jan-06 3:54
David Crow27-Jan-06 3:54 
GeneralRe: Making controls appear/disappear according to list selection Pin
kk_vp29-Jan-06 23:43
kk_vp29-Jan-06 23:43 
QuestionGetPrivateProfileString Pin
Nishad S22-Jan-06 23:07
Nishad S22-Jan-06 23:07 
Hi,

How could I get all the section names in an ini?

I know the below.
dwLen = GetPrivateProfileString( NULL, NULL, lpDefault, lpResult, nSize, lpFileName );

It will store all the section names to lpResult. But how can I estimate the nSize, when I am unknown about the section name count and size?

I have to find the nSize first, to allocate the memory for lpResult sothat I can get all the section names. What would be the solution?

Thank you.


- NS -
AnswerRe: GetPrivateProfileString Pin
Owner drawn22-Jan-06 23:49
Owner drawn22-Jan-06 23:49 
GeneralRe: GetPrivateProfileString Pin
Nishad S22-Jan-06 23:53
Nishad S22-Jan-06 23:53 
GeneralRe: GetPrivateProfileString Pin
Owner drawn22-Jan-06 23:56
Owner drawn22-Jan-06 23:56 
AnswerRe: GetPrivateProfileString Pin
Rage23-Jan-06 0:29
professionalRage23-Jan-06 0:29 
GeneralRe: GetPrivateProfileString Pin
Nishad S23-Jan-06 1:13
Nishad S23-Jan-06 1:13 
GeneralRe: GetPrivateProfileString Pin
Rage23-Jan-06 2:20
professionalRage23-Jan-06 2:20 
GeneralRe: GetPrivateProfileString Pin
Nishad S23-Jan-06 2:28
Nishad S23-Jan-06 2:28 
GeneralRe: GetPrivateProfileString Pin
Rage23-Jan-06 2:57
professionalRage23-Jan-06 2:57 
GeneralRe: GetPrivateProfileString Pin
Nishad S23-Jan-06 3:00
Nishad S23-Jan-06 3:00 
GeneralRe: GetPrivateProfileString Pin
Stephen Hewitt23-Jan-06 3:46
Stephen Hewitt23-Jan-06 3:46 
GeneralRe: GetPrivateProfileString Pin
Nishad S23-Jan-06 17:29
Nishad S23-Jan-06 17:29 
GeneralRe: GetPrivateProfileString Pin
David Crow23-Jan-06 4:57
David Crow23-Jan-06 4:57 
GeneralRe: GetPrivateProfileString Pin
David Crow23-Jan-06 4:52
David Crow23-Jan-06 4:52 
AnswerRe: GetPrivateProfileString Pin
David Crow23-Jan-06 4:50
David Crow23-Jan-06 4:50 
Questioneffective permissions Pin
kelprinc22-Jan-06 22:36
kelprinc22-Jan-06 22:36 
QuestionVisuall c Pin
Hamid_RT22-Jan-06 22:17
Hamid_RT22-Jan-06 22:17 
AnswerRe: Visuall c Pin
Rajesh R Subramanian22-Jan-06 22:21
professionalRajesh R Subramanian22-Jan-06 22:21 

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.