I'm trying to use a C++ library (GAlib) in my C# project, in Visual Studio 2010.
I built the library to get the .lib and, thanks for your useful advice:
I'm able to call the functions but I not able to create classes inheriting from the ones present within the library.
I have followed this guide
http://blogs.msdn.com/b/vcblog/archive/2008/12/08/inheriting-from-a-native-c-class-in-c.aspx
I added
__declspec(dllexport) class GAEvalData {
public:
. . .
}
but using dumpbin /EXPORT ga.lib to achieve the EntryPoint, I have no info.
I report the dumpbin output:
Dump of file ga.lib
File Type: LIBRARY
And nothing else.
Also inverting
class __declspec(dllexport) GAEvalData {
public:
. . .
}
it seems no work.
Any suggestions?
Is this the best way to inherit classes from external libraries?
Thanks in advance,
Dave