Solved

compiler directive...

Posted on 2002-03-17
5
187 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
ID: 6874386
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
ID: 6879015
if it is a decleration that i have to prevent from executing..
0
 
LVL 20

Expert Comment

by:Madshi
ID: 6879141
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
ID: 9343255
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
ID: 9470856
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Intraweb download file link ? 1 135
delphi parse string to params 3 123
Dev Express grid collapse 2 45
Why  'Host Connection unavailable/Socket Error #113 No route to host' 6 42
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

823 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