Quick question about using the Pound ("#") symbol. If I want one thing to happen on Windows and something else to happen on OS X and I want the Windows Code to only be in the Windows build and the OS X code to only be in the OS X build, can I do this:?
#If TargetWin32 then
Run Windows code
Run OS X code
or do I have to do it this way?
[code]#If TargetWin32 then
Run Windows Code #EndIf
Is there a way to have a specific Function to only be compiled into the Windows Build? I need to have DoubleBuffer and Transparency in Windows and I have a Function that simulates Transparency but I only need it in the Windows Build.
Wrap your function in the #If TargetWin32 conditional If block. The code in that function will only be compiled for Windows. Or put every call to the function inside a conditional If block. Same difference.
I was already doing the latter as I need something different to happen in Mac OS X which never calls this function as it already DoubleBuffers with Transparency natively so there is no need to simulate the Transparency.