Jesteś tutaj
Statyczny member exportowny z templatowej klasy
Wyeksportowanie z dll'ki statycznego membera z templatowej klasy. Trochę po omacku, ale znalazlem jak to zrobić.
#ifdef X_EXPORTS
#undef X_CALL_API
#define X_CALL_API __declspec(dllexport)
#else
#undef X_CALL_API
#define X_CALL_API __declspec(dllimport)
#endif
template<class T>
class CTypedArray : public CArrayBase
{
public :
CTypedArray ();
public:
static const X_EXPORTS T g_Type;
};
Kategorie:
- Blog
- 327 odsłon

Odpowiedz