lesaussice
10-05-2012, 09:26 AM
The time has come (without going into specifics) where I need to be supporting 64-bit Office, but also need to maintain compatibility back to Office 2003.
Changing API declarations for Win32 libraries is straightforward, as is regular variable declaration within a procedure by using conditional compilation.. But what about declaring variables in the parameters of a function?
ie
Public Function MyFunction (lngLong1 as LongPtr, lngLong2 as LongPt)
<some code>
some.thing=lngLong1
something.else=lngLong2
<some code>
End Function
That will work fine on Office '10, but I have no option but to support Office 2003 (clients). How do I convert that to conditionally compile?
Changing API declarations for Win32 libraries is straightforward, as is regular variable declaration within a procedure by using conditional compilation.. But what about declaring variables in the parameters of a function?
ie
Public Function MyFunction (lngLong1 as LongPtr, lngLong2 as LongPt)
<some code>
some.thing=lngLong1
something.else=lngLong2
<some code>
End Function
That will work fine on Office '10, but I have no option but to support Office 2003 (clients). How do I convert that to conditionally compile?