473,898 Members | 3,413 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 8709
"Lonewolf" <an*******@mozi lla.org> wrote in message
news:%2******** *******@TK2MSFT NGP11.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*******@mozi lla.org> wrote in message
news:%2******** *******@TK2MSFT NGP11.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*******@mozi lla.org> wrote in message
news:%2******** *******@TK2MSFT NGP11.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
7674
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
1743
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 DataSet that is accessed and maintained by Data Access Object (DAO) and I would like that DataSet to be re-used on each form. The problem I have is that when I drag a DataSet component onto a form, I am having trouble linking it to the DataSet...
4
4595
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. How would i go about doing this?
2
2456
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 fine. However, when attempting to assing default values as designtime in the propertygrid, nothing is working on the class object. I know that I am doing it wrong, any ideas what it is? Thanks in advance
1
2589
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, introduced, used, potentially evaluated and accessible. They all seem to have subtle difference in meanings. Any positive contribution to the following will be appreciated. Here is my attempt to make sense of these:
2
2288
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 and #endregion?
1
1583
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 RecreateHandle() after calling Region.Makeinfinite() it works. I Don't understand why it does not work if i don't call RecreateHandle(); Johan
1
2069
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 basically analogous to `alloca'. However, it does not align each buffer on a boundary sufficient for _any_ type. Instead, it dynamically calculates the types alignment requirements and mutates the offset accordingly. This makes it more efficient wrt...
8
3178
by: Chris M. Thomasson | last post by:
Here is the initial crude implmentation which compiles under Comeau with no warnings: ___________________________________________________________________ #include <cassert> #include <cstdlib> #include <new> #include <list> template<typename T, std::size_t BUFDEPTH = 1024>
0
11265
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10858
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10951
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10484
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9662
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5882
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4707
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4296
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.