If you have already installed OpenSSL in your IDE, you can start immediately. If not, you can download here a precompiled package which contains everything you need (I used the package "Win32 OpenSSL v0.9.8k" with a size of 7MBs). Just put the 2 precompiled files and the headers into the particular directories of Visual Studio.
- At first, grab the latest version from SVN trunk: svn co https://libmsn.svn.sourceforge.net/svnroot/libmsn libmsn. In case you don't have a suitable SVN client: I'm quite happy for now with the free client from SlikSVN.
- Make a new empty file with the name config.h in trunk/msn. This file is normally automatically generated by cmake and contains a few macros which enable or disable certain features. But for now, we're in a hurry so we don't care :-).
- Now copy all header files in trunk/msn to a new msn folder in your include directory of visual studio (e.g.: C:\Program Files\Microsoft Visual Studio 9.0\VC\include\msn).
- Create a new project with Visual Studio. We need an empty Win32 project for a dynamic link libary.
- Try to find "Add" -> "Existing Item" somewhere and add all headers and source files to the project. Add also all files in the subdirectory "libsiren".
- Open up your project settings (or property pages) :
- Go to "C/C++" -> "Preprocessor" and add msn_EXPORTS to the "Preprocessor Definitions".
- Go also to "General" and set the character set to "Not Set".
- Now "Linker" -> "Input" and add libeay32.lib and ssleay32.lib.
- You may experience some linker problems related to debug code. Search "Linker" -> "Debugging" and set "Generate Debug Info" to "No".
Hi,
AntwortenLöschenHave you implemented the libmsn on windows with winsock2 and native framework such as win32api or QT? This is a very interesting topic but seems no one complete it.
Sam
Hi Sam,
AntwortenLöschenYes I did, but I used my own socket wrapper and that is why I didn't think about releasing it. Well, in that case I guess I'll write an article about it.
Sascha
Hi Sascha,
AntwortenLöschenYes, maybe you can write an article to describe it. Furthermore you can submit your code to the autor of libmsn which makes a good library to share. let more people use libmsn under win32 platform.
On top of that, I start using winsock with libmsn but fail at SSL reading. Still need some day to debug...
Sam