Hi Everybody,
I"m using MS VS2003, and tryig to create a basic dll + lib file without a wizard.
I need help with creating a correct .def file for my exports.
In the code below I wish to export the constructor, destructor and the printX methods only.
The test.h file:
#ifndef _TEST_
#define _TEST_
#define _TEST() test a;
class test
{
public:
test(int);
~test();
private:
int x;
public:
void printX();
};
#endif
--------------------------------------------------------------
The test.cpp file:
-------------------------------------------------------------
#include "test.h"
#include <stdio.h>
test::test(int _x):x(_x)
{
printf("test x(%d)\n",x);
}
test::~test()
{
printf("~test x(%d)\n",x);
}
void test:rintX()
{
printf("%d\n",x);
}
-------------------------------------------------------------------
And I need help with creating my .def file (test.def)
------------------------------------------------------------------
LIBRARY "test.dll"
EXPORTS
what goes here?
Thanks!!!