I’ve been writing an FMod type library for VB users, and it works great so far… if I finish it, will you be interested in distributing it with FMod?
It doesn’t have any bugs so far, except having to load fmod manually with loadlibrary to prevent VB from unloading FMod while it’s running. Anyway, doing it that way has the advantage of keeping it from crashing when you hit ‘Stop’.
- Janus asked 15 years ago
As far as I know, a type-library is very similar to a visual basic module that declares functions, or to a c header file.
I think I read somewhere the advantage of a type-library file is that not the whole library is compiled in your program, but only the functions that are actually used in your program.
This means Visual Basic users would benefit from it.
From the MSDN :
“A type library is best thought of as a binary version of an Interface Definition Language (IDL) file. It contains a binary description of the interfaces exposed by a component, defining the methods along with their parameters and return types. Many environments support type libraries: Visual Basic, Visual J++, and Microsoft Visual C++® all understand type libraries; so do Delphi, Microsoft Visual FoxPro®, and Microsoft Transaction Server. Rumor has it that the next version of Microsoft (Visual) Macro Assembler will support COM via type libraries.”
Here is a simple example (from the MSDN too):
[ object, uuid(10000001-0000-0000-0000-000000000001),
interface ISum : Iunknown
HRESULT Sum(int x, int y, [out, retval] int* retval);
helpstring(“Inside DCOM Component Type Library”),
[ uuid(10000002-0000-0000-0000-000000000001) ]
As Adion say it, it s very userfull because only the fonctions used are compile to the program. (not only VB users)
If it includes all functions, constants and enums of the fmod.bas module currently bundled with fmod, I think it would be interesting.
I’d even suggest to add it to the fmod package then, so users have the choice between a module and a type-library.
btw. Do you know any site or something to learn more about type-libraries? I’m interested in creating type-libraries myself, but I haven’t found out how yet.
Please login first to submit.