C#调用SDK

C#如何调用别人开发的SDK工具包呢?或者推荐一下相关的教材!谢谢!... C#如何调用别人开发的SDK工具包呢?或者推荐一下相关的教材!谢谢! 展开
 我来答
liyangfd
2010-04-13 · TA获得超过181个赞
知道小有建树答主
回答量:232
采纳率:50%
帮助的人:91.5万
展开全部
using System.Runtime.InteropServices;
[DllImport("HCNetSDK.dll")]

public static extern bool NET_DVR_ClientSetVideoEffect(int lRealHandle, uint dwBrightValue, uint dwContrastValue, uint dwSaturationValue, uint dwHueValue);

[DllImport("HCNetSDK.dll")]

public static extern bool NET_DVR_ClientGetVideoEffect(int lRealHandle, uint pBrightValue, uint pContrastValue, uint pSaturationValue, uint pHueValue);

[DllImport("HCNetSDK.dll")]

public static extern bool NET_DVR_RigisterDrawFun(int lRealHandle, DrawFun x, uint dwUser);

[DllImport("HCNetSDK.dll")]

public static extern bool NET_DVR_SetPlayerBufNumber(int lRealHandle, uint dwBufNum);

[DllImport("HCNetSDK.dll")]

public static extern bool NET_DVR_ThrowBFrame(int lRealHandle, uint dwNum);

参考资料: www.anfangjishu.com

本回答被提问者和网友采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
hightenter
2010-04-07 · TA获得超过280个赞
知道小有建树答主
回答量:382
采纳率:0%
帮助的人:303万
展开全部
调用非托管DLl函数using systtem.runtime.xxx;

翻译如下:
[DllImport("xxx.dll")]
public static extern int Sms_Connect (string pServer,int lCorpID,string pLoginName,string pPasswd,int lTimeOut,int HWND);
[DllImport("xxx.dll")]
public static extern void Sms_DisConnect();
[DllImport("xxx.dll")]

public static extern int Sms_Send(string pMobile,string pMsg,ref int lSmsID);
[DllImport("xxx.dll")]
public static extern int Sms_Get(string pNo,string pMsg,string pTime);

http://bbs.bccn.net/forum-117-1.html
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式