473,396 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ComVisible query

I have one resource telling me that if I want to expose just 4 out of 10
methods in my class to COM I simply apply the ComVisible attribute to the
class and set it to false, then apply the same ComVisible to the 4 methods I
want to expose and set it to true.

I then go to the MSDN and find that is says "Setting the attribute to false
for a specific type hides that type and its members. However, you cannot
make members of a type visible if the type is invisible."

These seem to contradict each other in a big way. Does anyone have a
definate answer to this one?
Aug 10 '06 #1
1 1243
Try it and see what happens?

"cashdeskmac" wrote:
I have one resource telling me that if I want to expose just 4 out of 10
methods in my class to COM I simply apply the ComVisible attribute to the
class and set it to false, then apply the same ComVisible to the 4 methods I
want to expose and set it to true.

I then go to the MSDN and find that is says "Setting the attribute to false
for a specific type hides that type and its members. However, you cannot
make members of a type visible if the type is invisible."

These seem to contradict each other in a big way. Does anyone have a
definate answer to this one?
Aug 10 '06 #2

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

Similar topics

2
by: jaysonsch | last post by:
Hello! I am having some problems with a database query that I am trying to do. I am trying to develop a way to search a database for an entry and then edit the existing values. Upon submit, the...
29
by: shank | last post by:
1) I'm getting this error: Syntax error (missing operator) in query expression on the below statement. Can I get some advice. 2) I searched ASPFAQ and came up blank. Where can find the "rules"...
9
by: netpurpose | last post by:
I need to extract data from this table to find the lowest prices of each product as of today. The product will be listed/grouped by the name only, discarding the product code - I use...
3
by: Harvey | last post by:
Hi, I try to write an asp query form that lets client search any text-string and display all pages in my web server that contain the text. I have IIS 6.0 on a server 2003. The MSDN site says...
0
by: ThisBytes5 | last post by:
We are developing a comvisible object that will be called from an asp page. This object in turn will load other .net assemblies, E.G. Entlib, other in house items, WSE3.0 imp, etc... Most if not...
0
by: Scheu | last post by:
Hi all, I'm hoping someone can help me with this bizarre problem. If I create a new PerformanceCounter object in a ComVisible class and invoke it from wscript, it never seems to terminate. When...
3
by: Adam Clauss | last post by:
I am working on modifying an existing library to expose portions through COM. Is it possible to return a generic object (say, List<string>) via this? So far I have not had much luck. When...
1
by: Matt Nunnally | last post by:
I am creating a DLL in VB 2005. I have one class that I want to expose for use with COM. That class has several underlying classes that it uses which I do not want exposed. I set the ComVisible...
1
by: RedLars | last post by:
Hi, Ran Fxcop on three projects today and it complainted about not having set ComVisible. Must admit I have no experience or knowledge of COM. The three projects consist of an application and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...
0
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...
0
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,...

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.