One cool way of handling this is to use a module and dynamic constants.
for example create a dynamic constant called kCarbonLib
then implement the needed features, and then just call the following :
Declare Sub ChangeWindowAttributes Lib kCarbonLib (win as
WindowPtr, setAttribs as integer, removeAttribs as integer)
Easy
Trausti
On Oct 9, 2006, at 3:40 PM, Lennox Jacob wrote:
Hello,
I have the following code:
'Zoom button in my program's main window disabled with this
#if TargetCarbon
Declare Sub ChangeWindowAttributes Lib "CarbonLib" (win as
WindowPtr, setAttribs as integer, removeAttribs as integer)
ChangeWindowAttributes self, 0, 6
#elseif TargetMachO
Declare Sub ChangeWindowAttributes Lib "Carbon" (win as WindowPtr,
setAttribs as integer, removeAttribs as integer)
ChangeWindowAttributes self, 0, 6
#endif
When I try to build in i386 or UB I get a message indicating that
CarbonLib should be changed to Carbon, changing that corrects the
problem, but is there a way to add something like
#elseif ...
so that I don't have to change anything?
Thanks.
Lennox
---------------------------------
Get your email and more, right on the new Yahoo.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>