Dev-C++ / DLL erstellen: dll zur Kommunikation zwischen zwei Simulationstools.



  • Hallo Leute,
    ich soll ein Tool mittels DDE und DLL von meiner Anwendung aus steuern (starten, stop, Daten lesen...), dafür brauche ich eine DLL, aber hab null Ahnung!!. ich hab ein dll-project in Dev-C++ geöffnet, dies läuft aber nicht, kann mir jemand bitte helfen.
    Zuerst "IsEMPlant.h" sieht so aus:

    #ifndef _IS_EMPLANT_H_
    #define _IS_EMPLANT_H_
    
    #if BUILDING_DLL
    #define DLLIMPORT __declspec (dllexport)
    #else 
    # define DLLIMPORT __declspec (dllimport)
    #endif /* Not BUILDING_DLL **********/
    
    #if _MSC_VER > 1000
    #pragma once
    #endif // _MSC_VER > 1000
    
    #ifndef __AFXWIN_H__
    	#error include 'stdafx.h' before including this file for PCH
    #endif
    // 
    #include "Ressource.h"
    struct DLLIMPORT CWinApp
    {
        virtual int virtual_method (void) const;
    };
    
    class CIsEMPlantApp : public CWinApp
    {
      public:
        CIsEMPlantApp();
        //{{ 
        //}}
        DECLARE_MESSAGE_MAP()
    };
    #include "IssopSimulators.h"
    //weitere Befehle  */
    #endif
    

    Bei der Kompilierung treten die folgenden Fehler auf:

    15 E:\Diplomarbeit\ISSOP\DLLs\IsEMPlant.h
    #error include 'stdafx.h' before including this file for PCH

    Vielen Dank für eure Hilfe


Anmelden zum Antworten