A
Allen
I create a DLL project in VC6, exported some classes.
class __descspec(export) CByteBuffer {
public:
INT8* GetCurrAddr(void);
};
class __descspec(export) CReadByteBuffer {
void Wrap(CHAR *pBuffer, INT32 nLength);
};
And write a demo
#include "ByteBuffer.h"
#pragma comment(lib, "bytebuffer.lib");
int main()
{
CReadByteBuffer readByteBuffer;
readByteBuffer.Wrap(buffer, 1024);
INT8 *pAddr = readByteBuffer.GetCurrAddr();
}
Using method in CReadByteBuffer is ok, but GetCurrAddr is unresolved.
Why? Please help me. Thank you.
class __descspec(export) CByteBuffer {
public:
INT8* GetCurrAddr(void);
};
class __descspec(export) CReadByteBuffer {
void Wrap(CHAR *pBuffer, INT32 nLength);
};
And write a demo
#include "ByteBuffer.h"
#pragma comment(lib, "bytebuffer.lib");
int main()
{
CReadByteBuffer readByteBuffer;
readByteBuffer.Wrap(buffer, 1024);
INT8 *pAddr = readByteBuffer.GetCurrAddr();
}
Using method in CReadByteBuffer is ok, but GetCurrAddr is unresolved.
Why? Please help me. Thank you.