Log in

View Full Version : 64-bit + legacy compatibility



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?

lesaussice
10-08-2012, 12:58 AM
Have put this somewhere more relevant.. Didn't actually mean to post in PPT!

http://www.vbaexpress.com/forum/showthread.php?p=278146#post278146