Ok, lets get started.
CSplitMX adds file splitting capabilities to any Windows application written in Visual C++. I have always wanted an easy class that allowed me to split files into smaller pieces but only could find either VB sources or none at all. I have then decided to write the class myself. The source is relatively easy to understand even if they are not commented, but anywhere here is the rundown. To use
CSplitMX include the two files Split.cpp and Split.h in your project and link split.h to the class/files you want to use the splitting functions in.
Using the code:
CString m_FileName = "My.exe"; int cSize = 720000; CSplitMX MX;
MX.Init(); MX.SetFileName(m_FileName); MX.SetSplitSize(cSize); MX.SplitFile();
The demo project demonstrates the necessary approach to the class.