Skip to content

Instantly share code, notes, and snippets.

@wanghuaisheng
Created November 4, 2017 07:46
Show Gist options
  • Save wanghuaisheng/01ef8b42c6132e3d01b5d1eb3c2ea05f to your computer and use it in GitHub Desktop.
Save wanghuaisheng/01ef8b42c6132e3d01b5d1eb3c2ea05f to your computer and use it in GitHub Desktop.
调用IP库(QQWry.Dat)查询IP位置
一、C# 调用IP库(QQWry.Dat)查询IP位置
①、下载QQWry.Dat到D盘根目录(用户可以随意放置,没有特殊规定),点击下载。
②、使用第三方dll(IPLocation.dll)调用返回信息,点击地址。
③、项目引用第三方dll(IPLocation.dll),然后调用代码:IPLocation.IPLocation.IPLocate("D:\\qqwry.dat", "123.125.114.144"); 直接返回位置地址。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment