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? 4 8681
"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
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.
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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?
|
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...
|
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?
|
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...
|
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...
| |
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?
|
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
|
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...
|
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>
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
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...
| |
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...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |