[jitsi-dev] Re: [jitsi~svn:10545] New version of the jmsoutlookaddrbook.dll. Corrects wrong cast.


#1

Vincent, could you please share what problem the above is causing? I had to change the cast to ULONG_PTR * when compiling with mingw-w64, targeting 64-bit Windows and using the official Outlook 2010 MAPI headers from Microsoft; otherwise, the compiler reported an error.

···

-----Original Message-----
Revision: 10545
Author: vincent_lucas

Log Message:
------------
Corrects wrong cast.

- (ULONG_PTR *) &nbConnection);
+ (ULONG *) &nbConnection);


#2

Hello Lyubomir,

For me the compilation failed with (ULONG_PTR *) for win64 using mingw-w64 for both target 32 and 64 bits (everything was alright on win32).

With (ULONG *) it works on both computer and is "more compliant" with the documentation (http://msdn.microsoft.com/en-us/library/office/cc842238(v=office.14).aspx).

P.S.: The strange thing is that, when trying to cast it into a (ULONG_PTR) the error comes back again.

Regards,
Vincent

···

On 3/1/13 8:36 PM, Lyubomir Marinov wrote:

-----Original Message-----
Revision: 10545
Author: vincent_lucas

Log Message:
------------
Corrects wrong cast.

- (ULONG_PTR *) &nbConnection);
+ (ULONG *) &nbConnection);

Vincent, could you please share what problem the above is causing? I had to change the cast to ULONG_PTR * when compiling with mingw-w64, targeting 64-bit Windows and using the official Outlook 2010 MAPI headers from Microsoft; otherwise, the compiler reported an error.

--
Vincent Lucas, Ph.D. Jitsi developer
chenzo@jitsi.org http://jitsi.org


#3

I guess you're not using the official Outlook 2010 MAPI Headers from Microsoft because they declare the argument of type ULONG_PTR FAR *. Whatever.

···

-----Original Message-----
From: Vincent Lucas [mailto:chenzo@jitsi.org]

is "more compliant" with
the documentation
(http://msdn.microsoft.com/en-
us/library/office/cc842238%28v=office.14%29.aspx).


#4

Subject: [jitsi-dev] Re: [jitsi~svn:10545] New version of the
jmsoutlookaddrbook.dll. Corrects wrong cast.
I guess you're not using the official Outlook 2010 MAPI Headers from
Microsoft because they declare the argument of type ULONG_PTR FAR *.
Whatever.

This was a change introduced in Office 2010, apparently for the 64bit edition. My headers of the Win7 SDK also still contain the ULONG* argument. Shouldn't matter.

Btw, the current code has a redundant cast - because & of a ULONG is just a ... ULONG*

Ingo

···

Vincent Lucas wrote on s "more compliant" with: