带类的DLL怎样导出导入??在线等
testDLLYsdyClass.h:
class _declspec (dllexport) cTestDLL
{
public:
cTestDLL();
void display(char * pName);
protected:
char name[5];
};
testDLLYsdyClass.cpp:
#include "stdafx.h"
#include "testDllYsdyClass.h"
void cTestDLL::display(char * pName)
{
strcpy(name,pName);
cout <<"name: "<< name;
}
不知道导出写对没有?编译通过了的,导入怎么写??
我已经把该DLL、LIB文件放到导入程序的相应目录下了