Click here to Skip to main content
16,005,178 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Win32 Application in VC 6 Pin
prasad_som13-Dec-06 2:10
prasad_som13-Dec-06 2:10 
QuestionRe: Win32 Application in VC 6 Pin
Programm3r13-Dec-06 2:22
Programm3r13-Dec-06 2:22 
AnswerRe: Win32 Application in VC 6 Pin
prasad_som13-Dec-06 2:29
prasad_som13-Dec-06 2:29 
QuestionRe: Win32 Application in VC 6 Pin
Programm3r13-Dec-06 2:53
Programm3r13-Dec-06 2:53 
AnswerRe: Win32 Application in VC 6 Pin
prasad_som13-Dec-06 3:09
prasad_som13-Dec-06 3:09 
QuestionRe: Win32 Application in VC 6 Pin
Programm3r13-Dec-06 3:46
Programm3r13-Dec-06 3:46 
AnswerRe: Win32 Application in VC 6 Pin
prasad_som13-Dec-06 4:45
prasad_som13-Dec-06 4:45 
QuestionDynamically displaying Visual TextBoxes - Labels Pin
Programm3r13-Dec-06 0:58
Programm3r13-Dec-06 0:58 
Hi all,

Take the follwoing into consideration:

vector<string> getSecNameString = CIniFile::GetSectionNames(FileName);
for(int i=0; i < (int)getSecNameString.size(); i++)
{
    cout << "\n** Section Name ** -> " << getSecNameString[i].c_str() << endl;
    vector<CIniFile::Record> getSecString = CIniFile::GetSection(getSecNameString[i], FileName);
    printf("\n.... GetSection Keys & Values ..... \n");
    printf("--------------------------------------\n");
    for(int i=0; i < (int)getSecString.size(); i++)
        cout << getSecString[i].Key.c_str() << "=" << getSecString[i].Value << endl;
}


The output would look someting like this:

[Section A]
keyA=1
keyB=2
{Section B]
keyC=3
keyD=4

O.k so now one wants to put each of these values into labels and textboxes.
For example the following must happen (Non-visual example):
label1 -> keyA
textBox1 -> 1
label2 -> keyB
textBox1 -> 2
and so on...
Please note that one would not know the limit of each section or key, and don't mind the "[]"

Thanx in advance


The only programmers that are better than C programmers are those who code in 1's and 0's..... Smile | :)

Smile | :) Programm3r

Questionlinker error for library Pin
rgchezhian13-Dec-06 0:47
rgchezhian13-Dec-06 0:47 
AnswerRe: linker error for library Pin
Laxman Auti13-Dec-06 19:13
Laxman Auti13-Dec-06 19:13 
QuestionQuestion Pin
messages13-Dec-06 0:28
messages13-Dec-06 0:28 
QuestionRe: Question Pin
prasad_som13-Dec-06 2:12
prasad_som13-Dec-06 2:12 
AnswerRe: Question Pin
messages13-Dec-06 19:03
messages13-Dec-06 19:03 
GeneralRe: Question Pin
prasad_som13-Dec-06 19:11
prasad_som13-Dec-06 19:11 
GeneralRe: Question Pin
messages13-Dec-06 19:27
messages13-Dec-06 19:27 
AnswerRe: Question Pin
prasad_som13-Dec-06 19:34
prasad_som13-Dec-06 19:34 
GeneralRe: Question Pin
messages13-Dec-06 19:53
messages13-Dec-06 19:53 
GeneralRe: Question Pin
prasad_som13-Dec-06 20:05
prasad_som13-Dec-06 20:05 
GeneralRe: Question Pin
Laxman Auti13-Dec-06 19:20
Laxman Auti13-Dec-06 19:20 
GeneralRe: Question Pin
messages13-Dec-06 19:28
messages13-Dec-06 19:28 
AnswerRe: Question Pin
prasad_som13-Dec-06 19:42
prasad_som13-Dec-06 19:42 
GeneralRe: Question Pin
Laxman Auti13-Dec-06 19:58
Laxman Auti13-Dec-06 19:58 
QuestionTextOut & True Type Fonts Pin
PsychicSmurf13-Dec-06 0:02
PsychicSmurf13-Dec-06 0:02 
QuestionCalling an function in a DLL Pin
JJeffrey12-Dec-06 23:59
JJeffrey12-Dec-06 23:59 
QuestionRe: Calling an function in a DLL Pin
prasad_som13-Dec-06 0:14
prasad_som13-Dec-06 0:14 

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.