Windows 10: Trying to call C# DLL from C++ console app

Discus and support Trying to call C# DLL from C++ console app in Windows 10 Gaming to solve the problem; I am on Windows 10 with VS 2022.I want to call a C# DLL from a C++ app.I am trying to register the C# DLL using regasm.I am getting the following... Discussion in 'Windows 10 Gaming' started by DonBaechtel, Jun 16, 2025 at 11:52 AM.

  1. Trying to call C# DLL from C++ console app


    I am on Windows 10 with VS 2022.I want to call a C# DLL from a C++ app.I am trying to register the C# DLL using regasm.I am getting the following error:C:\Users\dbaec\OneDrive\Forex\C++_App\C#_DLL\obj\x64\Debug\net6.0-windows7.0>regasm.exe /register "C:\Users\dbaec\OneDrive\Forex\C++_App\C#_DLL\obj\x64\Debug\net6.0-windows7.0\c#_DLL.dll" Microsoft .NET Framework Assembly Registration Utility version 4.8.9037.0 for Microsoft .NET Framework version 4.8.9037.0 Copyright C Microsoft Corporation. All rights reserved. RegAsm : error RA0000 : Could not load file or assembly 'System.Runtime, Ve

    :)
     
  2. Tintai Win User

    msvcp100.dll and msvcr100.dll in C:\

    Hello back TPU!

    Yesterday I saw two files(msvcp100.dll and msvcr100.dll) in my C:\ disk folder. What does this mean? I know this two files should be in C:\Windows or C:\Windows\System32 or somewhere in C:\Windows but not in main disk folder. I deleted this files but files appeared again today. Is this a virus or maybe an application? How can I check this?

    Tintai
     
  3. msvcp100.dll and msvcr100.dll in C:\

    they are microsoft visual studio files, leave em alone.
     
  4. Trying to call C# DLL from C++ console app

    IIS cannot load C++ DLL

    Hi,

    I have a c++ dll and try to call it from a web app written c# on .NET core 6.0. But i am facing two problems

    1. Can not debug the program

    2. IIS cannot load the c++ DLL(Could not find)

    Please suggest.
     
    Koushik Bhattacharjee2, Jun 16, 2025 at 11:53 AM
    #4
Thema:

Trying to call C# DLL from C++ console app

Loading...
  1. Trying to call C# DLL from C++ console app - Similar Threads - Trying call DLL

  2. Trying to call C# DLL from C++ console app

    in Windows 10 Network and Sharing
    Trying to call C# DLL from C++ console app: I am on Windows 10 with VS 2022.I want to call a C# DLL from a C++ app.I am trying to register the C# DLL using regasm.I am getting the following error:C:\Users\dbaec\OneDrive\Forex\C++_App\C#_DLL\obj\x64\Debug\net6.0-windows7.0>regasm.exe /register...
  3. Trying to call C# DLL from C++ console app

    in Windows 10 Software and Apps
    Trying to call C# DLL from C++ console app: I am on Windows 10 with VS 2022.I want to call a C# DLL from a C++ app.I am trying to register the C# DLL using regasm.I am getting the following error:C:\Users\dbaec\OneDrive\Forex\C++_App\C#_DLL\obj\x64\Debug\net6.0-windows7.0>regasm.exe /register...
  4. IIS cannot load C++ DLL

    in Windows 10 Software and Apps
    IIS cannot load C++ DLL: Hi,I have a c++ dll and try to call it from a web app written c# on .NET core 6.0. But i am facing two problems1. Can not debug the program2. IIS cannot load the c++ DLLCould not findPlease suggest....
  5. Azure and C++ DLL files

    in Windows 10 Software and Apps
    Azure and C++ DLL files: Hello,I have a web app on Azure. It uses .NET Core 3.1. I use two C++ DLL files as dependencies in the app. The first DLL depends or uses the second DLL. When I run the project in Visual Studio locally, there is no issue. When I deploy the app to Azure, it complains only...
  6. DLL is not found in c++ MFC/Win32 but is found in c++ Console application

    in Windows 10 Drivers and Hardware
    DLL is not found in c++ MFC/Win32 but is found in c++ Console application: I have a small 50 lines Console application calling on functions defined inside an MSVC DLL which works like a breeze. Now, I would like to call on the same functions from an MFC or WinAPI app. I use the same, same, same exact calling code - no difference. Yet, this time,...
  7. Calling Alarms & Clock from C#

    in Windows 10 Software and Apps
    Calling Alarms & Clock from C#: Hello, I'm developing a windows service and I need to call and affect the native Windows "Alarms & Clock" app. Up to now I've discovered it might have to do with .NET interop so I'm looking into it but other than that, I'd like a hint or two if that's feasible. Thanks...
  8. Preventing DLL hijacking in C# application

    in AntiVirus, Firewalls and System Security
    Preventing DLL hijacking in C# application: The RpcRtRemote.dll can be used to perform DLL Hijacking attack on our Windows app. Simply by planting the DLL within the same folder as our app, the executable file will execute the malicious DLL code. My security vendor advised me to bundle the actual DLL file with the...
  9. .DLL error [C:\Windows\SYSTEM32\MSIMG32.dll]

    in Windows 10 BSOD Crashes and Debugging
    .DLL error [C:\Windows\SYSTEM32\MSIMG32.dll]: 'C:\Windows\SYSTEM32\MSIMG32.dll is either not designated to run on windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support. Error status 0xc0000020.' I...
  10. "C:\Windows\SysWOW64\shell32.dll"

    in Windows 10 Gaming
    "C:\Windows\SysWOW64\shell32.dll": Hello- I have installed a couple of games (Rainbow Six Seige + Fortnite ) and both display "C:\Windows\SysWOW64\shell32.dll". as a sort of crash? Minecraft runs fine and so does everything- Dell Support Assist says my computer is fine so....? How do I access Shell32 files...