Click here to Skip to main content
16,004,991 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCant get network printers through PRINTER_INFO_2 Pin
Member 173276816-May-05 2:56
Member 173276816-May-05 2:56 
GeneralRe: Cant get network printers through PRINTER_INFO_2 Pin
David Crow16-May-05 3:35
David Crow16-May-05 3:35 
GeneralRe: Cant get network printers through PRINTER_INFO_2 Pin
Member 173276816-May-05 3:53
Member 173276816-May-05 3:53 
GeneralRe: Cant get network printers through PRINTER_INFO_2 Pin
David Crow16-May-05 4:34
David Crow16-May-05 4:34 
GeneralRe: Cant get network printers through PRINTER_INFO_2 Pin
Member 173276816-May-05 4:51
Member 173276816-May-05 4:51 
GeneralData Structure: Advice required Pin
Imtiaz Murtaza16-May-05 2:33
Imtiaz Murtaza16-May-05 2:33 
GeneralRe: Data Structure: Advice required Pin
Jack Puppy16-May-05 2:43
Jack Puppy16-May-05 2:43 
GeneralRe: Data Structure: Advice required Pin
David Crow16-May-05 2:45
David Crow16-May-05 2:45 
Depending on how you are going to access the items, an array or list will both suffice. The former allows access to any item, while the latter requires you to iterate items from the beginning.

The item stored in either could look something like:

struct _FolderInfo
{
    CString strFolder;
    CString strParent;
};
 
CArray<_FolderInfo, _FolderInfo&> arrFolderInfo;
 
CList<_FolderInfo, _FolderInfo&> listFolderInfo;
Having shown all that, a question that comes to mind is why store the name of the parent folder? If the absolute name of the folder is being stored, then the parent is known by simply removing the rightmost folder. Yes?


"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown


GeneralRe: Data Structure: Advice required Pin
Imtiaz Murtaza16-May-05 3:56
Imtiaz Murtaza16-May-05 3:56 
GeneralRe: Data Structure: Advice required Pin
David Crow16-May-05 4:00
David Crow16-May-05 4:00 
GeneralGetSystemMetrics(SM_CXVIRTUALSCREEN) Pin
IlanTal16-May-05 1:37
IlanTal16-May-05 1:37 
GeneralRe: GetSystemMetrics(SM_CXVIRTUALSCREEN) Pin
James R. Twine16-May-05 3:08
James R. Twine16-May-05 3:08 
GeneralRe: GetSystemMetrics(SM_CXVIRTUALSCREEN) Pin
IlanTal16-May-05 3:14
IlanTal16-May-05 3:14 
GeneralRe: GetSystemMetrics(SM_CXVIRTUALSCREEN) Pin
James R. Twine16-May-05 6:33
James R. Twine16-May-05 6:33 
GeneralRe: GetSystemMetrics(SM_CXVIRTUALSCREEN) Pin
IlanTal16-May-05 19:35
IlanTal16-May-05 19:35 
GeneralRe: GetSystemMetrics(SM_CXVIRTUALSCREEN) Pin
ucc80116-May-05 20:36
ucc80116-May-05 20:36 
GeneralRe: GetSystemMetrics(SM_CXVIRTUALSCREEN) Pin
ucc80116-May-05 20:37
ucc80116-May-05 20:37 
GeneralQT and Intellisense Pin
Sitaram Sukumar15-May-05 19:40
Sitaram Sukumar15-May-05 19:40 
GeneralRe: QT and Intellisense Pin
David Crow16-May-05 2:35
David Crow16-May-05 2:35 
GeneralRe: QT and Intellisense Pin
ucc80116-May-05 20:42
ucc80116-May-05 20:42 
Generalquestion regarding CListCtrl..... Pin
namaskaaram15-May-05 18:59
namaskaaram15-May-05 18:59 
GeneralRe: question regarding CListCtrl..... Pin
Jack Puppy16-May-05 2:45
Jack Puppy16-May-05 2:45 
GeneralRe: question regarding CListCtrl..... Pin
namaskaaram16-May-05 3:38
namaskaaram16-May-05 3:38 
GeneralRe: question regarding CListCtrl..... Pin
David Crow16-May-05 2:48
David Crow16-May-05 2:48 
GeneralForming Grid using Rectangles Pin
jinbabaj15-May-05 18:15
jinbabaj15-May-05 18:15 

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.