DLL

Run time error for c++ idl project on machine without visual Studio 2012

Hi,

I am developing application with rti DDS in visual studio 2012 using c# language.

I had included in the solution the C++ project of the idl type and have referrence for it inanother solution project.

When I try to run the app in a machine without visual studio 2012 I get many run time errors of dll not found or its dependencies.
I check it by 'Dependency walker'.

Only if I install VS 2012 errors gone (VS 2015 not solved the problem).

Unable to build DLL

I've created the simple hello idl project code and put it into a Win7 VS2010 x64 DLL project. My goal is to export the code for use by another app at run-time. I see in the generated code that getting the dllexport declspec requires RTI_WIN32 and NDDS_USER_DLL_EXPORT to be defined. However, when I define NDDS_USER_DLL_EXPORT I get 3 types of warning/errors.

The first warning is C4275: non-dll interface class DDSDomainEntity used as base for dll-interface class DDSWriter. I get the same warning for the DDSDataReader.

Keywords:

DDS in a DLL

Hi,

 

I am struggling to create a basic DLL that uses DDS. Which pre-compiler flag do I need to specify? I currently have:

 

NDDS_DLL_VARIABLE;

NDDS_USER_DLL_EXPORT;

RTI_WIN32

 

I keep getting loads of unresolved symbols.

 

Thank you

 

Ben

Organization:
Keywords:
Subscribe to RSS - DLL