Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Job-Börse: Angebote und Gesuche (https://www.delphipraxis.net/66-job-boerse-angebote-und-gesuche/)
-   -   C-Bibliothek in Delphi7 importieren !!EILT SEHR!!! (https://www.delphipraxis.net/157840-c-bibliothek-delphi7-importieren-eilt-sehr.html)

edbayer 26. Jan 2011 17:06

C-Bibliothek in Delphi7 importieren !!EILT SEHR!!!
 
Liste der Anhänge anzeigen (Anzahl: 2)
Hallo

Ich benötige für ein Prüfgerät eine Implemtierung der DBusDRV.lib ( Delphi7)

Wer könnten so etwas übernehmen
Kostenerstattung wird zugesichert.



Beispiel Dbusdrv.h

! Type for the port handle
/*!
*/
typedef ULONG VDBusPortHandle;

/*--------------------------------------------------------------------*/
//! Error codes
/*!
*/
typedef enum {
VDBUS_SUCCESS = 0, //!< The operation was completed successfully
VDBUS_NO_FRAME_AVAILABLE = 1, //!< VIDBusPort::GetFrame has nothing received
VDBUS_ERROR = 0x100, //!< An error occured

// API erros
VDBUS_INVALIDARG = 0x1000, //!< An argument is not valid
VDBUS_TX_BUFFER_FULL = 0x1001,
VDBUS_INVALID_HANDLE = 0x1002, //!< The port handle is not valid

VDBUS_PORT_NOT_OPENED = 0x1800, // the port is not opened for cummunication
VDBUS_INVALID_MODE = 0x1801, // the current mode (raw or dbus) is not valid for this function
VDBUS_FW_VERSION_MISMATCH = 0x1802, // the current FW version does not support the called function

VDBUS_INTERNAL_ERROR = 0x1900,
VDBUS_INTERNAL_ERROR_SEND_BUFFER_OVERFLOW = 0x1901,
VDBUS_INTERNAL_ERROR_USB_WRITE = 0x1902,
VDBUS_INTERNAL_ERROR_ANSWER_TIMEOUT = 0x1903,
VDBUS_INTERNAL_ERROR_INVALID_ANSWER = 0x1904,
VDBUS_INTERNAL_ERROR_INVALID_ANSWER_CODE = 0x1905,
VDBUS_INTERNAL_ERROR_INVALID_ANSWER_SIZE = 0x1906,
VDBUS_INTERNAL_ERROR_SIZE_MISMATCH = 0x1907,

// hardware errors
VDBUS_PORT_NOT_FOUND = 0x2000, //!< Serial port not found
VDBUS_PORT_ALREADY_LOCKED = 0x2001, //!< Serial port is already locked by another application
VDBUS_PORT_SET_COMM_FAILED = 0x2002, //!< Cannot set communication parameter of COM port

VDBUS_POWER_MODULE_NOT_INSTALLED = 0x2400,

VDBUS_ERROR_REPORTED_BY_FW = 0x2800,
VDBUS_ERROR_WATCHDOG_RESET = 0x2801,
VDBUS_ERROR_HARDWARE_RESET = 0x2802,
VDBUS_ERROR_SOFTWARE_RESET = 0x2803,

VDBUS_INVALID_FW = 0x3000 // the specified FW is invalid
} VResult;


Es gibt auch nboch weitere Erläuterungen dazu.
Bitte um Rückfragen den Verfasser

Dezipaitor 26. Jan 2011 18:34

AW: C-Bibliothek in Delphi7 importieren !!EILT SEHR!!!
 
Eine Lib-Datei kann nicht in Delphi direkt genutzt werden. Diese muss schon als DLL Datei vorliegen. Ich denke das ist gemeint, oder?

Assarbad 26. Jan 2011 20:28

AW: C-Bibliothek in Delphi7 importieren !!EILT SEHR!!!
 
Zitat:

Zitat von Dezipaitor (Beitrag 1077514)
Eine Lib-Datei kann nicht in Delphi direkt genutzt werden. Diese muss schon als DLL Datei vorliegen. Ich denke das ist gemeint, oder?

Es ist anzunehmen, daß die beigelegte LIB nur eine "import library" ist, also nur die Stubs zu einer DLL enthält, oder?

Nachtrag: Lt. Header ist dies der Fall. Es handelt sich um eine Importbibliothek.

Es wäre übrigens toll die Vorbesprechungen komplett hier im Forum offen zu machen, denn ansonsten bemühen sich hier vielleicht mehrere, während das Problem irgendwo im Hinterzimmer bereits gelöst wird oder wurde.

Assarbad 26. Jan 2011 20:32

AW: C-Bibliothek in Delphi7 importieren !!EILT SEHR!!!
 
Könnte das in 1-2h machen, denke ich (dutzende andere definitiv auch). Ohne die DLL selber wird's natürlich schwer das zu testen.

Klaus01 26. Jan 2011 20:52

AW: C-Bibliothek in Delphi7 importieren !!EILT SEHR!!!
 
Liste der Anhänge anzeigen (Anzahl: 1)
.. sodele
Enumerierungen und records sollten o.k. sein.

Mit dem Ansprechen von DLLs tue ich mich noch schwer ...

Grüße
Klaus

Assarbad 27. Jan 2011 16:42

AW: C-Bibliothek in Delphi7 importieren !!EILT SEHR!!!
 
Hmm, keine Rückmeldung? Heute Abend habe ich nicht so viel Zeit wie gestern. Aber es gibt hier genügend Leute die Ahnung davon haben. Also, viel Erfolg.


Alle Zeitangaben in WEZ +1. Es ist jetzt 03:19 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz