i've 2 files file1.inc and file2.inc.
based on the Os.i've to include either file1.inc or file2.inc.
based on the Os,how can i include the inc files during runtime?
i'm copying the required file(file1/file2)to a file.inc based on the Os thru the script.but the changes are not being reflected.
can anyone help me.
thanks in advance
Can't be done I'm afraid; inc files are included at compile time, and it's not possible to find out the OS you're running on until compile time.
I have had this kind of problem before, and have got round it by adjusting my window declarations - in particular, putting switch statements in various methods, to deal with the different variations required for different OSes.
Here is an example of an include file which has been constructed to work on OSes where the window declaration varies. The Save File dialog has a textfield to enter the filename on W9x and NT4, but that has been replaced by a combobox for W2K. I have included both fields in the window declaration, and have designed the appropriate method to check which OS it is running under in order to decide which control it should be looking for.
I hope this is helpful.