0
0

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’. :smile:

  • You must to post comments
0
0

Why not ? It interest me but one thing : types libraries are not only for vb users, it s a COM object so any 32 bit language can use it.
Thanx for your work :smile:

My email : XxKarLKoXxX@aol.com

  • You must to post comments
0
0

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.

  • You must to post comments
0
0

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.

  • You must to post comments
0
0

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):

import “unknwn.idl”;
[ object, uuid(10000001-0000-0000-0000-000000000001),
oleautomation ]
interface ISum : Iunknown
{
HRESULT Sum(int x, int y, [out, retval] int* retval);
}
[ uuid(10000003-0000-0000-0000-000000000001),
helpstring(“Inside DCOM Component Type Library”),
version(1.0) ]
library Component
{
importlib(“stdole32.tlb”);
interface ISum;
[ uuid(10000002-0000-0000-0000-000000000001) ]
coclass InsideDCOM
{
interface ISum;
}
};

As Adion say it, it s very userfull because only the fonctions used are compile to the program. (not only VB users)

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.