|
-
February 7th, 2005, 09:21 AM
#1
Extension DLL problem
Hi,
I've created an extension dll (MyDll) to export a class. The header file in the dll looks like this:
// MyClass.h
class AFX_EXT_CLASS MyClass
{
public:
int GetValue();
...
};
In the application where I use the class I've added MyDll.lib to the linker's input library list (in the property pages) and included the same header MyClass.h in a .cpp file. In that file I have an object of the type MyClass where I call the function GetValue(). The problem is that when i try to compile the application I get a linker error:
unresolved external symbol public: int __thiscall MyClass::GetValue()
I can't figure out why I'm getting this error.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|