Unable to load C# library with w10 from python Win32com module while DLL regsitered with Regasm

I am facing an issue with a C# library within a python code.

I am using a C sharp Library to be loaded via a A win32com module.

My DLL is registered via : regasm.exe MYDLL.dll as CSharp DLL cannot be registered via regsvr32.

Here is the code :

import win32com.client as win32 (1)

PL = win32.Dispatch(“MAWApplication”) (2)

after (2) I got below error :

pywintypes.com_error: (-2147221005, ‘Invalid class string’, None, None)

I tried even to run makepy.py to check library but cannot see my DLL

I tried a lot of hints but did not help,same code was working with windows 7

Did i miss something ?

Thanks you guys,

Annit.

dll – Libraries em linux

Eu li algumas coisas mas não consegui entender mt bem oq sao libraries(bibliotecas). Eu li que sao arquivos que podem ser reutilizados, podem ser compartilhados e tal. No WIndows eles sao as dll. Mas eu nao entendi o que é ele em si.
VI que no linux existe a parte la de libraries mas, como não é um arquivo que da pra ser aberto, nao da pra ser acessado, ficou uma coisa mt abstrata pra mim.
Na verdade o unico conceito de libraries que consegui entender foi as libraries da linguagem C, porque eu li que qnd usamos as libraries elas sao simplismente funções prontas. aí a gente so usa o protótipo dela(ex printf(…)).
Mas em relação ao resto nao entendi.

Um trecho sobre libraries do wikipedia:

“Ligação dinâmica significa que os dados em uma biblioteca não são
copiados para um novo executável ou biblioteca em tempo de compilação,
mas permanecem a um arquivo separado no disco. O ligador realiza uma
quantidade mínima de trabalho em tempo de compilação—ele apenas grava
quais bibliotecas são necessárias para o executável em um índice. A
maior parte do trabalho é feita quando a aplicação é carregada em
memória ou durante a execução do processo. O código de ligação
necessário é na verdade parte do sistema operacional subjacente. Na
hora apropriada, o carregador do programa encontra as bibliotecas
relevantes no disco e adiciona os dados relevantes da biblioteca no
espaço de memória do processo.”

Essa parte fala sobre o programa “puxar” as libraries pra memoria so quando acontecer a execução, mas “puxar” o que? um script de linguagem de alto nivel? não sei. Queria saber o q tem dentro de uma lib. Se alguem souber com um exemplo especifico demonstrativo acho que ajudaria :

delphi – Runtime error 217 – como descobrir uma dll com incompatibilidade

Tenho uma aplicação Delphi que roda normalmente na minha máquina com Windows 10.
Copiando esse programa com todos arquivos e dll específicas para outros computadores, de cara já dá “Runtime error 217”.
Em uma das máquinas com Windows 7, mandei o Windows procurar solução de compatibilidade, e isso funcionou.
Mas em outros, mesmo com Windows 10, o problema permanece.

Tudo indica que é carregada alguma dll nos arquivos do Windows com versão diferente e incompatível. Mas são em torno de 120 dll que são carregadas, apenas 10 são as da pasta da minha aplicação.

Existe alguma técnica para identificar qual seria essa dll?

Como na minha máquina isso não ocorre, não adianta fazer debug nela.

deployment – Are there any drawbacks to putting DLL dependencies in version control?

I am working on a multi-platform CMake project which depends on SDL2. I currently place the SDL2 DLLs in a directory of my project and I validate them via git-lfs. A CMake post-build step is then able to copy the DLLs to the output folder without other developers needing to find them and copy them manually.

My question is: is this bad practice? Are there any disadvantages that I don't consider?

I can think of two alternatives:

  1. Use a method to find the DLLs in the syspath and copy them from there.
  2. Have a script or build step that checks the files and downloads them if they are not present.

c # – Share the DLL between several .NET projects

I have a large volume of .NET applications and all projects use DLLs in common. What is the best way to get all projects to reference these DLLs, since these DLLs are updated frequently?

Current scenario: all shared DLLs are in a network directory and all projects reference this location. When the code of this DLL is modified, it is updated on the network.

I have been researching creating a NuGet server, but my biggest problem is making sure that all projects always reference updated DLLs. In other words, if there is an update in the code, this DLL will be made available on the NuGet server, ok! but it is still necessary to access project by project and update it via VS NuGet manager and this is also not feasible. (because there are also several shared DLLs)

Why when compiling the .NET Core console application we end up with dll and exe files?

Thank you for responding to Stack Overflow!

  • Make sure you respond to the question. Give details and share your research!

But to avoid

  • Ask for help, clarification or respond to other responses.
  • Make statements based on opinion; save them with references or personal experience.

For more information, see our tips on writing correct answers.

DLL and SDK files

I would like to know what is a DLL file and how to use it?
I mean I have a device that scans papers and I have to develop a Windows based application based on these drivers (DLLs) and write my code on C # or any other software.
So please, any leads or clarifications would be so appreciated!

game maker – What type do we convert the result of "get_function_address" to call the function in a C ++ DLL?

According to the documentation of the game manufacturer for handling DLLs:

get_function_address (& # 39; function_name & # 39;)

Returns the address of a GameMaker function. This can be passed on to
DLL so that can call it directly in GameMaker.

This function is not supported, so be careful when using this function.
a function.

Note: these functions use the Delphi 2010 PASCAL calling convention and string formats.

Suppose we write a C ++ DLL and want to use these function pointers to make Game Maker function calls in the DLL code.

What can we convert the function pointer to? I am familiar with switching from a C function pointer to a C ++ DLL (it is obviously obvious where you cast the pointer to; the same as what you would do in C code). However, I don't know what I would do to launch functions from the game creator. I imagine that this is a relatively "simple" thing to do once you know the magic dance. He just doesn't say what to do.

I think the page might try to tell me that this is like passing a pascal function pointer to a C ++ DLL. I do not really know. I can't be the only guy with this problem.

libbulletc.so Dll not found

I installed the BulletSharp.Netcore nuget package in Visual Sudio (2019), everything works as expected. But when I run it on ubuntu, I get a DLL not found.

I use "dotnet run Pong.csproj" in the terminal

error while loading the python DLL – Stack Overflow in Spanish

I start programming with python, I made 2 executables .exe & # 39; of 2 applications that I made with python, I made the executables in the console with pyinstaller, on my pc they work perfectly but when I pass them to another pc I get 2 errors All First, "The entry point of the ucrtbase.terminate procedure was not found in the dynamic link library api-ms-win-crt-runtime- | 1-1-0.dll ", then I get:" Python dll loading error "C: Users … python36.dll" LoadLibrary: The specified procedure was not found. "(I've already looked on Google but the results are very varied because of problems very different from mine: s)