Registriert seit: 13. Feb 2006
Ort: Kempten
253 Beiträge
|
Re: C++ nach Delphi übersetzen
25. Feb 2007, 12:05
Da gehts um exportierte Funktionen, aber mehr weiß ich auch nicht
Code:
#ifdef __BBCORE__
#define API_EXPORT DLL_EXPORT
#else
#define API_EXPORT
#endif
extern "C" {
// ------------------------------------
// Read Settings
API_EXPORT bool ReadBool(LPCSTR filePointer, LPCSTR string, bool defaultBool);
API_EXPORT int ReadInt(LPCSTR filePointer, LPCSTR string, int defaultInt);
API_EXPORT LPCSTR ReadString(LPCSTR filePointer, LPCSTR string, LPCSTR defaultString);
API_EXPORT COLORREF ReadColor(LPCSTR filePointer, LPCSTR string, LPCSTR defaultString);
// Read a rc-value as string. If 'ptr' is specified, it can read a sequence of items with the same name.
API_EXPORT LPCSTR ReadValue(LPCSTR fp, LPCSTR keyword, LPLONG ptr = NULL);
// Was the last Value actually read from the rc-file ?
// Returns: 0 == not found / 1 == found exact value / 2 == found wildcard
API_EXPORT int FoundLastValue(void);
.
.
.
Kommt das einfach in die exports-Klausel?
"Conspiracy is the poor man's mapping of the world" - Fredric Jameson
|
|
Zitat
|