473,395 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

support for #region in C++/CLI

Hi
in C#, it is possible to define a region which can be tucked away in
the IDE by defining a #region and #endregion pair in the code. I realize
this does not seem to work for C++/CLI, be it native or managed code. Is
there soemthing equivalent in C++/CLI or it's totally not supported yet?
Jan 26 '06 #1
4 8671
"Lonewolf" <an*******@mozilla.org> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
Hi
in C#, it is possible to define a region which can be tucked away in the
IDE by defining a #region and #endregion pair in the code. I realize this
does not seem to work for C++/CLI, be it native or managed code. Is there
soemthing equivalent in C++/CLI or it's totally not supported yet?


Straight from msdn2:
#pragma region name
#pragma endregion comment
Jan 26 '06 #2
James Park wrote:
"Lonewolf" <an*******@mozilla.org> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
Hi
in C#, it is possible to define a region which can be tucked away in the
IDE by defining a #region and #endregion pair in the code. I realize this
does not seem to work for C++/CLI, be it native or managed code. Is there
soemthing equivalent in C++/CLI or it's totally not supported yet?


Straight from msdn2:
#pragma region name
#pragma endregion comment


thanx for the enlightenment. Funny, why don't they just keep it to
#region since it is a IDE thing, not a program syntax thing.
Jan 26 '06 #3
Lonewolf wrote:
James Park wrote:
"Lonewolf" <an*******@mozilla.org> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
Hi
in C#, it is possible to define a region which can be tucked away
in the IDE by defining a #region and #endregion pair in the code. I
realize this does not seem to work for C++/CLI, be it native or
managed code. Is there soemthing equivalent in C++/CLI or it's
totally not supported yet?


Straight from msdn2:
#pragma region name
#pragma endregion comment


thanx for the enlightenment. Funny, why don't they just keep it to
#region since it is a IDE thing, not a program syntax thing.


But the compiler (preprocessor, really) needs to know to ignore it. It
already is prepared to handle #pragma, so it makes sense to use that
mechanism for regions as well.

-cd
Jan 26 '06 #4
Lonewolf wrote:

Straight from msdn2:
#pragma region name
#pragma endregion comment


thanx for the enlightenment. Funny, why don't they just keep it to
#region since it is a IDE thing, not a program syntax thing.


By using a pragma, you're guaranteed to stay compatible with other compilers
who don't know anything about the "region" functionnality.

Arnaud
MVP - VC
Jan 26 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Altramagnus | last post by:
I have a complicated Region object, which I need to draw the outline, but not fill How can I convert the Region object to GraphicsPath object? or How can I draw the outline of the Region object?
2
by: muesliflakes | last post by:
I have a DataSet that bound to controls on multiple forms. Currently an instance is created on each form and Load / Write is handled on each form. Instead I would like to have a single instance...
4
by: Brian Basquille | last post by:
Hello all, Quick question! How would i keep a point inside a region? For example, the mouse pointer. You should be able to move the mouse around in this region but not anywhere outside it. ...
2
by: AMDRIT | last post by:
Hello everyone, I have created a custom component and one of its properties is a class object with it's own properties. During runtime, I can assign values to the class object properties just...
1
by: Steven T. Hatton | last post by:
All of the following terms are used in some way to describe where and how a name is relevant to a particular location in a program: visible, declarative region, scope, potential scope, valid,...
2
by: =?Utf-8?B?U2VlU2hhcnA=?= | last post by:
It seems I cannot use #region and #endregion to hide those auto generated windows form control declarations. They are available in VC# 2003 though. Is it true that VC 2003 doesn't support #region...
1
by: Sagaert Johan | last post by:
i have a control that uses a region to make it non rectangular when i try to to remove the region by calling this.Region.Makeinfinite() the control keeps its non rectangular Region. if i call...
1
by: Chris Thomasson | last post by:
This region allocator is not dynamic and can be fed with a buffer residing on the stack of the calling thread. Therefore, you can use this in an environment which does not have a heap; its...
8
by: Chris M. Thomasson | last post by:
Here is the initial crude implmentation which compiles under Comeau with no warnings: ___________________________________________________________________ #include <cassert> #include <cstdlib>...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.