• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 552
  • Last Modified:

Assertion error when registering a DLL

I am trying to register a dll developed in Visual C++ for use in a VB 6 app. The process gives me the following error: "Debug assertion failed" and specifies Viewhtml.cpp line 419 as the file where the assertion error fails.  Is there an obvious reason why I'm gettin this error - maybe a required dll on my system (Windows NT 4 SP4).  I infortunately do not have any knowledge of what is used to develop the dll in Visual C++!  Hope somebody out there can help?
0
RosalineHe
Asked:
RosalineHe
  • 2
1 Solution
 
inprasCommented:
Hi RosalineHe
U need not regidter dll
put it in UR current directory or winnt/system directory and use following statement to access functions U will get the result

[Public | Private] Declare Sub globalname Lib libname$ [Alias aliasname$]
[(argument list)]

Regards
0
 
RosalineHeAuthor Commented:
Inpras

The VB app I am trying to write is a dll itself.  The dll I am trying to  register is more like an interface between my app and an external product and has a *tlb.  We operate according to strict standards and even though your suggestion is workable, it is not unfortunately against our standard.  Do you know of any Mfc* library that I might be missing that could cause an assertion error?
0
 
inprasCommented:
Hi
I don't think it is because of mfc library UR getting assertion failure
do U have the source code for UR dll or do U know what kind of dll it is?
I think that may be causing the registering function to fail.
Remember it is not necessary that UR dll have problems to get a assertion.
the method I have suggested is std method to access a dll even API's are excessed using this function
Hope this helps
Regards
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now