09-18-2021 03:39 PM
i was trying to link the snap 7 DLL file with labwindows and i keep get the same errors any idea please
09-20-2021 03:38 AM
First, you should probably not try to compile the client, server and your own source file in the same project. The main problem is that the Snap7.h file uses a strange way to define its constants. That may work for C++ compilers, I'm not sure, but not for most C compilers.
Basically all those const declaration should either be defined as a preprocessor #define or externalized into their own source code file. There is no other sane way to do that to not require some exotic C compiler versions.
03-12-2025 10:06 AM
I know the post is old but if you're online please can you tell me how you add snap7 to cvi library
03-13-2025 04:31 AM
Interfacing a CVI program with Snap7 DLL is quite simple and I can share some code with you. I canot help you if you want to directly integrate Snap7 code into your program.