By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,940 Members | 2,028 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,940 IT Pros & Developers. It's quick & easy.

Why not exported base class' member functions in DLL?

P: n/a
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.

Jun 12 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On 6 12 , 2 27 , Allen <Allen.Che...@gmail.comwrote:
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.
I am sorry.
I do implement GetCurrAddr method in ByteBuffer.cpp.
It is mistaked to overwrite by version control.
So stupid I am...

Regards,
Allen Chen

Jun 12 '07 #2

P: n/a

Allen <Al**********@gmail.comwrote in message...
>
It is mistaked to overwrite by version control.
So stupid I am...
If you learn from your mistakes, you are NOT stupid!! <G>

--
Bob R
POVrookie
Jun 12 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.