Browse Source

Die neuen funktionen werden jetzt auch in die DLL Datei exportiert

Kolja Strohm 6 years ago
parent
commit
1dec001101
1 changed files with 9 additions and 9 deletions
  1. 9 9
      Network/HttpRequest.h

+ 9 - 9
Network/HttpRequest.h

@@ -19,13 +19,13 @@ namespace Network
             int ref;
 
         public:
-            Answer( const char *answer );
+            __declspec( dllexport ) Answer( const char *answer );
 
-            const char *getContentType() const;
-            const char *getData() const;
+            __declspec( dllexport ) const char *getContentType() const;
+            __declspec( dllexport ) const char *getData() const;
 
-            Answer *getThis();
-            Answer *release();
+            __declspec( dllexport ) Answer *getThis();
+            __declspec( dllexport ) Answer *release();
         };
 
         class PostRequest
@@ -39,12 +39,12 @@ namespace Network
             int ref;
 
         public:
-            PostRequest( const char *path, const char *host, const char *data, const char *contentType, unsigned short port );
+            __declspec( dllexport ) PostRequest( const char *path, const char *host, const char *data, const char *contentType, unsigned short port );
 
-            Answer *execute() const;
+            __declspec( dllexport ) Answer *execute() const;
 
-            PostRequest *getThis();
-            PostRequest *release();
+            __declspec( dllexport ) PostRequest *getThis();
+            __declspec( dllexport ) PostRequest *release();
         };
     }
 }