Thanks for your answer. 

>>> Is it always defined when <su_types.h> is included?
It is defined under "#elif SU_HAVE_WIN32"
My guess is probably Microsoft added it since VC6, but I don't have VC6
to prove it.

>>> Could you try to see if there are other things in VC2003 that we are
missing from  VC6?
Most noteably, I'm trying to work .NET framework application and using
sofia as DLL. I have problems with managed/unmanaged types. (The .NET is
memory-managed, garbage collection, etc, while sofia is not, which
causes runtime errors). 
Another thing causes runtime-error in .NET is that the "ta_list ta;" is
not initialized. The .NET VM is not smart enough to understand you are
initializing it later with ta_start(); and exception occurs.

By the way, I was also forced to manually add "SOFIAPUBFUN" to many
functions (I'm using sofia as DLL). Maybe VC6 had some "make all
functions export" flag I am not using...

Eetay


-----Original Message-----
From: Pekka Pessi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 16, 2006 7:49 PM
To: Natan, Eetay
Cc: [email protected]
Subject: Re: [Sofia-sip-devel] win32 troubles with 1.11.6

On 3/16/06, Natan, Eetay <[EMAIL PROTECTED]> wrote:
> I am working with Visual C++ .NET 2003, with Sofia library package
version
> 1.11.6

OK. We use old VC6 as you have noticed...

> The type "intptr_t" is defined in several of VC++'s header files. This
makes
> problems while compiling .NET application which uses Sofia library.

> So in su_types.h, line 71, I have done this:

> /** Integer large enough for pointers */
> #ifndef _INTPTR_T_DEFINED //EETAY
> typedef SU_INTPTR_T intptr_t;
> #endif //EETAY
>
> (_INTPTR_T_DEFINED is macro defined & used by VC++ header files.)

Is it always defined when <su_types.h> is included?

> I've also noted that the project/solution files are old VC6 files.

Perhaps it would be time for upgrade. ;)

> Also had problem with __FUNCTION__ macro. I've added #define
HAVE_FUNC=1
> somewhere, since the win32 config header file did not do so.

You can add it into win32/config.h.in and/or win32/config.h (there is
a simple awk script making). Could you try to see if there are other
things in VC2003 that we are missing from  VC6? It might be useful to
have different #if branches for VC6 and VC2003 in win32/config.h, or
perhaps even separate config.h for these two compilers..
--
Pekka.Pessi mail at nokia.com


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to