Einzelnen Beitrag anzeigen

Benutzerbild von Dani
Dani

Registriert seit: 19. Jan 2003
732 Beiträge
 
Turbo Delphi für Win32
 
#1

Klasse von C nach Pascal übersetzen?

  Alt 25. Mai 2003, 22:36
Hallo Leute,

Ich versuche gerade, folgende Klasse inkl. Zugriff auf diese nach Delhpi zu übersetzen, habs aber bisher nicht geschafft:


If you need access to information returned by calling the external code, your code source must also include the following class definition:

class CViseEntryData
{
public:
HWND m_hwndMain; // Main window handle
HWND m_hwndProgress; // Progress dialog window handle
BOOL m_bUninstall; // Uninstaller flag
LPCSTR m_lpszUninstallLogFile; // Uninstall log file path
LPCSTR m_lpszTempDir; // Installer VISE’s temp directory path
HINSTANCE m_hinst; // Instance handle of the VISE dll
char m_szInstallerName[_MAX_PATH]; // Name of the installer
};

und hierran scheiterts:
In order to correctly format the information defined in the CViseEntryData class, your
external code must include the following line:
CViseEntryData* pViseEntryData = (CViseEntryData*)dwReserved;
You may then access the CViseEntryData class information in your external code using
the following convention:
pViseEntryData->m_lpszTempDir;

--------------------------------------------------------
Was bedeuten diese Ausdrücke??

CViseEntryData* pViseEntryData = (CViseEntryData*)dwReserved;
und
pViseEntryData->m_lpszTempDir;

Kein Wort über eine zu erstellende pViseEntryData Variable im Text, und was "->" im C-Syntax bedeutet weiss ich leider auch net

Kann mir da jemand helfen?
Dani H.
At Least I Can Say I Tried
  Mit Zitat antworten Zitat