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 7403553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:06:56+00:00 2026-05-29T05:06:56+00:00

I try to register a custom filter for DirectShow but windows won’t register it

  • 0

I try to register a custom filter for DirectShow but windows won’t register it correctly.

When I run a “ASSERT Failed” box shows up telling me:

g_hInst is NULL at Line 388 in file "dllsetup.cpp"

The file is located in the Microft SKD directory in the usual samples..\dshow\baseclasses folder. When pressing “Yes” the regsvr32.exe returns successfully.

I checked the registry entry with regedit and the file path in InProcServer32 is set to the directory of regsvr32.exe itself. (which confirms the missing HINSTANCE). DllRegisterServer needs a valid DLL-instance but cant get it…but WHY?

I am stuck because of this wrong registy entry the filter cannot be added to any filter graph (error message: Error in DLL –> which means it calls regsvr32.exe to “find the filter”)

  • 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-29T05:06:57+00:00Added an answer on May 29, 2026 at 5:06 am

    From include/BaseClasses/dllsetup.cpp:

    // g_hInst handle is set in our dll entry point. Make sure
    // DllEntryPoint in dllentry.cpp is called
    ASSERT(g_hInst != 0);
    

    Not a lot of possible failure modes, the comment is pretty explicit. You probably simply forgot to call DllEntryPoint() in your DllMain() function. Which is called as soon as regsvr32.exe loads the DLL. Use the debugger in case of doubt. Project + Properties, Debugging, set the Command to c:\windows\system32\regsvr32.exe and set a breakpoint on your DllMain() function. Press F5.

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

Sidebar

Related Questions

Try as I might, I can't get a JNLP file to run locally (via
I try to use enum type as a dependency property in my custom control,
I've made a custom control that inherits from a Literal control. When I try
I have the following simple custom control that I have defined for a Windows
I have a problem with Automapper when I try use custom resolver which uses
I'm trying to get a custom template tag to work but am having some
I have a custom template tag which shows a calendar. I want to populate
I try to bind my UI to custom DependencyProperty: <Window.Resources> <local:Localization x:Key=Localization xmlns:x=#unknown xmlns:local=#unknown/>
I am trying to run BeanUtilsBean.getInstance().populate(...) but on the HTML form, there is a
When using the register.inclusion_tag() shortcut on a Custom Template Tag, assuming you define the

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.