|
From: Yann <ya...@3i...> - 2003-04-06 21:47:56
|
Yeah, you're right the dll uses cdecl and not stdcall. So, either, there =
is a way to call a cdecl function from visualbasic or you have to =
recompile the dll.
The current OpenQuicktimeLib.dsp works nicely in my dev env ... I cannot =
help you more without other precisions :(
Be sure to use the sources from the cvs and not the old 1.0 Release ...
----- Original Message -----=20
From: Rob Coenen=20
To: Yann ; ope...@li...=20
Sent: Sunday, April 06, 2003 7:13 PM
Subject: Re: [Openquicktime-users] Who compiled this OpenQT dll?
allright, I know the API is well known, but -and this might be off =
topic-, I have trouble using this specific DLL.
I want to use it within Visual Basic and the problem is that I have no =
idea how to call the functions in the dll in the right way.
The API documentation say for example about oqt_get_info_list :
---start quote---
OPENQUICKTIMELIB_API oqt_udta_t* OQT_STDCALL oqt_get_info_list (
oqt_t *file
);
Parameters
Name Description
file The file to get the info fields from'
Result: The array of info field records
---end quote---
Now I woudl like to access this function from VB, and I tried =
something like this:
Public Declare Function oqt_get_info_list Lib "OpenQuicktimeLib.dll" =
(ByVal file as string) as variant
test =3D oqt_get_info_list("my_kewl_movie.mov")
This results in a "Run-time error '49': Bad DLL Calling convention"
I think this has to do because the function is not using a STDCLL but =
a OQT_STDCLL (whatever that exactly might be, I am little experienced =
with C++, but I did figure out that VB only seems to support STDCLL)
Also as I don't have the source code of the dll I cannot change =
anything. I tried to compile such a DLL myself using VC++ but I ran into =
problems because if a missing "inttypes.h" which seems to be not part of =
Visual C++.
So any help on compiling myself a OpenQT dll and / or how to use this =
from within VB ... mucho gracias (this will result into support for not =
only .avi & .mp4 but also .mov in my awesome, non commercial, opensource =
yet-top-secret-for-now project !)
-Rob
----- Original Message -----=20
From: Yann=20
To: Rob Coenen ; ope...@li...=20
Sent: Sunday, April 06, 2003 6:43 PM
Subject: Re: [Openquicktime-users] Who compiled this OpenQT dll?
Hello Rob,
OpenQuicktime can be used by anyone respecting the LGPL license.
It's currently used by some of the DirectShow filters used by 3ivx =
D4 (www.3ivx.com) ...
The API of that dll is well-known and its documentation can be found =
here (http://www.openquicktime.org/docs/openquicktime/).
It's not a black-box at all, you can find its source code in the =
openquicktime CVS (http://sourceforge.net/cvs/?group_id=3D26082)
hope that helps,
Yann.
----- Original Message -----=20
From: Rob Coenen=20
To: ope...@li...=20
Sent: Sunday, April 06, 2003 6:17 PM
Subject: [Openquicktime-users] Who compiled this OpenQT dll?
While scanning my harddrive I suddenly found this dll file. (Get =
it here =
http://www.solidrocketboosters.com/dev/openqtdll/OpenQuicktimeLib.dll)
I have really no idea where I got it from .. I guess it came with =
some application?
Anyway a enumeration of the dll's functiosn tells me that about =
all the OpenQuicktime API's functions are present in this dll.
Is there any documentation on the DLL?
I tried to access some of the functions from VB, but I did not =
really succeed, its a kin a black box now.
-Rob |