I have tried looking this up already on the web and I am still a little confused.
I am compiling a dll from c++ in visual studios and I have a parent class with a pure virtual method. The class itself is only called from within the dll and is not externally called.
#pragma once
#include <string>
class IndicatorBase {
public:
IndicatorBase(const char*, int); // Constructor
double GetValue(); // Gets the value from the indicator
protected:
const char* symbol;
int period;
int handle; // Handle for indicator
void SetupIndicator(); // Creates the indicator
virtual const char* IndicatorName() = 0; // Returns the Indicator Name
virtual void IndicatorParams(std::string & buff) = 0; // Sets the buffer sent in to the parameters
};
How do I call IndicatorName() or IndicatorParams() from the parent function when used with a dll?
Is it common practice to place the dll export and import in all my header files?
#ifdef MAKEDLL
# define EXPORT __declspec(dllexport)
#else
# define EXPORT __declspec(dllimport)
#endif
Trying to get the dll to recognize my childs runtime implementation.
Thanks