typelib

Including Delphi Type Libraries in repository (SVN)?

左心房为你撑大大i 提交于 2020-01-05 03:28:23
问题 What is the best way to save a Delphi Type Library in SVN. The file changes every time you compile the Application The file is not saved in a readable form of AscII It is very difficult to work out what changes have been made from one version to the next This is a major problem when more than one person is changing the file QUESTIONS: 1) Should one save an exported ‘IDL’ file in the version control ? 2) Can one covert an ‘IDL ’ into a Delphi type library If so how ? 3) What are the best

Including Delphi Type Libraries in repository (SVN)?

霸气de小男生 提交于 2020-01-05 03:26:11
问题 What is the best way to save a Delphi Type Library in SVN. The file changes every time you compile the Application The file is not saved in a readable form of AscII It is very difficult to work out what changes have been made from one version to the next This is a major problem when more than one person is changing the file QUESTIONS: 1) Should one save an exported ‘IDL’ file in the version control ? 2) Can one covert an ‘IDL ’ into a Delphi type library If so how ? 3) What are the best

COM->.NET - can't access overloaded method

百般思念 提交于 2019-12-31 03:50:22
问题 I'm trying to access a .Net library (The Image Resizer) from COM (jscript). I've tried both IDispatch and class interface generation, as well as [ClassInterface( ClassInterfaceType.AutoDual)] on the class in question. There is a method with 3 overloads: Bitmap Build(object, ResizeSettings settings) void Build(object source, object dest, string settings) void Build(object source, object dest, ResizeSettings settings) Calling Build("file",s); //works The following both generate "Wrong number of

Issues Using Midl to create a .tlb from .idl “expecting a type specification”

[亡魂溺海] 提交于 2019-12-24 04:17:12
问题 I have been having a prolonged encounter with the beast known as COM Interop... I am currently trying to generate a .tlb from a .idl file generated by the OLE/COM Object Viewer. However when trying to run Midl.exe to compile it I get an error: .\Sim.API.IDL(236) : error MIDL2025 : syntax error : expecting a type s pecification near "ImportFileStatus" My .idl file is more that 1000 lines long so I don't particularly want to post it here however, I believe the Part of interest is: typedef [uuid

Building an COM-interop enabled project without registering it during build

只谈情不闲聊 提交于 2019-12-24 00:51:07
问题 In Visual Studio 2010, I'm trying to build an COM-interop enabled C# project without registering it during build, but I DO require the assembly's typelibrary (.tlb) file, so I can import it from another C++ project in the solution. I haven't found a way of doing this - there once upon a time was a tlbexp.exe tool, but it was deprecated in favor of regasm.exe /tlb (which unlike tlbexp.exe, registers it). 回答1: tlbexp is still available in VS2010 here: C:\Program Files\Microsoft SDKs\Windows\v7

“The type library importer could not convert the signature for the member” warning in a trivial setup

此生再无相见时 提交于 2019-12-23 17:27:48
问题 Observe this most trivial IDL file: import "unknwn.idl"; typedef struct _MyStruct { DWORD len; [size_is(len)] BYTE *buffer; } MyStruct; [ object, uuid(903C11E8-46A0-4E6E-B54C-6619B6A42CCB), pointer_default(unique) ] interface IMyIntf : IUnknown { [local] HRESULT Func([in] MyStruct *pObj); }; [ uuid(BAC6289C-503C-4ADD-B27A-4F22D726C109), version(1.0), ] library Lib { importlib("stdole2.tlb"); [ uuid(76D40083-C27F-45FB-88DC-C3E7DF9B5988) ] coclass MyClass { [default] interface IMyIntf; }; };

Register type library x64 regtlib

白昼怎懂夜的黑 提交于 2019-12-23 15:08:26
问题 I'm running Windows 7 x64, and need to register a type library file (.tlb). I've done this previously (on a Vista x64 machine) but neglected to take notes as to how I achieved it... There is no regtlib.exe / regtlibv12.exe on the system. I have copied across the regtlibv12.exe from a Windows XP system, however this will "not run". I have also attempted to register the TLB via "regsvr32" (tried using both the 32 and 64 bit versions) however always get the "Windows system mismatch" error. I

Getting IDL (for TLB) from a COM+ dll when it is not provided

假装没事ソ 提交于 2019-12-23 11:49:35
问题 I have a .dll that contains some directshow filters (COM) with specific/custom interfaces to query. Most 3rd party directshow components contain embedded .tlb files that can be used for cross-enviroment communication (C# typelib import). I would hate to have to attempt to manually create the interfaces needed for c# because no idl/tlb files were provided. Is it possible to generate a tlb (or at least, an idl, which I can MIDL compile) from a COM .dll? 回答1: Yes, it is possible to reverse

activex in winform

喜欢而已 提交于 2019-12-22 13:58:48
问题 I need to put some activeX in my .Net WinForm. The provider had sent me a .tlb and the com .dll. Is this enough? How do I put it on winform? 回答1: That should be sufficent. You'll need to register that dll on your machine, add it to the dev studio Toolbox (Right click on the toolbox/Choose Items) and go to the COM tab, if you can't find it in there you can browse to the specific location and select the Type Library to use. After that you can just drag the new control to your form. A Reference

Delphi 2009 COM/ActiveX Type Library support stability

烂漫一生 提交于 2019-12-21 09:16:09
问题 Referring to TLB and maintenance issues ... My question to people (often) using the new COM/ActiveX type library support in Delphi 2009 : How stable is the implementation? Especially, I'm interested in: adding/deleting classes, changing GUIDs, renaming methods/properties, reordering methods/properties, huge type libraries (50+ classes), ... Is it as stable as in Delphi 2007 (a nightmare) or Delphi 7 (quite OK, but sometimes you have to restore the TLB file from SVN) or super-stable (as in, ..