Questions tagged [comvisible]

50 questions
3
votes
1 answer

Calling .NET 2.0 assemblies in .NET 1.1

Recently I developed a internal framework in .NET 2.0 version, which is basically classes and helpers. The problem is I have some .NET 1.1 sites and applications and would like to use my framework from them. I know that I can't call .NET 2.0 in…
pedrofernandes
  • 16,354
  • 10
  • 36
  • 43
3
votes
3 answers

Passing binary data in a string as a COM event parameter

I am trying to get binary data from .NET into FoxPro (a COM compliant language). I have a .NET object that is ComVisible and an event interface with an event with a string parameter. In my example below I have a dummy implementation that returns a…
joshperry
  • 41,167
  • 16
  • 88
  • 103
2
votes
1 answer

c# (Xna) ErrorCode: CA1405 "Game1" is marked ComVisible(true) but has the following ComVisible(false) types in its object hierarchy: 'Game'

I have this error CA1405 "Game1" is marked ComVisible(true) but has the following ComVisible(false) types in its object hierarchy: 'Game' inside what originally was the game1 class. I don't quite understand what this ComVisibility is about, but non…
harlekintiger
  • 337
  • 7
  • 22
2
votes
1 answer

Com Visibility in referenced assemblies

If I have the follwing assemblies: MyComVisibleApi: a .Net assembly that is used by a VB app MyReferencedAssembly: a .Net assembly referenced by MyComVisibleApi Does MyReferencedAssembly need to be ComVisible if its functionality is never directly…
sydneyos
  • 4,527
  • 6
  • 36
  • 53
2
votes
1 answer

Why does IDisposable have the [ComVisible(true)] attribute?

I've inherited a large legacy ASP.NET application where I work, and our company wants us to use FxCop and fix all major rule violations. Currently a rule that seems to be prevalent is the following: CA1405: COM visible type base types should be COM…
Jay Sullivan
  • 17,332
  • 11
  • 62
  • 86
2
votes
1 answer

ClickOnce application deployment and .NET COM visible dll registration

I have a clickonce application. I need to register COM visible dll for that application. I used registration in the code of that application that checks if this was already registered and registers it by RegistrationServices class method…
Maksidrom
  • 41
  • 4
2
votes
2 answers

How I can use an app.config file with a comvisible class library?

I'm working on this ComVisible class library that uses a third party component.This component needs some settings to be added to the config file.Since the application that uses my dll is a VB 6 application I don't know where should I put the config…
Beatles1692
  • 5,214
  • 34
  • 65
2
votes
2 answers

How can I tell if a DLL is ComVisible?

I have a DLL that may or may not have its ComVisible attribute set to true. I'm not sure how it was built, or with what attributes? All I know is that it's a .Net DLL. Simply put, how can I tell if it is Com Visible? Sorry if this is a duplicate.…
user2023861
  • 8,030
  • 9
  • 57
  • 86
2
votes
1 answer

Passing Dictionary to ObjectForScripting with WPF WebBrowser

I am using a WebBrowser component in WPF to host some JavaScript + HTML and I want to be able to pass a customisable object in as the ObjectForScripting property. My end goal is that the javascript running in the WebBrowser can call something…
Steve Greatrex
  • 15,789
  • 5
  • 59
  • 73
2
votes
0 answers

How to pass Delphi empty string to com visible .net assembly

I have a C# assembly that contains a ComVisible class with a method taking 2 string parameters. I have registered the assembly and imported it using Delphi XE2's "Import Component" command. The C# interface looks like this: [ComVisible(true), …
Gerhard Wessels
  • 681
  • 1
  • 9
  • 18
1
vote
0 answers

Tlbimport (tlb generated from a C# library)

We have created a simple C# class library like this (ClassLibrary1): [ComVisible(true)] public struct MyTestStruct { public int z; public int h; } [ComVisible(true)] public interface IMyTestInterface { void…
1
vote
1 answer

ComVisible() vs ComVisibleAttribute()

Whats the difference between using [ComVisible()] and [ComVisibleAttribute()] ? They do exactly the same thing so whats the difference? Thank you.
user6438653
1
vote
2 answers

Debug com visible dll managed code

I have written a COM visible dll, which will be called from a native Win32 program. For debugging purposes I added a simple WinForms client to the solution containing the dll. Now when I set a breakpoint in the dll, that breakpoint is hit, but I…
Miel
  • 3,347
  • 2
  • 26
  • 39
1
vote
1 answer

Making .NET assembly COM-visible and working for VB5

I have an assembly which I have managed to make visible to VB6 and it works, but having a problem accomplishing the same thing with VB5. For VB6, I have built the assembly, made it COM-visible, registered it as a COM object etc., and the assembly…
Cyberherbalist
  • 12,061
  • 17
  • 83
  • 121
1
vote
1 answer

Calling a C# dll from C++ using CoCreateInstance

My ProjectA a C# class library with one single class : namespace myLib { // Interface declaration. [Guid("Some GUID")] [InterfaceType(ComInterfaceType.InterfaceIsDual)] public interface ICsClass { [DispId(1)] …
Suave Nti
  • 3,721
  • 11
  • 54
  • 78