P
pengyg
Unregistered / Unconfirmed
GUEST, unregistred user!
dll部分代码如下
----------------------------
#ifndef MORPHO_DEVICE_H
#define MORPHO_DEVICE_H
#ifdef MORPHO_SDK
#define MORPHO_API __declspec(dllexport)
#else
#define MORPHO_API __declspec(dllimport)
#endif
class MORPHO_API C_MORPHO_Device
{
private:
UL m_ul_magicFirst;
public:
#define MORPHO_NB_DATABASE_MAX 1 // maximum database occurences
#define MORPHO_PRODUCT_DESCRIPTOR_MAXLEN 255 // MSO product descriptor maximum length
#define MORPHO_SOFTWARE_DESCRIPTOR_MAXLEN 255 // MSO software descriptor maximum length
#define MORPHO_SENSOR_DESCRIPTOR_MAXLEN 255 // MSO sensor descriptor maximum length
// members
PUC m_puc_ProductDescriptor;
PUC m_puc_SoftwareDescriptor;
PUC m_puc_SensorDescriptor;
// Constructor and destructor
C_MORPHO_Device ();
C_MORPHO_Device(const C_MORPHO_Device&
i_px_MorphoDevice);
~C_MORPHO_Device ();
// Methods
OpenDevice (
I i_i_SerialPortNumber,
I i_i_BaudRate = 115200
);
----------------------------
这样的dll,我如何调用里面的函数OpenDevice?
----------------------------
#ifndef MORPHO_DEVICE_H
#define MORPHO_DEVICE_H
#ifdef MORPHO_SDK
#define MORPHO_API __declspec(dllexport)
#else
#define MORPHO_API __declspec(dllimport)
#endif
class MORPHO_API C_MORPHO_Device
{
private:
UL m_ul_magicFirst;
public:
#define MORPHO_NB_DATABASE_MAX 1 // maximum database occurences
#define MORPHO_PRODUCT_DESCRIPTOR_MAXLEN 255 // MSO product descriptor maximum length
#define MORPHO_SOFTWARE_DESCRIPTOR_MAXLEN 255 // MSO software descriptor maximum length
#define MORPHO_SENSOR_DESCRIPTOR_MAXLEN 255 // MSO sensor descriptor maximum length
// members
PUC m_puc_ProductDescriptor;
PUC m_puc_SoftwareDescriptor;
PUC m_puc_SensorDescriptor;
// Constructor and destructor
C_MORPHO_Device ();
C_MORPHO_Device(const C_MORPHO_Device&
i_px_MorphoDevice);
~C_MORPHO_Device ();
// Methods
OpenDevice (
I i_i_SerialPortNumber,
I i_i_BaudRate = 115200
);
----------------------------
这样的dll,我如何调用里面的函数OpenDevice?