Questions tagged [comvisible]
50 questions
1
vote
2 answers
SoapException not caught in a ComVisible class
I am developing a ComVisible library in .NET which is then called in an old VB6 class. What I basically do in the class is calling a web service, parsing the response and returning an object with necessary data. The web service is designed so that…

Azimuth
- 2,599
- 4
- 26
- 33
1
vote
0 answers
What is the quickest way to add a COM visible event to VB.NET class?
What is the quickest way to add a COM visible event to VB.NET class?
Is there something in the Visual Studio toolbox or is there a macro that will do this?
I am using VS2005.
EDIT: In this article…

Paul Lassiter
- 2,641
- 5
- 22
- 25
0
votes
2 answers
Debugging Com-Visible DLL for VB6 App
I'm updating an app that was written in VB6. I want to write the New code in VS2010 and keep it in a DLL. But I cannot figure out how to Debug the DLL code. I can get it to step into the DLL code from a test app in VS2010, but not from the real app…

Tony Raymond
- 187
- 10
0
votes
1 answer
CA1017 ComVisible related errors with VS2010 StyleCop
I have CA1017 error message with StyleCop saying I need to make it ComVisible false.
Error 18 CA1017 : Microsoft.Design :
Because 'NationalInstruments.Labview.FPGA.ModelsimCommunicator.dll' exposes externally
visible types, mark it with…

prosseek
- 182,215
- 215
- 566
- 871
0
votes
0 answers
How do I find the file containing a ComVisible class registered using regasm?
I have written a class in C# and marked it ComVisible. I uploaded it to my customer's computer and registered it using RegAsm. But when I try to use it from a Python script, I get an error saying "The system cannot find the file specified." If I…

ROBERT RICHARDSON
- 2,077
- 4
- 24
- 57
0
votes
1 answer
What exception type does C++ see when a C# class marked ComVisible throws an exception?
I have a C# class marked ComVisible that has a function that writes to a file. If the folder the file is supposed to be written to does not exist, it throws a System.IO.DirectoryNotFoundException. If I use throw; to raise it back to the C++…

ROBERT RICHARDSON
- 2,077
- 4
- 24
- 57
0
votes
1 answer
Access to an SSL encrypted WebResource fails via a ComVisible DLL
I used C# to create a DLL that uses a WebRequest to access a WebService. This DLL is declared as ComVisible, so I can use it with Delphi.
If the WebRequest works unencrypted, everything works fine. But when I use https as protocol, I get the…

Robert Hofmann
- 1
- 1
0
votes
2 answers
Passing array of string from Delphi 7 to COM Visible C# .net DLL
I have a C# DLL (.NET 2.0 framework) which is setup as COM Visible.
The Interface is declared as
[Guid("....")]
[InterfaceType(ComInterfaceType.InterfaceIDispatch)]
public interface IMyClass
{
[DispId(1)]
string myFunc(string url, ref string[]…

Ray Chang
- 113
- 1
- 4
0
votes
1 answer
.NET: Make an object and all of its subordinate objects COM visible
I've got a proprietary assembly with a class, which needs to be COM visible, so I can use it with other (non .NET) applications.
Imagine a class like this:
public class CProprietary
{
public CProprietary2 oSubItem;
}
public class…

David Gausmann
- 1,570
- 16
- 20
0
votes
1 answer
.net COMVisible/ComInterop - can you use a type without registering it?
My first attempts at this have failed but I'm hoping it is possible. If I have a class like this that is COM registered:
[ComVisible(true)]
public interface Resolver
{
object Resolve(string…

Andrew
- 691
- 6
- 17
0
votes
0 answers
Passing VB6 classes from dll to vb script through c#.net
I have a dll containing VB6 classes (.cls files).
I have a VB script that uses these classes.
I have a C#.Net program that runs the script using Microsoft Script Control library (Ref:…

Rashmi Pandit
- 23,230
- 17
- 71
- 111
0
votes
0 answers
comvisible c# dll , needs to be updated
I am going nuts over why a com dll does not get updated on a target server .
I had a DLL that worked before , now the code been updated and new functions been added.
( My dll is a .net v4 (x86) )
I did a regasm /codebase /register /tlb *.dll and…

Gabor
- 91
- 1
- 6
0
votes
1 answer
DataTable.ReadXml not working in comvisible library when called from Word VBA
I'm trying to de-serialize an xml string into a DataTable.
When i call the code from .NET (WinForms project) the code works perfectly but if i call the code from Word VBA i get an exception saying "Value cannot be null."
Just to be clear, my…

Kenneth Lauritsen
- 335
- 1
- 3
- 11
0
votes
0 answers
How to access an excel Add-In String parameter from excel workbook VSTO
I tried following the examples on MSDN. I have a String parameter that i need to access from VB.Net VSTO Excel WorkBook. I have opened up ComVisible in the Add-In and declared my interface, and declared a class to expose the interface.
The function…

Elias Andraos
- 1
- 1
0
votes
0 answers
.net Com visible classes is unavaliable
I have write a library and need to make a Com-wrapper for it.
regasm says what registration of com library is successful, then I am adding library to VBA references but methods and classes is unavailable.
using System.Linq;
using…

Alexey Kulikov
- 1,097
- 1
- 14
- 38