Solved

compiler directive...

Posted on 2002-03-17
5
182 Views
Last Modified: 2010-04-05
Hi..
  Can some one suggest some sort of compiler directive that will prevent certain part in my code from executing in windows nt environment and execute in windows 95/98 versions.
0
Comment
Question by:razal_ka
5 Comments
 
LVL 20

Accepted Solution

by:
Madshi earned 50 total points
Comment Utility
There is no compiler directive for that. But you can use code:

  if GetVersion and $80000000 = 0 then
    ShowMessage('winNT family')
  else
    ShowMessage('win9x family');

Regards, Madshi.
0
 

Author Comment

by:razal_ka
Comment Utility
if it is a decleration that i have to prevent from executing..
0
 
LVL 20

Expert Comment

by:Madshi
Comment Utility
A declaration? You mean a variable or a type or a const? Sorry, no go... Or what do you mean? Please post the declaration you're talking about here - together with why you need to prevent it from being executed. Maybe we can find another solution...
0
 

Expert Comment

by:CleanupPing
Comment Utility
razal_ka:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 7

Expert Comment

by:knightmad
Comment Utility
Wow, Its been a long time since this comment have been visited!

razal_ka,
No comment has been added lately (19 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Award points to Madshi http:#6879141

-- Please DO NOT accept this comment as an answer ! --

Thanks,

knightmad
EE Cleanup Volunteer

Remember you (all) can object this recommendation if you disagree, just leave a post here explaining why are you objecting and what should be done instead.
Within 7 days probably this thread will be closed, so, hurry up! : )
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now