when building it ,lots of error are there...unable to understand ..
header ..dt1.h
Expand|Select|Wrap|Line Numbers
- #ifndef INDLL_H
- #define INDLL_H
- #ifdef EXPORTING_DLL
- extern __declspec(dllexport) string summ(string,string) ;
- #else
- extern __declspec(dllimport) string summ(string,string) ;
- #endif
- #endif
Expand|Select|Wrap|Line Numbers
- #include<iostream>
- #include<string>
- #include "dt1.h"
- #define EXPORTING_DLL
- using namespace std;
- string summ(string a,string b)
- { string c=a.append(b);
- return c;
- }