Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7625319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:10:36+00:00 2026-05-31T05:10:36+00:00

I have a COM DLL built using a script. There is no Visual studio

  • 0

I have a COM DLL built using a script. There is no Visual studio project available. When I register the dll using the command regsvr32 “c:\windows\system32\dllname.dll” no message is displayed.

I added a DebugBreak() in the function DllRegisterServer and also in DllMain to expect a debug dialog to be displayed. However nothing happened.

The entries expected from the DLL are NOT added to the registry.

Any suggestions on what could be missing for the DLL to register correctly and why no message is displayed.

How do I debug this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:10:37+00:00Added an answer on May 31, 2026 at 5:10 am

    DebugBreak breaks under debugger and crashes process which is not being debugged.

    What you need is to set up Visual Studio, under C++ Project settings, Debugging, so that it starts C:\Windows\system32\regsvr32.exe with your DLL, i.e. "$(TargetPath)" or full path explicitly. Start debugging and your breakpoints will be hit.

    Note that in 64-bit OS to debug 32-bit DLL you will need C:\Windows\syswow64\regsvr32.exe.

    UPD. The fact that no Visual Studio project is available is not really an obstacle. A fake project to just launch debugging session with proper command line is going to work out fine.

    Other than that if you are still able to update the source code, you can add a MessageBox into DllRegisterServer, esp. instead of DebugBreak, start COM registration, have the message box popped up, then attach Visual Studio debugger (without need to have VS project), set breakpoints and then close the message box to let the execution continue and reach the points of interest.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a COM dll, and wish to register it using regsvr32 myComdll.dll
I have a mixed-mode DLL built in visual studio 2005. In dependency walker, my
I have a COM inproc DLL that we are using in our product. Now
I have a win32 COM dll. I want to register this dll for different
I'm converting a VB6 dll to VB.Net using Visual Studio 2008 Express. I want
I have a com dll built in .net and referred it as a interop.mycomlib.dll
I have encountered an unexpected Access Error while running a project I've built using
I have to build OEM versions of a COM library (DLL). Does anyone know
Setup: I have a COM DLL that calls a method inside a managed C#
I have an ActiveX/COM DLL. It contains many methods and properties. I would like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.