PLC - PC communication using Snap7 in C# WPF app -


please, have question snap7.dll library. long time wanst working in c#, maybe doing wrong. possible use snap7 in c# wpf project library or developed windows forms? stupid know, asking because not able add snap7.dll project references. thank you.enter image description here

downloaded , played around examples http://snap7.sourceforge.net/ looks console application doesn't reference assembly directly.

this isn't wpf vs winforms thing. managed vs unmanaged code thing.

there snap7.net.cs .net wrapper class file. references "snap7.dll" , exposes functionality c# class. @ runtime load assembly using dllimport.

copy both snap7.net.cs file , snap7.dll project. use snap7 class methods/attributes in code. update snap7.dll copy output directory, or use post build event copy snap7.dll output directory.

edit: want restate do not add reference snap7.dll directly using project -> references. dllimport annotation of wrapper class file load @ runtime.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -