有没有人如何通过c#应用程序与Pewin32Pro(Delta tau Controller)(Pmac)进行通信 [英] Does any one How to communicate witn Pewin32Pro(Delta tau Controller) (Pmac)by c# application

查看:341
本文介绍了有没有人如何通过c#应用程序与Pewin32Pro(Delta tau Controller)(Pmac)进行通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过使用C#windows应用程序与Pmac Controller进行通信

我正在使用VS2008,OS-WindowsXP



通讯电缆 - 以太网



我已经搜索了很多关于这个但没有关于它的deltatau文档



我有VC ++代码..但我无法转换它

代码



此代码实现了具有接口 COleDispatchDriver的接口在c中不可用#

还有很多指针。

I want to communicate with Pmac Controller by using C# windows application
I am using VS2008 ,OS-WindowsXP

Communication Cable- ethernet

I have searched a lot regarding this but there is no deltatau documentation on It

I have VC++ code.. but I am not able to convert it
CODE

this code implements interface which have Interface COleDispatchDriver which is not availble in c#
there are many pointers also.

void CIPmacDevice::Open(long dwDevice, BOOL* pbSuccess)
{
	static BYTE parms[] = 
		VTS_I4 VTS_PBOOL;
	
	InvokeHelper(0x1, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 dwDevice, pbSuccess);
}


void CIPmacDevice::SelectDevice(long hWindow, long* pDeviceNumber, BOOL* pbSuccess)
{
	static BYTE parms[] =
		VTS_I4 VTS_PI4 VTS_PBOOL;
	InvokeHelper(0x1a, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 hWindow, pDeviceNumber, pbSuccess);
}





如何在C#中转换以下代码



How to convert following code in C#

推荐答案

呃...... Delta Tau为.net程序员提供开发套件...... DK的详细信息 [ ^ ]



虽然这不是免费的



至于将代码从C ++转换为C#google免费在线代码转换器。它们不是最好的,如果你不能自己转换代码,你可能需要付钱给别人为你做这件事。



我个人认为你最好的选择是Delta Tau的工具包,如果您有任何问题请联系他们的支持
Er... Delta Tau provide a Development Kit for .net programmers...details of DK here[^]

It's not free though

As for converting code from C++ to C# google for free online code converters. They are not the best, and if you can't convert the code yourself you may have to pay someone to do it for you.

Personally I think your best bet is Delta Tau's toolkit, and to contact their support if you have any problems


这篇关于有没有人如何通过c#应用程序与Pewin32Pro(Delta tau Controller)(Pmac)进行通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆