region - end region | Bytes (2024)

Home Posts Topics Members FAQ

guy

why does a mismatched region/end region result in a compilation error? surely
it should be a warning as it is only relevant to the ide and does not affect
the underlying code?

it isnt a problem , i am just interested:)
guy

Nov 21 '05 #1

3 region - end region | Bytes (1) 2713 region - end region | Bytes (2)

Herfried K. Wagner [MVP]

"guy" <gu*@discussion s.microsoft.com > schrieb:

why does a mismatched region/end region result in a compilation error?
surely
it should be a warning as it is only relevant to the ide and does not
affect
the underlying code?

'#Region...#End Region' is a preprocessor directive like '#If...#End If',
and thus checked at compile time.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #2

guy

Hi Herfried,
maybe i dindt word the question right, I realise that #Region is a
preprocessor directive, what i am puzzled by is why a mismatch produces an
exception rather than just a warning

guy

"Herfried K. Wagner [MVP]" wrote:

"guy" <gu*@discussion s.microsoft.com > schrieb:
why does a mismatched region/end region result in a compilation error?
surely
it should be a warning as it is only relevant to the ide and does not
affect
the underlying code?

'#Region...#End Region' is a preprocessor directive like '#If...#End If',
and thus checked at compile time.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


Nov 21 '05 #3

Herfried K. Wagner [MVP]

"guy" <gu*@discussion s.microsoft.com > schrieb:

maybe i dindt word the question right, I realise that #Region is a
preprocessor directive, what i am puzzled by is why a mismatch produces an
exception rather than just a warning

It produces a compile time /error/. ''#Region...#En d Region' is part of the
syntax, so there will be an error if something is wrong and not a warning.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #4

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

Similar topics

11 7579

HELP: How to convert a Region object to a GraphicsPath object

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?

.NET Framework

6 12275

#region....

by: Jim |last post by:

Are #region a bad thing or are they good? As far as I see it #region's are a bad thing as they let lazy programmmers have large and bloated methods divided into regions that then appear as small methods, they also show bad analsys and design when used in this way...... Thoughts?

C# / C Sharp

4 4568

Keep a point inside a region?

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?

C# / C Sharp

2 3161

Region visible in another Region?

by: Brian Basquille |last post by:

Another question for ye all.. How do i check if a Region has entered another region? Up until now, i've been checking if rectangles (or images converted into Rectangles) have been visible in a Region (Region.IsVisible) but all parameters in IsVisible seem to be for Rectangles / points. To check if a Region is in another Region, i'd...

C# / C Sharp

1 2570

visibility, declarative region, scope, validity, introduction and accessibility

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...

C / C++

232 13071

Requesting advice how to clean up C code for validating string represents integer

by: robert maas, see http://tinyurl.com/uh3t |last post by:

I'm working on examples of programming in several languages, all (except PHP) running under CGI so that I can show both the source files and the actually running of the examples online. The first set of examples, after decoding the HTML FORM contents, merely verifies the text within a field to make sure it is a valid representation of an...

C / C++

1 1555

Region.Makeinfinite has no effect

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

C# / C Sharp

3 4498

how to indent/dedent a region in emacs?

by: Grant Edwards |last post by:

I've recently switched from Jed to Emacs for editing python source, and I'm still stumped as to how one indents or dedents a region of code. In Jed it's 'C-c <' or 'C-c >'. Google has found several answers, but none of them work, for example I've tried bot "C-c tab" and "C-c C-r" based on postings Google has found, but neither appears to...

Python

1 2049

Static Region Allocator...

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...

C / C++

8 3159

a simple type-based C++ region allocator...

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>

C / C++

7351

Changing the language in Windows 10

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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...

Windows Server

7593

Problem With Comparison Operator <=> in G++

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. ...

C / C++

7744

Maximizing Business Potential: The Nexus of Website Design and Digital Marketing

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...

Online Marketing

1 7350

The easy way to turn off automatic updates for Windows 10/11

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...

Windows Server

7691

Discussion: How does Zigbee compare with other wireless protocols in smart home applications?

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...

General

5887

AI Job Threat for Devs

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...

Career Advice

1 5276

Access Europe - Using VBA to create a class based on a table - Wed 1 May

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...

Microsoft Access / VBA

4896

Couldn’t get equations in html when convert word .docx file to html file in C#.

by: conductexam |last post by:

I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...

C# / C Sharp

1 973

How to add payments to a PHP MySQL app.

by: muto222 |last post by:

How can i add a mobile payment intergratation into php mysql website.

PHP

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

To disable or enable advertisem*nts and analytics tracking please visit the page.

region - end region | Bytes (2024)
Top Articles
Latest Posts
Article information

Author: Dean Jakubowski Ret

Last Updated:

Views: 5405

Rating: 5 / 5 (50 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Dean Jakubowski Ret

Birthday: 1996-05-10

Address: Apt. 425 4346 Santiago Islands, Shariside, AK 38830-1874

Phone: +96313309894162

Job: Legacy Sales Designer

Hobby: Baseball, Wood carving, Candle making, Jigsaw puzzles, Lacemaking, Parkour, Drawing

Introduction: My name is Dean Jakubowski Ret, I am a enthusiastic, friendly, homely, handsome, zealous, brainy, elegant person who loves writing and wants to share my knowledge and understanding with you.