Author Topic: load and compile: .net/.oobn-files  (Read 17082 times)

Offline ab

  • Newbie
  • *
  • Posts: 11
    • View Profile
load and compile: .net/.oobn-files
« on: January 03, 2009, 23:25:11 »
Hello

When integrating the HUGIN API together with MS Excel through a VBA macro, is there a way to handle .oobn-files (or is this only possible for .net-files)? Specifically, is it possible to access an .oobn-file, and if so, how?

Many thanks in advance.

Offline Martin

  • HUGIN Expert
  • Hero Member
  • *****
  • Posts: 613
    • View Profile
Re: load and compile: .net/.oobn-files
« Reply #1 on: January 04, 2009, 16:03:26 »
Class description(s) in .oobn-files are loaded as HAPI.Class instances in a class collection.

Take a look at the HAPI.ClassCollection Class Module. Use the sub procedure ParseClasses to load the .oobn class description.  The global function GetNewClassCollection creates an empty class collection that can be used for parsing class descriptions from .oobn-files.

To produce a runtime domain from a class use the CreateDomain function on the HAPI.Class instance.
Hugin Expert A/S

Offline ab

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: load and compile: .net/.oobn-files
« Reply #2 on: January 06, 2009, 12:35:15 »
Thanks a lot for this. Unfortunately, I got only very few time at the moment, but I'll try to take a look at the class modules and procedures asap...
Many thanks again.