Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
7568 Discussions

Using class exported from third party VC++ DLL

Przemysław_O_
Beginner
78 Views

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
78 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