Porting to visual studio..

fulan Peng fulanpeng at gmail.com
Mon Sep 25 20:00:47 CEST 2006


Hi,
MFC can not create a random number unless you srand it first. Also you
need an unique seed. This is crazy. I used time(NULL). If you are too
fast to be within the same milisecond, you will get a same random
number!  This made me mad.

I was playing Cygwin and trying to compile minisip in it. It is not
too much meaningful to do so because Linux is not hard to install.  If
you ask people to install Cygwin to get minisip to run, people would
rather install a Linux.
Some other applications do not need any gui, I think it is worth to
compile it in Cygwin. I made Squid -- a web proxy server in Cygwin. It
works well.

I have Visual 2005 installed. Please give a copy of the source and let
me play it here in my XP.

Thanks !


#include <time.h>
...
srand((unsigned) time(NULL));
int rand16 = rand();
...


On 9/25/06, Paul Li <lite2012 at hotmail.com> wrote:
> I am glad to hear about Visual Studio 2005 Porting, as I have been trying to
> port it to VS 2005 since last week. I have compiled all MiniSIP libraries
> but libminisip in Visual Studio 2005 without much pain, and is working
> toward libminisip. All my porting is pretty much inline with the current
> structure, as I would expect Torrelli's code is in the same fashion. I am
> looking forward to his commit of source code, so that I could quickly move
> to my next step. If so desired, Torrelli may email me your changes, and I
> could help to verify your code before you commit them. VS 2005 can be easily
> auto-built with Nant.
>
> My initial goal is build a Windows (MFC) softphone without any other GNU
> libraries than libtool and OpenSSL for easy deployment, and I am planning to
> contribute this under LGPL.
>
> Thanks all MiniSIP developers here for making a portable libraries.
>
> Paul Lee
>
> _________________________________________________________________
> The next generation of Search—say hello!
> http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&FORM=WLMTAG
>
> _______________________________________________
> Minisip-devel mailing list
> Minisip-devel at minisip.org
> http://lists.minisip.org/mailman/listinfo/minisip-devel
>


More information about the Minisip-devel mailing list