473,785 Members | 2,349 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Not CLS-compliant warning...

Hi,

I just migrated my application to VS2005 and I get 2 warnings saying:

"Type of parameter 'app' is not CLS-compliant."

"Return type of function 'AppInventor' is not CLS-compliant."

Can anyone help me understand what these warning errors mean and how to fix?

Thanks for the usual help,
Glenn
Oct 16 '06 #1
3 29606
Glenn,
Normally the first thing I do when I see this is verify that I have:

<Assembly: CLSCompliant(Tr ue)>

In my AssemblyInfo.vb file. This informs the VB compiler that all the types
in that assembly are CLS Compliant.

Then on a case by case basis I will add <CLSCompliant(F alse)to respective
types and/or type members that I verify are not CLS Compliant.

http://msdn.microsoft.com/library/de...classtopic.asp

http://msdn.microsoft.com/library/de...cification.asp

--
Hope this helps
Jay B. Harlow
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"Glenn Palomar" <gl***********@ autodesk.comwro te in message
news:uv******** ******@TK2MSFTN GP05.phx.gbl...
Hi,

I just migrated my application to VS2005 and I get 2 warnings saying:

"Type of parameter 'app' is not CLS-compliant."

"Return type of function 'AppInventor' is not CLS-compliant."

Can anyone help me understand what these warning errors mean and how to
fix?

Thanks for the usual help,
Glenn

Oct 17 '06 #2
I received a similar warning when I brought an xml file into my project.
There was a node name of Table in the file that caused a number of such
warnings.

On the warning line, look at the File column and you will see the file to
which it is referring.

"Glenn Palomar" <gl***********@ autodesk.comwro te in message
news:uv******** ******@TK2MSFTN GP05.phx.gbl...
Hi,

I just migrated my application to VS2005 and I get 2 warnings saying:

"Type of parameter 'app' is not CLS-compliant."

"Return type of function 'AppInventor' is not CLS-compliant."

Can anyone help me understand what these warning errors mean and how to
fix?

Thanks for the usual help,
Glenn


Oct 17 '06 #3
Thanks for the input. I resolved the issue by specifying
CLSCompliant(Fa lse).

Glenn

"Jay B. Harlow" <Ja************ @tsbradley.netw rote in message
news:47******** *************** ***********@mic rosoft.com...
Glenn,
Normally the first thing I do when I see this is verify that I have:

<Assembly: CLSCompliant(Tr ue)>

In my AssemblyInfo.vb file. This informs the VB compiler that all the
types in that assembly are CLS Compliant.

Then on a case by case basis I will add <CLSCompliant(F alse)to
respective types and/or type members that I verify are not CLS Compliant.

http://msdn.microsoft.com/library/de...classtopic.asp

http://msdn.microsoft.com/library/de...cification.asp

--
Hope this helps
Jay B. Harlow
.NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"Glenn Palomar" <gl***********@ autodesk.comwro te in message
news:uv******** ******@TK2MSFTN GP05.phx.gbl...
>Hi,

I just migrated my application to VS2005 and I get 2 warnings saying:

"Type of parameter 'app' is not CLS-compliant."

"Return type of function 'AppInventor' is not CLS-compliant."

Can anyone help me understand what these warning errors mean and how to
fix?

Thanks for the usual help,
Glenn


Oct 19 '06 #4

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

Similar topics

2
2442
cls
by: Art McClure | last post by:
May I ask a dumb question? I am working with Python 2.3 IDLE. I want to completely clear the screen except for the ">>>", of course. What do I use? I have tried a number of suggestions, but they don't do the job.
2
1789
by: David MacQuigg | last post by:
I think there is a documentation error in both the Library Reference section 2.1 and the Python 2.2 Quick Reference page 19. The explanation for this function is: super( type) Returns the superclass of type. I could not get this function to work right until I realized that it is searching the entire MRO, not just the superclasses of 'type'. Here is a simple experiment to show the difference.
25
4652
by: BOOGIEMAN | last post by:
I've just finished reading Python turtorial for non-programmers and I haven't found there anything about some usefull commands I used in QBasic. First of all, what's Python command equivalent to QBasic's "goto" ? Secondly, how do I clear screen (cls) from text and other content ? And last, how do I put program to wait certain amount of seconds ? If I remeber correctly I used to type "Wait 10" and QBasic waits 10 seconds before proceeding...
1
1503
by: shefali | last post by:
Hi, I have an aspx page with a web form. I need to change the page that this form posts to depending on certain conditions. To do so, I have Javascript code on the page that looks like: function OnLoadFunc() { if(document.Form1.elements.value == 'regd')
1
2022
by: Oscar Thornell | last post by:
Hi! I have a strongly typed dataset based on a db (SQL Server)... One of the tables contains a column with name: ISO-3166-A2 and data type nchar(2)... The generated code (xsd.exe) in the dataset looks like this: public string _ISO_3166_A2 { ....
0
2698
by: manoj.sahu | last post by:
hi all, as per my study CLS is the common set of specification which should by meet by the language which want to target CLS(or .net). and CTS is the set of common types(or common data types) which should be supported by all .net language. to be common data type in all language is neccesary condition but its not suffiicient. means to say common data type may be 1 of the specs but it's not all. and cls means all common specs.
22
4241
by: mp | last post by:
i have a python program which attempts to call 'cls' but fails: sh: line 1: cls: command not found i tried creating an alias from cls to clear in .profile, .cshrc, and /etc/profile, but none of these options seem to work. my conclusion is that a python program that is executing does not use the shell (because it does not recognize shell aliases). is this correct?
1
1199
by: Smokey Grindle | last post by:
Is there a good explination of what would cause a CLS warrning in .NET 2.0 out there anywhere? like list of reasons and examples of what cause an object or type to not be CLS complaint? thanks!
3
21576
by: james_027 | last post by:
hi, is cls & self the same thing? I have seen something like class A: def dosomething(cls): #doing something
9
27468
AmberJain
by: AmberJain | last post by:
Hello, What is the difference between --------> 1. clrscr(); // defined in various header files 2. system("cls"); //available in stdio.h in bloodshed dev c++ Well, if there are no differences, then can we use them interchangebly?
0
9646
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, 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...
0
9483
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,...
0
10346
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
9956
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
8982
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...
1
7504
isladogs
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...
0
5514
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4055
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
3
2887
bsmnconsultancy
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...

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.