typelib

How to generate GIR files from the Vala compiler?

瘦欲@ 提交于 2019-12-21 04:27:19
问题 I am trying to create python bindings to a vala library using pygi with gobject introspection. However, I am having trouble generating the GIR files (that I am planning to compile to typelib files subsequently). According to the documentation valac should support generating GIR files. Compiling the following helloworld.vala public struct Point { public double x; public double y; } public class Person { public int age = 32; public Person(int age) { this.age = age; } } public int main() { var p

TLB to managed .NET assembly without Regsrv32 at deploy time

喜你入骨 提交于 2019-12-20 03:08:09
问题 I have a TLB that was provided as a part of a third-party API. I used TLBIMP.exe to generate a DLL assembly wrappper. However, at development time, it appears that the assembly requires registration with regsvr32 to be used. This isn't a problem at development time however; I am using managed instances in production and registering the DLL manually will be a pain if not impossible when I deploy. Is there a way to use the managed DLL assembly in a way that doesn't require the registration step

warning MSB3391: <DLL> does not contain any types that can be unregistered for COM Interop

你。 提交于 2019-12-19 05:22:08
问题 I've made a simple C# DLL (that's part of a much larger project) using VS2005. I need to use the DLL in Excel via VBA code so I am using COM Interop on the assembly. I am trying to make the build process automatically generate the necessary TLB file so that I don't need to go to the command line and use regasm after every build. My problem is that although the DLL compiles and builds fine, it does not generate a TLB file. Instead, the error in the title prints out in the output box. I've

How to get code-completion for COM programming in PyCharm?

柔情痞子 提交于 2019-12-19 04:00:20
问题 When using app = win32com.client.Dispatch('Some.Application') , is there any feasible way get code-completion in PyCharm? It is rather tedious having to retype (or copy-paste) everything from an API documentation, so would creating skeletons be. Is there no other way to let PyCharm know about the Interface provided via COM, especially if I can provide a .tlb file? Or is there at least some way automatically generate such a skeleton (or a wrapping module?) from the TypeLib? 回答1: Since there is

Delphi and COM: TLB and maintenance issues

試著忘記壹切 提交于 2019-12-18 04:44:13
问题 In the company that i work, we develop all the GUI in C#, but the application kernel is mainly developed in Delphi 5 (for historical reasons), with a lot of components made in COM+. Related to this very specific sort of application a I two questions: Experienced guys in Delphi and/or COM, do you have any workrounds to work with the buggy TLB interface ? Some of the bugs are: IDE crashing during edition of a large TLB, lost of methods IDs, TLB corruption, etc. Here, we haven't found any good

Generate manifest files for registration-free COM

一世执手 提交于 2019-12-16 20:44:46
问题 I have some applications (some native, some .NET) which use manifest files so that they can be deployed in complete isolation, without requiring any global COM registration. For example, the dependency on the dbgrid32.ocx com server is declared as follows in the myapp.exe.manifest file which sits in the same folder as myapp.exe: <?xml version="1.0" encoding="utf-8" standalone="yes"?> <assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1"> <assemblyIdentity type="win32" name=

Generate manifest files for registration-free COM

三世轮回 提交于 2019-12-16 20:44:27
问题 I have some applications (some native, some .NET) which use manifest files so that they can be deployed in complete isolation, without requiring any global COM registration. For example, the dependency on the dbgrid32.ocx com server is declared as follows in the myapp.exe.manifest file which sits in the same folder as myapp.exe: <?xml version="1.0" encoding="utf-8" standalone="yes"?> <assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1"> <assemblyIdentity type="win32" name=

How do I create interface methods using .tlb types in VS C++?

北城余情 提交于 2019-12-12 21:17:35
问题 Background: The .TLB file contains interfaces written in language 'X'. I don't have .h, .idl, .tlh, or any other header files - just the .TLB file. Language 'X' does not export compatible .h, .idl, etc. I use the VS wizard to add an ATL simple object to my ATL project. I want to add a method to the interface of my simple ATL object that uses one of the .TLB defined types for a parameter. // Something like the following in the .idl file: interface ISomeInterface : IUnknown { HRESULT SomeMethod

.tlh generated on 2 machines is different

扶醉桌前 提交于 2019-12-12 08:03:54
问题 I have a .NET dll which has some interfaces\classes which are exposed to com. during the build procedure a .tlb file is generated and this tlb is referenced by some c++ code. As a result the compiler generates a .tlh file for the tlb. When I run the build locally one of the properties in one of the interfaces ends up with a corresponding method in the tlh which does not have the same name. The property in the .net code is called PropertyA end up being called get_propertyA, while PropertyB

error C1084: Cannot read type library file

穿精又带淫゛_ 提交于 2019-12-12 01:45:51
问题 I have a windows application including some console and c++ projects. While building application i am getting below mentioned error:- error C1084: Cannot read type library file... Biodentify.Gina.Services.tlb: Error loading type library/dll Does anyone know how to solve it? 回答1: Is the type library at the right place? Are your app and the type library both 32bit or 64bit? Are there any includes in your type library? If your type library includes another type library, keep in mind that the