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

  • Home
  • SEARCH
  • 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 8222483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:17:55+00:00 2026-06-07T14:17:55+00:00

1) a 32bit dll is placed in C:\Windows\SysWOW64 2) Registered using regasm.exe 3) While

  • 0

1) a 32bit dll is placed in C:\Windows\SysWOW64

2) Registered using regasm.exe

3) While compiling, i set the target cpu to x86

I can add reference in my vb6 program but when i try to call the method within the dll, it failed. Error message as follow :

 "Runtime Error '-2147467261' object instance not set to an instance of an object"

Codes here :

Set m_objCLogon = CreateObject("CommonLogon.Logon")
strResult = m_objCLogon.ValidateLogin(p_strUserID, p_strEncryptedPwd, p_strAppID)

The code is pretty simple, just passing in the credentials for validation.

Anyone knows which part has gone wrong?

  • 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-06-07T14:17:56+00:00Added an answer on June 7, 2026 at 2:17 pm

    Clearly there’s nothing wrong with the registration, the error message is a .NET exception message. Your code is bombing on a NullReferenceException. That’s a very common exception and it is (nearly) always caused by a bug in your code.

    You’ll need to debug your code. Do so with Project + Properties, Debug tab. Select “Start external program” and set it to your vb6 program or c:\program files\microsoft visual studio\vb6\vb6.exe. Then Debug + Exceptions, tick the Thrown box for CLR exceptions. Press F5 to start.

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

Sidebar

Related Questions

Cdonts is not working in server 2008 (im using 32bit) i tried copying cdonts.dll
I'm developing on 32bit windows and am using appassembler to create a java service
Is there anyway to make \SysWoW64\cscript.exe the default windows 7 64-bit interpreter for VB
I have 32bit third party dll. I am using same dll in c# application.
when i'm using [VB DLL] in VS2008 running in Windows7 32BIT , it works
I have made a dll that compiles fine in 32bit mode, but when compiling
I have a perfect developer account now, copied the 32bit file libspotify.dll to SYSWOW64.
we use a self-written 32bit C++ DLL from our C# applications. Now we've noticed
I have a dll that comes in both 32bit and 64bit version. My .NET
I am working on migrating a 32-bit ISAPI dll to 64-bit. I am using

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.