Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

'Globally define a conditional'?

Status
Not open for further replies.

TimeOut

Programmer
Nov 21, 2000
16
GB
Hi all

I was a reading a MIDI Visaul C++ book and in one line it read:

'Globally define the conditional _MIDIIN'

Anyone know how I would globally define a conditional?

Would be most grateful for any advice given. Thanks alot.
 
Hi

I would put:

#ifndef _MIDIIN
#define _MIDIIN

at the top of my header file or source file.

Hope that works.
 
Hi CraigD

Thanks for your reply. Most grateful. Even though it wasn't exactly the solution, your reply made me look at the problem more deeply and I was able to work it out for myself.

Thanks alot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top