ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
ocx and lib (Sdk)
ocx and lib // SdkcozmoJan 28, 2002, 3:58pm
i was making my bot and i couldnt add the ocx file so i was looking through
the object browser and the lib was in it. i didnt add it but i guess it just went in by itself somehow.... well i want to know whats the difference between them and which one would be the best to use kahJan 28, 2002, 4:50pm
the lib is required for the OCX to work, and I think the OCX is required for
the lib to have any function too... with ActiveX controls, other things apply to ActiveX DLLs KAH [View Quote] cozmoJan 28, 2002, 5:27pm
so if i use the lib (i have to anyways) do i have to distribute the ocx with
my exe? and does it do everything the same as if i added the ocx through compents menu? I kind of want to use it the way i normally do but i dont knwo how to get rid of the lib.... [View Quote] ananasJan 28, 2002, 11:27pm
The OCX will be necessary and I think it's necessary to
register it, either with regsrv32.exe or as described here => http://www.vbworld.com/activex/tip50.html The OCX overlays the AW functions, like a wrapper. It supplies the VB application with a special calling interface and informations about parameters and return value types of the functions that the OCX exports. The LIB itself will _not_ be necessary in your distribution. LIB has a (static) link-level interface, whereas the OCX has a modified dynamic linking interface. The LIB can only be used in compiler languages. An OCX can use a DLL or already contain the LIB, depending on the way the developer of the OCX designed it. Refer to the OCX documentation, that should tell you if the AW.DLL is needed or if the basic AW functions are linked static. [View Quote] -- "_ | /\ \ / __/ /_ trekkerxJan 29, 2002, 2:10am
Unless you compile the libary (lib) and the ocx right into your program your
gonna need it outside :) -- TrekkerX Commatron & Athnex Anti AOL Activist, and some other stuff... http://www.commatron.com http://www.athnex.com [View Quote] ananasJan 29, 2002, 3:33am
That is complete nonsense
1. a LIB can ONLY be used to compile it into a program so you never need it outside 2. an OCX (and DLL) can not be compiled into a program at all, so you always need it outside [View Quote] -- "_ | /\ \ / __/ /_ ananasJan 29, 2002, 9:56pm
I am very sure that even M$ got that.
A LIB has no header that allows dynamic loading, it has a lot of relocation informations and external references to other library functions in it. Even if you would load it into memory, you could not do anything with it, because the references cannot be resolved on runtime, because the symbols of the referenced entities are not available to the operating system. An OCX has a loader like an EXE file (MZ...) (or a DLL) that allows to load it as a module. It is a fully compiled program with no external references except for DLLs or other OCXs and provides a list of special entries with informations about the exported functions that can be called from outside. [View Quote] -- "_ | /\ \ / __/ /_ |