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

OnTheCuttingEdge

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2396
  • Thank You.
    • View Profile
    • #UltraHal IRC Chat Room
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)
Plug =N= Play HAL v7.0 coming soon. There's nothing better than Plug =N= Play!

Spitfire2600

  • Full Member
  • ***
  • Posts: 195
    • 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
 

OnTheCuttingEdge

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2396
  • Thank You.
    • View Profile
    • #UltraHal IRC Chat Room
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)
Plug =N= Play HAL v7.0 coming soon. There's nothing better than Plug =N= Play!

Medeksza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1335
    • 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

OnTheCuttingEdge

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2396
  • Thank You.
    • View Profile
    • #UltraHal IRC Chat Room
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 »
Plug =N= Play HAL v7.0 coming soon. There's nothing better than Plug =N= Play!

Medeksza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1335
    • 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