|
-
June 14th, 2001, 04:32 AM
#1
Define
Is there anything in Visual Basic equal with its behaviour or functionality to C++ #define ???
If so what is it and how do I use it. same as in C++ ??
FatMan
-
June 14th, 2001, 04:44 AM
#2
Re: Define
#define WM_MYMSG 0x30
is
public Conts WM_MYMSG = &H30
Is this what you mean?
HTH,
D.
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
-
June 14th, 2001, 04:44 AM
#3
Re: Define
#define WM_MYMSG 0x30
is
public Const WM_MYMSG = &H30
Is this what you mean?
HTH,
D.
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
-
June 14th, 2001, 05:17 AM
#4
Re: Define
I mean for example:
#define _VB_APPLICATION_
...
#ifdef _VB_APPLICATION_
...
#else
...
#endif
I mean defining flags for the compiler. and not just defining some constant object.
FatMan
-
June 14th, 2001, 05:24 AM
#5
Re: Define
Absolutely - use:
#IF VB_APPLICATION = 1 then
#else
#End IF
And then set the compiler option in the "Conditional compiler options" text box on the "Make" tab on the project properties screen.
HTH,
D.
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|