![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c#
little_bill
踏实 稳重,有事业心。进去心
展开
-
无法将类型为“System.__ComObject”的 COM 对象强制转换为接口类型“HttpWatch.Controller”...
调用httpwatch接口时报:无法将类型为“System.__ComObject”的 COM 对象强制转换为接口类型“HttpWatch.Controller”。此操作失败的原因是对 IID 为“{77046B9F-91A0-4E16-B5A7-6489BCE7BBBB}”的接口的 COM 组件调用 QueryInterface 因以下错误而失败: 不支持此接口 (异常来自 HRESUL...原创 2012-06-01 09:45:39 · 1438 阅读 · 0 评论 -
无法嵌入互操作类型“SHDocVw.ShellWindowsClass”请改用适用的接口-解决方法
点DLL名字,---属性----------嵌入互操作类型(设置为false)原创 2012-04-01 14:51:16 · 605 阅读 · 0 评论 -
C# 通过代理获取url数据
[code="c#"]public static string GetUrl2Data(String url, bool stat){ WebRequest myWebRequest = null; WebResponse myWebResponse = null; Stream streamResponse = null; StreamReader streamRead ...原创 2012-04-13 14:08:07 · 245 阅读 · 0 评论 -
C# 执行运行命令-调用ShellExecute
方法:[code="c#"][DllImport("shell32.dll")] public static extern int ShellExecute(IntPtr hwnd, StringBuilder lpszOp, StringBuilder lpszFile, StringBuilder lpszParams, StringBuilder lpszDir, ...原创 2012-04-13 14:10:37 · 646 阅读 · 0 评论 -
C# 调用httpwatch接口基础使用方法
(1)安装httpwatch;(2)打开c#工程,在“引用”中增加“COM”组件,在“COM”组件中找到“HttpWatch Professional 7.2 Automation Libary”,确定。(7.2为我安装的httpwatch版本)(3)copy代码[code="c#"]using System;using HttpWatch;namespace ...原创 2012-04-13 14:20:31 · 406 阅读 · 0 评论 -
C# FTP 自动创建目录/上传文件
[code="c#"] //上传文件 public static Boolean FtpUpload(string ftpPath,string localFile) { //检查目录是否存在,不存在创建 FtpCheckDirectoryExist(ftpPath); ...原创 2012-04-13 14:26:37 · 578 阅读 · 0 评论 -
C# ini/文件/目录 操作方法
[code="c#"]#region API函数声明[DllImport("kernel32")]//返回0表示失败,非0为成功private static extern long WritePrivateProfileString(string section, string key, string val, string filePath);[DllImport("...原创 2012-04-13 14:29:09 · 109 阅读 · 0 评论