Showing posts with label cross-platform. Show all posts
Showing posts with label cross-platform. Show all posts

Wednesday, May 30, 2007

More about simple cross-platform C++ library

Last day, I posted that I will publish Chenhua's simple cross-platform C++ library here. Not only copy it character by character, but also modify, extend, test and make some usecases about it.
Now, I Compile most of the library successfully. and a list of library is as follows. In the compilation process, I encounter several problems, such as not correct compile command line, precompile header file error etc.

BaseHtmlParser.cpp Parse HTML Content, Get absolute URL.
BaseHTTP.cpp A utility class that used to POST and GET data.
BaseSock.cpp Encapsulate common socket network operations.
Convert.cpp A utility class for
cryptography classes. including some functions like Base64 encoding and decoding.
Des.cpp Data Encryption Standard encrypt algorithm implementation.
MD5.cpp Message Digest hash utility class.
MMutex.cpp Mutex and semaphore operations's cross-platform
Encapsulation.
Mthread.cpp Multi-thread ulitity functions that can be use both in Windows and POSIX systems.
XML.cpp Implement some simple XML read and write behaviors.

The following is a Class picture that snapped from Visual Studio.NET IDE( In the Visual C++.NET Perspective and Class View).






Tuesday, May 29, 2007

Simple but usefull cross-platform C++ library

Chenhua, the co-founder of kooxoo.com, On the 26th, May, 2005, published his cross-platform C++ Library on his blog, http://dawnli.spaces.live.com. At that time, kooxoo.com has been not found yet(kooxoo.com was started from late 2005, Now it becomes the most famous lifeday search engine in China).
The library consists of some simple but usefull C++ classes. including socket, multi-thread, cryptography and etc. "Use these classes ,you can develop C++ programs as easy as Java ones", Said Chen.

Thanks for his great work. Now I copy most of his code snippets, test and build it into some test programs. Then post here for everyone. The original copyright of the code belongs to Chen.
Thanks again.