Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Przemysław_O_
Beginner
72 Views

Using class exported from third party VC++ DLL

Hello,

is it safe to use a class exported from third party VC++ DLL?

I use Intel C++ with Visual Studio integration, so every C++ project is compiled with Intal C++ compiler.

I will use some 3rd party library, which comes without source code - only headers and builds for specific Microsoft VC++ compiler. This library contains classes which are exported with _declspec(dllexport). Is it safe to use those classes with Intel C++ compiler under Visual Studio? Of course the binary dll which I use was built with the same Version of VC++ which I use with Intel C++.

Sample code below:

#ifndef EXPORT_API
#  define EXT_API _declspec(dllimport)
# endif
#else
#  define EXT_API _declspec(dllexport)
# endif
#endif

class EXT_API SomeClassFromDll

{

...

0 Kudos
1 Reply
Light_Intel
Moderator
72 Views

Intel C++ Compiler is 100% compatible with VC. Thus whatever is safe to use with VC is also safe to use with the Intel Compiler.

Reply