Win98.....Win NT??????
-
I'm writing program under WinNT environment recently and wants to make it workable in Win95/98. This program has to talk to the Touchscreen driver. This driver has different interface file for 85/98 and NT, but they do share some *.h files (share the main .h file.......for example, i have to access function ABC(). Both W95/98 and NT's interface file have this function (same name) and share the same .h file (ABC.h). So, I just only have to include ABC.h in my program and use this function. If i want to work in 95/98, i just have to put the w95/98 file in my project....same as WinNT. However, can i put everything in the project and let the program to decide whether using w95/98 or NT. I don't want to have two separate programs in W95/98 and NT....... Thanks
-
I'm writing program under WinNT environment recently and wants to make it workable in Win95/98. This program has to talk to the Touchscreen driver. This driver has different interface file for 85/98 and NT, but they do share some *.h files (share the main .h file.......for example, i have to access function ABC(). Both W95/98 and NT's interface file have this function (same name) and share the same .h file (ABC.h). So, I just only have to include ABC.h in my program and use this function. If i want to work in 95/98, i just have to put the w95/98 file in my project....same as WinNT. However, can i put everything in the project and let the program to decide whether using w95/98 or NT. I don't want to have two separate programs in W95/98 and NT....... Thanks
its called conditional compilation :) or you could detect the os at runtime and switch between diff code blocks but then your code is bigger --- "every year we invent better idiot proof systems and every year they invent better idiots"