stepone: 建立动态库
1.新建项目,例如首先先选择一下windowconsle
2.
3.
4.新建Utils.h, 内容如下:注意没有_declspec(dllexport)的话就生成不了lib文件
#pragma once
#ifndef __UTILS_H__
#define __UTILS_H__
#include<string>
#include<strstream>
class Utils {
public:
_declspec(dllexport) Utils(void);
_declspec(dllexport) ~Utils(void);
public:
_declspec(dllexport)