• Welcome to Valhalla Legends Archive.
 

[SOLVED] (VB6+Vista) Creating Objects

Started by Ersan, November 22, 2006, 04:52 AM

Previous topic - Next topic

Ersan

So yeah, I write an ActiveX DLL with a class that has multiuse instancing, register it (successful), and try to use its class as an object, but I get ActiveX component can't create object when I run Object = CreateObject("ProjName.ClassName") in Vista only, works fine in all previous versions of windows.  It's a shot in the dark but I figure I'll ask here if anyone knows why, or what I can do.

Grok

Is the DLL signed with a trust chain that leads to one of your trusted root providers?  Vista may have additional security requirements on COM creation and usage previously not seen in Windows.

Ersan

Guess I have some reading to do...

Warrior

Have you tried putting the ActiveX in the cwd? As a last resort you can try turning User Account Control off, I've had issues with UAC and ActiveX files anyhow..

Or maybe it's a reason to stop using VB6? :D
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

Ersan

#4
I don't for anything new, I wonder if it would work if I used "Run as Administrator".  I'll tell you when I get home.

EDIT: nope.

EDIT: It seems to work with User Account Control turned off, probably a problem with my implementation of DllRegisterServer (I use the API, but the program won't work with UAC on either) - When I get some time I'll set it to manually do the regkeys.  UAC won't let you modify the HKLM section of the registry (without Administrator priveleges, no not the "My account is in the Administrators group" kind), so if you want to implement DllRegisterServer with UAC turned on you need to use HKCU for the regkeys, not HKLM.

Warrior

Quote from: Ersan on November 23, 2006, 09:23 PM
I don't for anything new, I wonder if it would work if I used "Run as Administrator".  I'll tell you when I get home.

EDIT: nope.

EDIT: It seems to work with User Account Control turned off, probably a problem with my implementation of DllRegisterServer (I use the API, but the program won't work with UAC on either) - When I get some time I'll set it to manually do the regkeys.  UAC won't let you modify the HKLM section of the registry (without Administrator priveleges, no not the "My account is in the Administrators group" kind), so if you want to implement DllRegisterServer with UAC turned on you need to use HKCU for the regkeys, not HKLM.

There is a page on MSDN on programming with UAC in mind (Installation, Paths, etc..) I could link it to you if you want.
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?


Warrior

Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?