Author Topic: Rob, CreateObject hasn't worked since Win 7  (Read 3938 times)

onthecuttingedge2005

  • Guest
Rob, CreateObject hasn't worked since Win 7
« on: November 04, 2017, 11:57:45 am »
Hi rob.

ever since I moved to windows 7 these don't work any more.

    'Set OldHalBrain = CreateObject("UltraHalAsst.Brain")
    'Set OldWN = CreateObject("UltraHalAsst.WordNet")
   
    'Set HalBrain = CreateObject("UltraHalAsst6.Brain")
    'Set WN = CreateObject("UltraHalAsst6.WordNet")

If I call from them in vb-script I get a can not create object error, if I call them from VB I get no error but they seem to not work at all.
the objects are in the registry properly but they just have issues for some reason.

They definitely don't work on my Win 7 OS.

Can we fix this, Is there a solution, I got so many plug-in that require them.

Thanks buddy
Jerry 8)

Spitfire2600

  • Sr. Member
  • ****
  • Posts: 251
    • View Profile
Re: Rob, CreateObject hasn't worked since Win 7
« Reply #1 on: November 04, 2017, 06:38:33 pm »
I have found using

Set HalXBrain = CreateObject("UltraHalAsst.Brain")

instead of

Set HalBrain = CreateObject("UltraHalAsst6.Brain")

Works for me.

-Spitfire_2600
 

onthecuttingedge2005

  • Guest
Re: Rob, CreateObject hasn't worked since Win 7
« Reply #2 on: November 04, 2017, 10:46:24 pm »
Hi Spitfire.

'HAL v5.0
'Set OldBrain = CreateObject("UltraHalAsst.Brain")
'Set OldWN = CreateObject("UltraHalAsst.WordNet")

'HAL v6.2
'Set HalBrain = CreateObject("UltraHalAsst6.Brain")
'Set WN = CreateObject("UltraHalAsst6.WordNet")

OldBrain functions were replaced by the newer one and added with Old and New in the Root of the registry.

on my windows 7 none work, not even HalXBrain, everything is there in the registry, I have unregistered and re-registered the .DLL's no fix in site here although I am suspicious about the .ext  being case sensitive like: .DLL vs .dll which is correctly used as .dll normally, I'll check it out in a little while, don't want to work right now, lol been busy all day you know.

well you know I'll post any good or bad news when I find it so stay tuned.

Jerry 8)

Medeksza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1469
    • View Profile
    • http://www.zabaware.com
Re: Rob, CreateObject hasn't worked since Win 7
« Reply #3 on: November 04, 2017, 10:51:16 pm »
Does the standard Hal brain work ok though? Or does nothing work?

Try running Ultra Hal as administrator. Shut down and exit out of Hal, and then relaunch Hal by right clicking on its icon and select "Run as administrator". If it works as administrator then we know its a permission setting in Windows we need to fix. It should definitely not require being an administrator and is something that can probably be fixed.
Robert Medeksza

onthecuttingedge2005

  • Guest
Re: Rob, CreateObject hasn't worked since Win 7
« Reply #4 on: November 04, 2017, 11:08:47 pm »
Does the standard Hal brain work ok though? Or does nothing work?

Hi Rob.

The Standard HAL works fine, great actually but the .DLL call ends with cannot create object: Error 429(ActiveX component can't create object) my list of vbscript errors in general can be used here. http://www.ultrahal.com/community/index.php?topic=677.0

Quote
Try running Ultra Hal as administrator. Shut down and exit out of Hal, and then relaunch Hal by right clicking on its icon and select "Run as administrator". If it works as administrator then we know its a permission setting in Windows we need to fix.

Tried it and error remains the same.

Quote
It should definitely not require being an administrator and is something that can probably be fixed.

Is the .ext HalBrain.DLL supposed to be .dll, is .ext case sensitive or does it even matter?

If I can't get these working it will drastically curve plug-ins for old and new members and using them inside other routines outside of HAL.

Gotten kind of eager to test some stuff out, lol
Jerry
« Last Edit: November 05, 2017, 01:56:53 am by OnTheCuttingEdge »

Medeksza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1469
    • View Profile
    • http://www.zabaware.com
Re: Rob, CreateObject hasn't worked since Win 7
« Reply #5 on: November 04, 2017, 11:46:27 pm »
It's not case sensitive so that should not be the issue. I can't currently think of any other suggestions off the top of my head. It may take some sleuthing around with sysinternals tools from https://docs.microsoft.com/en-us/sysinternals/ to try to track down the cause.

I will be interested though if Hal 7.0 behaves differently for you. Hal 7.0 uses registry-free COM, so no messing around with registering DLLs or conflicts with old versions.
Robert Medeksza