在vc中可以如此:
#include <Wininet.h>
#pragma comment(lib,"Wininet") 但是c#中不知道怎么搞。
c# 中有没有类似于InternetOpen之类的函数,我要通过http验证。
#include <Wininet.h>
#pragma comment(lib,"Wininet") 但是c#中不知道怎么搞。
c# 中有没有类似于InternetOpen之类的函数,我要通过http验证。
解决方案 »
- C#串行化Serialize的文件,怎么在C++中反串Deserialize?
- 正则表达式替换URL的问题
- 如何将gridview转为table 输出?
- backgroundWorker和progressBar的使用
- Socket BeginReceive 异步接收问题。代码相当短,请进来看看。
- 一个让我头大的问题。(分不够再加,帮忙顶有分,先谢谢了)
- 跪求个位大哥!~~小弟无法从数据库读取数据~~~~~ 请各位帮帮忙!!!现场等
- 100分求一api函数在C#中的有效使用方法~!
- 能不能把资源文件编译到DLL文件中?
- 升星星,散点分~
- 求助:怎样画出多边形各个顶点角的角平分线?
- 简单奇怪的问题
声明方式:
[DllImport("wininet.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern IntPtr InternetOpen(string sAgent, int iAccessType, string sProxyName, string sProxyBypass, int iFlags);