OK, this one has me completely at a loss. Please note that the capitalized
names in the following are for reference only and do not reflect the casing
used for the actual namespaces or types.
I have one assembly that is common to the client and server component, let
us call it COMMON. This is the name of the namespace as well. Inside this
namespace I have defined a public enum named MY_ENUM.
Inside this same assembly I defined another namespace that can be used by
both client and server components, called COMMON.WIN32 -- as the name
implies, this namespace contains some basic WIN32 interface stuff that can
be called from both client and server code.
For the server components I have another assembly that defines another
namespace, COMMON.WIN32.SE RVER, that contains some more WIN32 API stuff and
wrappers that are only used in server-side components.
Now, the problem is that the client code contains a "using COMMON" and is
able to access MY_ENUM.ENTRY1 without problem, bu the code in the server
assembly (inside a COMMON.WIN32.SE RVER class) generates an error on a
reference to MY_ENUM.ENTRY1 indicating that I may be missing a namespace
reference -- that file also contains a "using COMMON" as well as a "USING
COMMON.WIN32" statement.
Strangely enough, the MY_ENUM entry also does not appear in intellisense
when typing.
Does anyone have any idea why I cannot use the enumeration from the COMMON
namespace when writing code for a deeper namespace? I saw nothing that
indicated why this should be wrong.
-Ken 4 1332
Is this a "compiler" issue or only an "intellisen se" issue? There are cases
where Intellisense does not give you something but the compiler accepts it.
So, first thing to do is to try typing it and see if the code compiles
(maybe it will).
Also, if you are working with several projects/assemblies, Intellisense will
pick up you last changes in the current project but it won't pick them up in
other projects that reference this assembly, you have to compile the
assembly that contains your latest changes to get them in your other
project's Intellisense. The end result is not always as fluid as you would
like it to be.
Bruno.
"Ken Allen" <ke******@sympa tico.ca> a écrit dans le message de
news:O6******** ******@TK2MSFTN GP12.phx.gbl... OK, this one has me completely at a loss. Please note that the capitalized names in the following are for reference only and do not reflect the
casing used for the actual namespaces or types.
I have one assembly that is common to the client and server component, let us call it COMMON. This is the name of the namespace as well. Inside this namespace I have defined a public enum named MY_ENUM.
Inside this same assembly I defined another namespace that can be used by both client and server components, called COMMON.WIN32 -- as the name implies, this namespace contains some basic WIN32 interface stuff that can be called from both client and server code.
For the server components I have another assembly that defines another namespace, COMMON.WIN32.SE RVER, that contains some more WIN32 API stuff
and wrappers that are only used in server-side components.
Now, the problem is that the client code contains a "using COMMON" and is able to access MY_ENUM.ENTRY1 without problem, bu the code in the server assembly (inside a COMMON.WIN32.SE RVER class) generates an error on a reference to MY_ENUM.ENTRY1 indicating that I may be missing a namespace reference -- that file also contains a "using COMMON" as well as a "USING COMMON.WIN32" statement.
Strangely enough, the MY_ENUM entry also does not appear in intellisense when typing.
Does anyone have any idea why I cannot use the enumeration from the COMMON namespace when writing code for a deeper namespace? I saw nothing that indicated why this should be wrong.
-Ken
"Bruno Jouhier [MVP]" <bj******@clu b-internet.fr> wrote in message
news:ud******** ******@TK2MSFTN GP12.phx.gbl... Is this a "compiler" issue or only an "intellisen se" issue? There are
cases where Intellisense does not give you something but the compiler accepts
it. So, first thing to do is to try typing it and see if the code compiles (maybe it will).
No, this is both. Intellisense is not showing it and the compiler refuses to
compile my code!
Also, if you are working with several projects/assemblies, Intellisense
will pick up you last changes in the current project but it won't pick them up
in other projects that reference this assembly, you have to compile the assembly that contains your latest changes to get them in your other project's Intellisense. The end result is not always as fluid as you would like it to be.
I am recompiling all assemblies together, so this should not be the problem.
-Ken
Ken Allen <ke******@sympa tico.ca> wrote: OK, this one has me completely at a loss. Please note that the capitalized names in the following are for reference only and do not reflect the casing used for the actual namespaces or types.
I have one assembly that is common to the client and server component, let us call it COMMON. This is the name of the namespace as well. Inside this namespace I have defined a public enum named MY_ENUM.
Inside this same assembly I defined another namespace that can be used by both client and server components, called COMMON.WIN32 -- as the name implies, this namespace contains some basic WIN32 interface stuff that can be called from both client and server code.
For the server components I have another assembly that defines another namespace, COMMON.WIN32.SE RVER, that contains some more WIN32 API stuff and wrappers that are only used in server-side components.
Do you definitely have a reference from this third assembly to the
COMMON one? Not a using statement, but a reference?
--
Jon Skeet - <sk***@pobox.co m> http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
I am not quite certain how I fixed it, but the problem has disappeared! I
removed the reference to the lower level assembly and added it again and the
problem stopped! Odd.
-Ken
"Jon Skeet [C# MVP]" <sk***@pobox.co m> wrote in message
news:MP******** *************** *@msnews.micros oft.com... Ken Allen <ke******@sympa tico.ca> wrote: OK, this one has me completely at a loss. Please note that the
capitalized names in the following are for reference only and do not reflect the
casing used for the actual namespaces or types.
I have one assembly that is common to the client and server component,
let us call it COMMON. This is the name of the namespace as well. Inside
this namespace I have defined a public enum named MY_ENUM.
Inside this same assembly I defined another namespace that can be used
by both client and server components, called COMMON.WIN32 -- as the name implies, this namespace contains some basic WIN32 interface stuff that
can be called from both client and server code.
For the server components I have another assembly that defines another namespace, COMMON.WIN32.SE RVER, that contains some more WIN32 API stuff
and wrappers that are only used in server-side components.
Do you definitely have a reference from this third assembly to the COMMON one? Not a using statement, but a reference?
-- Jon Skeet - <sk***@pobox.co m> http://www.pobox.com/~skeet If replying to the group, please do not mail me too This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: mike420 |
last post by:
I think everyone who used Python will agree that its syntax is
the best thing going for it. It is very readable and easy
for everyone to learn. But, Python does not a have very good
macro capabilities, unfortunately. I'd like to know if it may
be possible to add a powerful macro system to Python, while
keeping its amazing syntax, and if it could be possible to
add Pythonistic syntax to Lisp or Scheme, while keeping all
of the...
|
by: mike420 |
last post by:
In the context of LATEX, some Pythonista asked what the big
successes of Lisp were. I think there were at least three *big*
successes.
a. orbitz.com web site uses Lisp for algorithms, etc.
b. Yahoo store was originally written in Lisp.
c. Emacs
The issues with these will probably come up, so I might as well
mention them myself (which will also make this a more balanced
|
by: Tuang |
last post by:
I'm checking out Python as a candidate for replacing Perl as my "Swiss
Army knife" tool. The longer I can remember the syntax for performing
a task, the more likely I am to use it on the spot if the need arises.
If I have to go off and look it up, as I increasingly have to do with
Perl's ever hairier syntax, I'm more likely to just skip it, making me
even less likely to remember the syntax the next time.
So I hear that Python is easier...
|
by: David MacQuigg |
last post by:
Seems like we need a simple way to extend Python syntax that doesn't
break existing syntax or clash with any other syntax in Python, is
easy to type, easy to read, and is clearly distinct from the "base"
syntax. Seems like we could put the @ symbol to good use in these
situations. Examples:
print @(separator = None) x, y, z
@x,y:x*x+y*y -- anonymous function
|
by: Drifter |
last post by:
The quote below is part of the information i want to save to a MS Access
database - or update, as the case may be.
The original database was built a long time ago, and looking at the code for
add/update on the original site-it does not compensate for odd syntax like
the quotes. Problem i am hitting now is syntax issue in the SQL when I go to
save/update. The syntax present causes failures every time.
User said she had no problems...
| |
by: Nicolas Fleury |
last post by:
Hi everyone, I would to know what do you think of this PEP. Any comment
welcomed (even about English mistakes).
PEP: XXX
Title: Specialization Syntax
Version: $Revision: 1.10 $
Last-Modified: $Date: 2003/09/22 04:51:49 $
Author: Nicolas Fleury <nidoizo at gmail.com>
Status: Draft
Type: Standards Track
|
by: BobTheDatabaseBoy |
last post by:
the following syntax is accepted:
alter table DB2ADMIN.APPTS
add constraint appts_status
check (lob_appt_status in
( case when state_code = 'VA'
then
'P'
-- , 'I'
else 'X'
|
by: computerider |
last post by:
I have this code which works fine and will open the form to the correct record but it produces a "Type mismatch" msgbox on opening the record...
the stLinkCriteria consists of two values one of which is a number - is the syntax causing this?
********************************************************************************************
Private Sub Command13_Click()
On Error GoTo Err_Command13_Click
Dim stDocName As String
|
by: BD |
last post by:
Hi, folks.
Sorry about this - I have been R'ing all TFM's I can find, but am just
getting more frustrated.
Background:
db2 UDB 8.1 on Windows.
I'm quite new to db2, but have several years Oracle experience.
|
by: sumanta123 |
last post by:
Dear Sir
when i am getting the value from properties file the
the path showing http://127.0.0.1:81/help/Subject of Issue.txt which is right.
But in jsp in try block when pass SubjectofIssue path that time it is
showing SubjectofIssue););//http:\127.0.0.1:81\help\Subject of Issue.txt
So the error comming in jsp page.
Please look at my error log.
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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...
|
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...
|
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...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |