1125
« on: January 16, 2003, 12:27:29 am »
There is also a file called HalsMind.DLL which is placed in your windows system folder. This is new in Ultra Hal Assistant 4.5 and is a C++ DLL of Hal's 3 most processor intentensive functions. This is a real Windows DLL, not an ActiveX DLL so it is not accessible through VBScript. However, the functions QABrain, KeywordBrain, FragmentMatch, and ConvBrain in the ActiveX HalBrain.DLL simply call this DLL for you. However, if anyone ever wants to directly access this DLL directly, here is the type library declaration taken straight from the project:
[
uuid(05076D47-C64C-4f5c-AEB3-AB32A394B5A7),
helpstring("Hal's Brain Functions"),
lcid(0x0409),
version(1.6)
]
library HalsMind
{
[
helpstring("Hal's Brain Functions"),
version(1.6),
dllname("HalsMind.dll")
]
module MyDllFunctions
{
[
helpstring("Gets a response from a Hal database file."),
entry("qbrain")
]
int __stdcall qbrain([in] LPSTR usersentence, [in] LPSTR file_name, [out] LPSTR output);
[
helpstring("Gets a response from Hal's special database file."),
entry("convbrain")
]
int _stdcall convbrain([in] LPSTR usersentence, [in] LPSTR prevsentence, [in] LPSTR file_name, [out] LPSTR output);
[
helpstring("Gets a response from a Keyword and Priority Hal DB file."),
entry("keybrain")
]
int __stdcall keybrain([in] LPSTR usersentence, [in] LPSTR file_name, [out] LPSTR output, [in] int lowpriority);
[
helpstring("Gets a response from a User Strings Hal DB file by comparing sentence fragments."),
entry("fragmatch")
]
int __stdcall fragmatch([in] LPSTR usersentence, [in] LPSTR file_name, [out] LPSTR output);
}
};
Robert Medeksza