IDM (Internet Download Manager) using C #?

I want to create an application that uses the IDM API, although it is not actually compiled into dll, these are three files created in c ++ and their extension: .h, .tlb, .c.

Here is the link to the page: IDM API .

I want to be able to use these files in a C # project, I googled it, and I found that I need to compile these files in a dll in order to be able to use them.

Please someone take a look at the links and tell me what I can do to use the API, and if you want to compile these files in a dll, please tell me how.

Thank you

+5
source share
3 answers

I will answer this question a year after his request, I'm not sure what happened, but all I did was add the link, I just added the tlb file as a link, and the library was imported. I am sure I have tried this before, but it did not work.

+1
source

You must

1) download IDMCOMAPI.zip to your disk

2) extract the IDManTypeInfo.tlb type IDManTypeInfo.tlb from this zip file, somewhere on your disk

3) run the Type Library Importer tool as follows:

 [C:\Temp]"c:\Program Files\Microsoft SDKs\Windows\\v7.1\Bin\TlbImp.exe" IDManTypeInfo.tlb Microsoft (R) .NET Framework Type Library to Assembly Converter 3.5.30729.1 Copyright (C) Microsoft Corporation. All rights reserved. Type library imported to IDManLib.dll 

This will create IDManLib.dll

4) Now you can refer to IDManLib.dll in your project. I have not tested it, but I also assume that you want your program to be compiled with the proper bit (this depends on how the IDM COM Server works). So, I suggest you compile as X86 (not anyCpu, not X64).

+8
source

The API seems to be a COM object - did you try to find it in the Add Link dialog box? COM objects are registered globally, and judging by this page, it should be there if you run "IDM" on your computer.

+2
source

Source: https://habr.com/ru/post/1394875/


All Articles