![]() |
Re: C++ nach Delphi übersetzen
Zitat:
Delphi-Quellcode:
type
TEineAufzaehlung = ( SN_STYLESTRUCT, SN_TOOLBAR, SN_TOOLB ARBUTTON, ... SN_Last) Zitat:
Die "leeren Klassen" sind keine leeren Klassen, sondern nur Ankündigungen, dass die Klassendefinition noch folgen wird:
Delphi-Quellcode:
type
TKlasseA = class; TKlasseB = class klasseA: TKlasseA; end; TKlasseA = class //... end; |
Re: C++ nach Delphi übersetzen
Da gehts um exportierte Funktionen, aber mehr weiß ich auch nicht :(
Code:
Kommt das einfach in die exports-Klausel?
#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); . . . |
Alle Zeitangaben in WEZ +1. Es ist jetzt 06:36 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz