Click here to Skip to main content
15,890,506 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help wanted with CSpinButtonCtrl Pin
Owner drawn22-Dec-05 16:58
Owner drawn22-Dec-05 16:58 
GeneralRe: Help wanted with CSpinButtonCtrl Pin
Blake Miller22-Dec-05 6:00
Blake Miller22-Dec-05 6:00 
GeneralRe: Help wanted with CSpinButtonCtrl Pin
cgb14322-Dec-05 10:01
cgb14322-Dec-05 10:01 
GeneralRe: Help wanted with CSpinButtonCtrl Pin
Blake Miller22-Dec-05 10:08
Blake Miller22-Dec-05 10:08 
QuestionNedd help/direction to create a UI Pin
Klerik8221-Dec-05 10:11
Klerik8221-Dec-05 10:11 
AnswerRe: Nedd help/direction to create a UI Pin
TheGreatAndPowerfulOz21-Dec-05 10:20
TheGreatAndPowerfulOz21-Dec-05 10:20 
GeneralRe: Nedd help/direction to create a UI Pin
Klerik8221-Dec-05 10:27
Klerik8221-Dec-05 10:27 
GeneralRe: Nedd help/direction to create a UI Pin
TheGreatAndPowerfulOz21-Dec-05 10:35
TheGreatAndPowerfulOz21-Dec-05 10:35 
MFC has a file class called CFile
use that to read the file
read the text into a char buffer (make sure it's sufficiently big or read a character at a time)

use strtok to "parse" the lines

I can't be much more help than that without knowing the format of the file. However, given your first post, I am assuming there's a heirarchical nature to the text file. So, obviously each time you "descend" the heirarchy you add a child node to the treeview. And each time you ascend the heirarchy you find the current node's parent so that any new children are added to it.

If it were in XML then you could use MSXML to read and parse it.
GeneralRe: Nedd help/direction to create a UI Pin
David Crow21-Dec-05 10:36
David Crow21-Dec-05 10:36 
QuestionRun hidden on startup Pin
lynchspawn21-Dec-05 9:48
lynchspawn21-Dec-05 9:48 
AnswerRe: Run hidden on startup Pin
TheGreatAndPowerfulOz21-Dec-05 9:54
TheGreatAndPowerfulOz21-Dec-05 9:54 
GeneralRe: Run hidden on startup Pin
Blake Miller22-Dec-05 6:04
Blake Miller22-Dec-05 6:04 
AnswerRe: Run hidden on startup Pin
Rajesh R Subramanian21-Dec-05 17:17
professionalRajesh R Subramanian21-Dec-05 17:17 
QuestionGetActiveWindow returns NULL Pin
wilbur_logan21-Dec-05 9:45
wilbur_logan21-Dec-05 9:45 
AnswerRe: GetActiveWindow returns NULL Pin
TheGreatAndPowerfulOz21-Dec-05 9:52
TheGreatAndPowerfulOz21-Dec-05 9:52 
GeneralRe: GetActiveWindow returns NULL Pin
wilbur_logan21-Dec-05 10:02
wilbur_logan21-Dec-05 10:02 
GeneralRe: GetActiveWindow returns NULL Pin
TheGreatAndPowerfulOz21-Dec-05 10:18
TheGreatAndPowerfulOz21-Dec-05 10:18 
GeneralRe: GetActiveWindow returns NULL Pin
wilbur_logan21-Dec-05 10:40
wilbur_logan21-Dec-05 10:40 
AnswerRe: GetActiveWindow returns NULL Pin
Rajesh R Subramanian21-Dec-05 17:22
professionalRajesh R Subramanian21-Dec-05 17:22 
GeneralRe: GetActiveWindow returns NULL Pin
wilbur_logan22-Dec-05 7:39
wilbur_logan22-Dec-05 7:39 
QuestionErase item from std::vector? Pin
Lord Kixdemp21-Dec-05 9:38
Lord Kixdemp21-Dec-05 9:38 
AnswerRe: Erase item from std::vector? Pin
TheGreatAndPowerfulOz21-Dec-05 9:39
TheGreatAndPowerfulOz21-Dec-05 9:39 
GeneralRe: Erase item from std::vector? Pin
Lord Kixdemp21-Dec-05 9:51
Lord Kixdemp21-Dec-05 9:51 
GeneralRe: Erase item from std::vector? Pin
toxcct21-Dec-05 21:38
toxcct21-Dec-05 21:38 
GeneralRe: Erase item from std::vector? Pin
Lord Kixdemp24-Dec-05 16:11
Lord Kixdemp24-Dec-05 16:11 

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.