Click here to Skip to main content
12,506,338 members (53,199 online)
Click here to Skip to main content

Stats

152.9K views
2K downloads
43 bookmarked
Posted

A Class to Save and Load Listbox Data

, 2 Jan 2002
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
{
public:
	CListBoxSafe();
	virtual ~CListBoxSafe();

public:	
	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.

License

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

Share

About the Author

Kuniva
Belgium Belgium
bla bla bla

You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160927.1 | Last Updated 3 Jan 2002
Article Copyright 2002 by Kuniva
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid