Click here to Skip to main content
16,009,343 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralClick button on dialog box to open window. Pin
ooosawaddee328-Nov-02 23:18
ooosawaddee328-Nov-02 23:18 
GeneralRe: Click button on dialog box to open window. Pin
RicoH29-Nov-02 1:08
RicoH29-Nov-02 1:08 
GeneralEventViewer MMC Snap-in Pin
draman28-Nov-02 23:13
draman28-Nov-02 23:13 
GeneralAdding user-defined keywords Pin
RicoH28-Nov-02 22:32
RicoH28-Nov-02 22:32 
GeneralRe: Adding user-defined keywords Pin
Iain Clarke, Warrior Programmer28-Nov-02 22:52
Iain Clarke, Warrior Programmer28-Nov-02 22:52 
GeneralRe: Adding user-defined keywords Pin
RicoH29-Nov-02 0:58
RicoH29-Nov-02 0:58 
GeneralOwner draw controls and CDialogBars Pin
Mirko M.28-Nov-02 20:48
sussMirko M.28-Nov-02 20:48 
Questionwhat's the equivalent of LoadIcon for text file? Pin
devvvy28-Nov-02 18:51
devvvy28-Nov-02 18:51 
what's the equivalent of load icon for text file?

i have an array of character strings in text files.

name1@myserv.com
name2@myserv.com
name3@myserv.com
name4@myserv.com
name5@myserv.com
name6@myserv.com
...
...

I wish to include the file as application resources for my MFC dialog app. During construction of the dialog class, i want to load this file, line by line and put the email address into a character array.

For icons:
HICON hListIcon[6];
hListIcon[0] = AfxGetApp()->LoadIcon(IDI_ICON1);
hListIcon[1] = AfxGetApp()->LoadIcon(IDI_ICON2);
hListIcon[2] = AfxGetApp()->LoadIcon(IDI_ICON3);
hListIcon[3] = AfxGetApp()->LoadIcon(IDI_ICON4);
hListIcon[4] = AfxGetApp()->LoadIcon(IDI_ICON5);
hListIcon[5] = AfxGetApp()->LoadIcon(IDI_ICON6);

Can I do something similar for text file?

Thanks


norm
AnswerRe: what's the equivalent of LoadIcon for text file? Pin
berndg28-Nov-02 19:53
berndg28-Nov-02 19:53 
GeneralRe: what's the equivalent of LoadIcon for text file? Pin
devvvy29-Nov-02 17:16
devvvy29-Nov-02 17:16 
QuestionWhere can I find guides on VSS? Pin
George228-Nov-02 18:50
George228-Nov-02 18:50 
AnswerRe: Where can I find guides on VSS? Pin
Ravi Bhavnani29-Nov-02 12:10
professionalRavi Bhavnani29-Nov-02 12:10 
GeneralRe: Where can I find guides on VSS? Pin
George229-Nov-02 18:36
George229-Nov-02 18:36 
GeneralRe: Where can I find guides on VSS? Pin
Ravi Bhavnani30-Nov-02 4:39
professionalRavi Bhavnani30-Nov-02 4:39 
GeneralRe: Where can I find guides on VSS? Pin
George230-Nov-02 16:28
George230-Nov-02 16:28 
GeneralWinsock gethostbyaddr problem Pin
Shamoon28-Nov-02 18:26
Shamoon28-Nov-02 18:26 
GeneralRe: Winsock gethostbyaddr problem Pin
Rickard Andersson2029-Nov-02 3:09
Rickard Andersson2029-Nov-02 3:09 
GeneralNeed help in removing element in std::map ! Pin
bahruddina28-Nov-02 15:20
bahruddina28-Nov-02 15:20 
GeneralRe: Need help in removing element in std::map ! Pin
Scott H. Settlemier28-Nov-02 16:27
Scott H. Settlemier28-Nov-02 16:27 
GeneralUnresolved symbol CLSID_SQLOLEDB Pin
paulb28-Nov-02 14:41
paulb28-Nov-02 14:41 
GeneralChanging a view in an SDI. Pin
VanHlebar28-Nov-02 14:32
VanHlebar28-Nov-02 14:32 
GeneralRe: Changing a view in an SDI. Pin
Anatari28-Nov-02 15:15
Anatari28-Nov-02 15:15 
GeneralRe: Changing a view in an SDI. Pin
VanHlebar29-Nov-02 7:40
VanHlebar29-Nov-02 7:40 
GeneralRe: Changing a view in an SDI. Pin
deffer1-Dec-02 17:50
deffer1-Dec-02 17:50 
GeneralRe: Changing a view in an SDI. Pin
valikac28-Nov-02 17:30
valikac28-Nov-02 17:30 

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.