Skip to content

Commit

Permalink
Restore OPCDACLIENT_API for dll export/import
Browse files Browse the repository at this point in the history
Including to CTransaction class and disable CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS
  • Loading branch information
kumajaya authored and edimetia3d committed Jun 18, 2024
1 parent d091801 commit 27e061b
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion OPCClientToolKit/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project(OPCClientToolKit)

set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS OFF)

set(SOURCE_H OpcEnum.h opccomn.h opcda.h
OPCClient.h OPCHost.h OPCItemData.h OPCServer.h
Expand Down
2 changes: 1 addition & 1 deletion OPCClientToolKit/OPCGroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class CAsyncDataCallback;
/**
* Client sided abstraction of an OPC group, wrapping the COM interfaces to the group within the OPC server.
*/
class COPCGroup
class OPCDACLIENT_API COPCGroup
{
private:
ATL::CComPtr<IOPCGroupStateMgt> iStateManagement;
Expand Down
6 changes: 3 additions & 3 deletions OPCClientToolKit/OPCHost.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace opcda_client
* Abstract class that represents a PC which may host one or more OPC servers. Provides means of getting a list
* of OPC servers on the host and creating connections to OPC servers.
*/
class COPCHost
class OPCDACLIENT_API COPCHost
{
/**
* TCHAR: WCHAR if UNICODE is defined, a CHAR otherwise.
Expand Down Expand Up @@ -137,7 +137,7 @@ class COPCHost
/**
* Used for accessing OPC servers on a remote host. Make use of OpcEnum to browse servers.
*/
class CRemoteHost : public COPCHost
class OPCDACLIENT_API CRemoteHost : public COPCHost
{
private:
/**
Expand Down Expand Up @@ -177,7 +177,7 @@ class CRemoteHost : public COPCHost
* Used for accessing OPC servers on a local (this) host. Uses the Component Categories manger to enumerate
* the OPC servers on the local machine.
*/
class CLocalHost : public COPCHost
class OPCDACLIENT_API CLocalHost : public COPCHost
{
public:
CLocalHost();
Expand Down
2 changes: 1 addition & 1 deletion OPCClientToolKit/OPCItem.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class COPCGroup;
* Provides wrapper for operations that typically exist at the group level (e.g. reads) (it is at this level
* that OPC supports the operation) however, we provide the operation at this level for ease of use.
*/
class COPCItem
class OPCDACLIENT_API COPCItem
{
private:
OPCHANDLE ServersItemHandle;
Expand Down
4 changes: 2 additions & 2 deletions OPCClientToolKit/OPCItemData.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class COPCItem;
/**
*Wrapper for OPC data. Hides COM memory management.
*/
struct OPCItemData
struct OPCDACLIENT_API OPCItemData
{
FILETIME ftTimeStamp;
WORD wQuality;
Expand Down Expand Up @@ -71,7 +71,7 @@ struct OPCItemData
/**
* Can't find an ATL autoptr map - this class provides the functionality I want.
*/
class COPCItemDataMap : public CAtlMap<OPCHANDLE, OPCItemData *>
class OPCDACLIENT_API COPCItemDataMap : public CAtlMap<OPCHANDLE, OPCItemData *>
{
public:
~COPCItemDataMap();
Expand Down
2 changes: 1 addition & 1 deletion OPCClientToolKit/OPCProperties.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace opcda_client
/**
* Holds desciption of a property for an OPC item.
*/
struct CPropertyDescription
struct OPCDACLIENT_API CPropertyDescription
{
/// properties identifier
DWORD id;
Expand Down
2 changes: 1 addition & 1 deletion OPCClientToolKit/OPCServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct ServerStatus
/**
* Local representation of a local or remote OPC server. Wrapper for the COM interfaces to the server.
*/
class COPCServer
class OPCDACLIENT_API COPCServer
{
private:
/**
Expand Down
2 changes: 1 addition & 1 deletion OPCClientToolKit/Transaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace opcda_client
{
#endif

class CTransaction;
class OPCDACLIENT_API CTransaction;

/**
* Interface which provides means by which the client can be notified when an asynchronous operation
Expand Down

0 comments on commit 27e061b

Please sign in to comment.