Sebastian Thalhammer
Erfahrenes Mitglied
Tja, der Betreff sagt eigentlich schon alles.
Wie kann ich im Borland DLL´s einbinden?
Wie kann ich im Borland DLL´s einbinden?
Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
A Windows DLL can be used in a C++Builder application just as it would be in any C++ application.
To statically load a DLL when your C++Builder application is loaded, link the import library file for that DLL into your C++Builder application at link time. To add an import library to a C++Builder application, choose Project|Add to Project and select the .LIB file you want to add.
The exported functions of that DLL then become available for use by your application. Prototype the DLL functions your application uses with the __declspec (dllimport) modifier:
__declspec(dllimport) return_type imported_function_name(parameters);
To dynamically load a DLL during the run of a C++Builder application, include the import library, just as you would for static loading, and set the delay load linker option on the Project|Options|Advanced Linker tab. You can also use the Windows API function LoadLibrary() to load the DLL, then use the API function GetProcAddress() to obtain pointers to the individual functions you want to use.
Additional information on using DLLs can be found in the Microsoft¨ Win32 SDK Reference.