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

C / C++ / MFC

 
GeneralRe: a managed array cannot have this element type Pin
Member 202102220-Mar-08 15:12
Member 202102220-Mar-08 15:12 
GeneralRe: a managed array cannot have this element type Pin
Mark Salsbery20-Mar-08 15:49
Mark Salsbery20-Mar-08 15:49 
GeneralRe: a managed array cannot have this element type Pin
Mark Salsbery20-Mar-08 16:00
Mark Salsbery20-Mar-08 16:00 
General64bit file sizes Pin
El Corazon20-Mar-08 12:02
El Corazon20-Mar-08 12:02 
GeneralRe: 64bit file sizes Pin
Graham Bradshaw20-Mar-08 12:20
Graham Bradshaw20-Mar-08 12:20 
GeneralRe: 64bit file sizes Pin
cmk21-Mar-08 9:31
cmk21-Mar-08 9:31 
GeneralSaving and Loading in a Dialogue based MFC app Pin
Samael20-Mar-08 11:52
Samael20-Mar-08 11:52 
AnswerRe: Saving and Loading in a Dialogue based MFC app Pin
Ricos6626-Mar-08 6:25
Ricos6626-Mar-08 6:25 
Hi Samael, if you want save the item data in a tree control you must loop on all the tree item and save data where do you want ( for example a .ini file ), you can do the same thing when you create the tree control to populate it with the saved items. Here in this example how to iterate all the elements of a tree ( in this case to delete them ).

void CMyTreeCtrl::DeleteAllChildren(HTREEITEM hParentItem)
{
if (ItemHasChildren(hParentItem) == FALSE)
return;

HTREEITEM hChildItem = GetChildItem(hParentItem);

while (hChildItem != NULL)
{
HTREEITEM hNextItem = GetNextSiblingItem(hChildItem);

DeleteAllChildren (hChildItem);

DeleteItem (hChildItem);

hChildItem = hNextItem;
}
}
GeneralRe: Saving and Loading in a Dialogue based MFC app [modified] Pin
Samael26-Mar-08 11:16
Samael26-Mar-08 11:16 
AnswerRe: Saving and Loading in a Dialogue based MFC app [modified] Pin
Ricos6627-Mar-08 23:46
Ricos6627-Mar-08 23:46 
GeneralHandling DLL Load Failures Pin
Californian220-Mar-08 11:44
Californian220-Mar-08 11:44 
GeneralRe: Handling DLL Load Failures Pin
Chris Losinger20-Mar-08 11:52
professionalChris Losinger20-Mar-08 11:52 
QuestionRe: Handling DLL Load Failures Pin
Mark Salsbery20-Mar-08 11:55
Mark Salsbery20-Mar-08 11:55 
GeneralRe: Handling DLL Load Failures Pin
Californian220-Mar-08 16:17
Californian220-Mar-08 16:17 
GeneralRe: Handling DLL Load Failures Pin
Mark Salsbery20-Mar-08 16:21
Mark Salsbery20-Mar-08 16:21 
QuestionWhat is the Best Way to Parse and Store User Input from a CTreeCtrl Dialog? Pin
Stuck At Zero20-Mar-08 10:08
Stuck At Zero20-Mar-08 10:08 
GeneralRe: What is the Best Way to Parse and Store User Input from a CTreeCtrl Dialog? Pin
Member 75496024-Mar-08 10:23
Member 75496024-Mar-08 10:23 
Generalextern "C" in DLL Pin
Alan Balkany20-Mar-08 7:21
Alan Balkany20-Mar-08 7:21 
QuestionRe: extern "C" in DLL Pin
David Crow20-Mar-08 7:28
David Crow20-Mar-08 7:28 
GeneralRe: extern "C" in DLL Pin
Alan Balkany20-Mar-08 7:36
Alan Balkany20-Mar-08 7:36 
QuestionRe: extern "C" in DLL Pin
David Crow20-Mar-08 7:51
David Crow20-Mar-08 7:51 
GeneralRe: extern "C" in DLL Pin
Alan Balkany20-Mar-08 7:55
Alan Balkany20-Mar-08 7:55 
GeneralRe: extern "C" in DLL Pin
James R. Twine20-Mar-08 7:45
James R. Twine20-Mar-08 7:45 
GeneralRe: extern "C" in DLL Pin
Alan Balkany20-Mar-08 7:49
Alan Balkany20-Mar-08 7:49 
GeneralRe: extern "C" in DLL Pin
James R. Twine20-Mar-08 8:43
James R. Twine20-Mar-08 8:43 

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.