Click here to Skip to main content
11,707,470 members (79,656 online)
Click here to Skip to main content
Add your own
alternative version

A Class to Save and Load Listbox Data

, 2 Jan 2002 150.1K 2K 43
CListBoxSafe is a class that can save data from a listbox to file and load data from a file into a listbox.
// ListBoxSafe.h: interface for the CListBoxSafe class.

#if !defined(AFX_WINSTARTUP_H__61AB2BB8_97E3_47BB_91A2_17D620985B73__INCLUDED_)
#define AFX_WINSTARTUP_H__61AB2BB8_97E3_47BB_91A2_17D620985B73__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CListBoxSafe
	virtual ~CListBoxSafe();

	static void LoadList(CListBox &list, CString FileName, int MaxItems, int ItemLen);
	static void SaveList(CListBox &ListToFill, CString FileName, int MaxItems, int MaxItemLen);


#endif // !defined(AFX_WINSTARTUP_H__61AB2BB8_97E3_47BB_91A2_17D620985B73__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Belgium Belgium
bla bla bla

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150819.1 | Last Updated 3 Jan 2002
Article Copyright 2002 by Kuniva
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid