Herunterladen Inhalt Inhalt Diese Seite drucken

Epcon RC+ Benutzerhandbuch Seite 148

Inhaltsverzeichnis
5. Klicken Sie auf Finish, um das Projekt zu erstellen.
6. Öffnen Sie die Datei mydll.cpp.
7. Fügen Sie eine Funktion namens MyDllAdd hinzu, wie unten dargestellt. Beachten Sie, dass
Sie das Schlüsselwort _stdcall (oder entsprechend) verwenden müssen, so dass die Pascal
Calling Convention verwendet wird.
// mydll.cpp : Defines the entry point for the DLL application.
//
#include "stdafx.h"
BOOL APIENTRY DllMain( HANDLE hModule,
{
return TRUE;
}
// Add Function
long _stdcall MyDllAdd(long a, long b)
{
}
Jetzt müssen Sie die Funktion in eine DEF-Datei exportieren. Wählen Sie Datei | Neu und erstellen
Sie eine Textdatei in dem Projekt namens mydll.def.
EPSON RC+ User's Guide
)
return a + b;
DWORD
ul_reason_for_call,
LPVOID lpReserved
Die Sprache SPEL+
134
Inhaltsverzeichnis
loading

Inhaltsverzeichnis