Questions tagged [interopservices]

84 questions
1
vote
1 answer

Make Unity aware of System.Runtime.InteropServices to build project for HoloLens using HoloToolKit

First of all, thank you guys so much, your posts, and answers here have been invaluable in my HoloLens development efforts! So, here is my issue: Old project developed when HoloToolKit was first starting out. Now want to implement spatial mapping…
1
vote
4 answers

COMException (0x80040154): Class not registered when using AxAcroPDFLib

I am getting following error when using AxAcroPDF System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) The line which throws error is…
Ansar Muhammad
  • 1,238
  • 5
  • 25
  • 45
1
vote
1 answer

How do I get child windows from another process and not child controls?

I am tasked with finding a way to make another application appear on top of other windows (Always On Top). I am able to get processes that have a Window Title using the RetrieveProcesses() function. Once the user selects which process they want to…
Gabriel Graves
  • 1,751
  • 1
  • 22
  • 40
1
vote
2 answers

What does #if !USING_NET11 using System.Runtime.InteropServices.ComTypes; #endif mean?

What does the following code mean and what does it do? Is it really required? #if !USING_NET11 using System.Runtime.InteropServices.ComTypes; #endif In my project file I have implemented the web cam capture using the dshownet wrapper. The above…
Haxed
  • 2,887
  • 14
  • 47
  • 73
1
vote
1 answer

Autodesk.Inventor.Interop.dll on WinServer 64-bit 2012 R2 - interface non registred

i'm trying to develop a very simple web application based on the Autodesk Inventor engine. I'm developing on Win7 64-bit with Visual Studio 2010 and Inventor 2015 and everything it's working perfectly on debugging but when i publish on the web…
1
vote
2 answers

COMException with interopServices C# in Excel

I am facing a very annoying problem while installing my program on some machines, I have developed a C# application and everything goes OK and surely I tested it on another machines with no problem but when I am installing it on my client machine…
wisdom
  • 412
  • 2
  • 5
  • 20
1
vote
1 answer

C# IteropServices with C++ dll - works in excel?

I have a C++ dll that I am trying to get working in my C# project (I know nothing about C++/C but do have the source and can open and build it in VS2013) The dll came with working examples in Excel VBA but I cant get it working in C#. The error I…
Dave S
  • 11
  • 1
1
vote
1 answer

Calling .NET Assembly from PowerBuilder (Exposing .NET Framework Components to COM)

Here is the programming environment. Framework: ASP.NET Framework 4 Language: Visual C# 2010, PowerBuilder 12.5.2 Build 5609 Built on Jan 2 2014 at 01:29:51 Here is the scenario. I'm creating a PowerBuilder application that fires up a simple…
Prince Deekay
  • 382
  • 5
  • 16
1
vote
1 answer

C# DllImport not found in context, but Interpor Services are bound in

I have a problem with my compiler not being able to import kernel32.dll, althrough I'm using System.Runtime.InteropServices. Here is the Code: using System; ... using System.Runtime.InteropServices; namespace server { …
Jan H.
  • 41
  • 8
1
vote
1 answer

Creating a Bitmap from an IntPtr

I am trying to figure out how to use an USB Video Camera API which is somewhat not very clear (at least it seems to count on previous knowledge from the developer, and I don't think I understood the "whole picture", pun intended). I have the…
heltonbiker
  • 26,657
  • 28
  • 137
  • 252
1
vote
4 answers

Hide minimize, maximize, close buttons from a window and show the icon

I'm trying to hide the minimize, maximize and close buttons from the top of my window and still display my icon. I have tried a couple different things but can't get the icon to stay. This is the code I am working with: private const int GWL_STYLE…
Miguel
  • 1,157
  • 1
  • 15
  • 28
1
vote
0 answers

How do you import definitions from a C library using mono and Runtime.Interopservices?

I am totally unfamiliar with C-Sharp so this is all new to me but I have a framework I am trying to use with mono. I can import functions from the framework fine, but there are a lot of for instance type definitions (in the form of C preprocessor…
DumbBrunette
  • 83
  • 1
  • 6
1
vote
1 answer

"public" vs. "internal" C# class implementing IDispatch

I am writing a class that will serve as an IE WebBrowser container, and which is also going to be implementing the IDispatch interface, so some of its methods have DispID attributes: public class IEContainer : IOleClientSite, …
O.T.Vinta
  • 217
  • 1
  • 4
1
vote
1 answer

Why isn't there an AutoUnknown value in the System.Runtime.InteropServices.ClassInterfaceType Enumeration?

The System.Runtime.InteropServices.ClassInterfaceType Enumeration in .NET has an AutoDispatch value and an AutoDual value, but no AutoUnknown value. Why doesn't it, and has anyone already come up with a fairly automated way of accomplishing it, so…
bob
  • 452
  • 4
  • 11
1
vote
1 answer

Shorten amount of DllImport in C#?

Here is a sample of my C# code. Is there a way to decrease the amount of DllImport attributes? namespace CSLib { class Program { static void Main(string[] args) { CLib.test(); CLib.test2(3); …
user34537