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?
ValidateLogin
instead. – Daniel Rikowski