Visual Studio C#WFP应用程序与与DLL文件的外部接口交互
因此,我正在创建一个独立的模拟器,该模拟器在接口和PLC之间进行通信。我正在创建软件读取初始CSV配置文件,而不是从地址寄存器或线圈的接口请求值,而不是将值返回到接口。到目前为止,一切都很好,我的意思是我需要进行一些测试,但是问题在于与接口的通信实现。我有一个.dll的外部界面,当我脱离时,我可以毫无问题地上传.dll,问题是该接口没有被吸引。这是我的第一次,我已经对C#(NetBeans等)编程了一些程序,从来没有以WPF格式进行程序,并且不会让人忽视问题,请有人帮助我吗?
此致, 罗伯托·索萨(Roberto Sousa)。
So i'm creating a standalone simulator that does a communication between a interface and a PLC. I'm creating the software the reads a initial csv configuration file, than the interface does requests of values from a address register or coil and than i return the value to the interface. So far, so good, i mean i need to do some tests but the problem is with the implementation of the communication with the interface. I have one .dll of that external interface, when i debbug i can upload the .dll without problems, the problem is that the interface is not lanched. It's my first time, i already programed some programs with c# (NetBeans, etc), never did a program in wpf format and canno't understant the problem, someone to help me please ?
Best Regards,
Roberto Sousa.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因此,我为我的界面的.dll加载文件提供了此代码:
比在此部分启动窗口的那部分中,它只是“ bugged”的软件,而不是什么都没有启动...在我的主体中,我创建了这条代码行:
当代码到达_gui.start()时应转到:
So i have this code for the .dll load file of my interface:
Than in this section, where it starts the window, the software it's simply "bugged" dosen't launch nothing... In my main i created this line of code :
When the code reaches the _gui.Start() should go to :