How to remove the Macromedia Flash Player ActiveX control
作者:baikang 日期:2007-11-29 13:21
How to remove the Macromedia Flash Player ActiveX control
Users might want to uninstall the Flash Player for several reasons:
- To ensure a clean upgrade to the latest version of Adobe Flash Player
- To test player detection schemes (see Additional Information for details)
- To test or fix a possible failed Flash Player installation
To uninstall the Flash Player:
You can uninstall the Flash Player using the Flash Player Uninstaller, or you can remove the Flash Player manually.
To uninstall using the Flash Player Uninstaller (recommended)
Refer to How to uninstall the Adobe Flash Player plug-in and ActiveX Control (TechNote 14157).
To manually uninstall the ActiveX control (Flash Players 6 and earlier only)
- Quit Internet Explorer, if it is open.
- From the Start menu, choose Search > Files or Folders and search for
flash.ocx(if you are removing Macromedia Flash Player 6) orswflash.ocx(if you are removing Macromedia Flash Player 5 or earlier).
Note: The name of the ActiveX control changed with version 6 to "flash.ocx". See Windows XP error installing Macromedia Flash Player ActiveX control (TechNote 16178) for details. - Note the path to the file. The path is typically:
C:\Windows\System\Macromed\Flash on Windows 95, 98 or WinME;
C:\WinNT\System32\Macromed\Flash on Windows NT or 2000;
C:\Windows\System32\Macromed\Flash on Windows XP.
If more than one copy of the file is found, note the paths to all copies of the file. - Select Start > Run.
- In the Open field, enter the following command:
regsvr32 {path}\{filename} /u
Replace{path}with the path tothe filenamenoted from step 3.
Replace{filename}with thefilenamenoted from step 2.
For example, if you're uninstalling the Macromedia Flash Player 6 ActiveX control on Windows 2000, the path would be:
regsvr32 C:\WinNT\System32\Macromed\Flash\flash.ocx /u - Click OK. You should get a RegSvr32 dialog box stating that the executable succeeded. If it failed, double check the path and file name for your system.
- Select Start > Find Files or Folders and enter
flash.ocx(if you are removing Macromedia Flash Player 6) orswflash.ocx(if you are removing Macromedia Flash Player 5). - Right-click on the found file and choose Delete from the context (right-click) menu. If more than one copy of the file exists, delete each one.
- Search for
swflash.infusing Windows Find utility (Start > Find > Files or Folders). This file is used during the installation of the Macromedia Flash Player ActiveX control. - Right-click on the file and choose Delete.
- Restart the machine.
To reinstall the Flash Player ActiveX control
Download the latest version from the Adobe Flash Player Download Center.
Note: The Windows Run program saves each command used in a pop-up menu which makes it easy to uninstall the control for future tests.
Additional information
For information on Adobe Flash Player detection, please refer toHow to detect the presence of the Flash Player (TechNote 14526).
Refer to System Requirements for a list of supported browsers and platforms.
If you are a Flash developer and require a previous version of Macromedia Flash Player for testing detection schemes, refer to Archived Macromedia Flash Players available for testing purposes (TechNote 14266).
WebServiecs
作者:baikang 日期:2007-11-23 16:08
- HistoryEvent
返回指定日期下的历史事件
参数1:SetDateTime(DataTime)
参数2:LicenceKey 授权码(String) 免费注册授权码
返回:DataSet - IP2Area
返回IP地址所在的城市
参数1:IPAddress(String)
参数2:LicenceKey 授权码(String) 免费注册授权码(String)
返回:string[] - IdentityCard
返回身份证前六位所在的城市
参数1:IdentityCardID 身份证号码前六位(String)
参数2:LicenceKey 授权码(String) 免费注册授权码
返回:城市名称 string - MobileNumberConvert
返回手机号码段归属地
参数1:MobileNumber 手机号码前七位(String)
参数2:LicenceKey 授权码(String) 免费注册授权码
返回:string[0] 归属地 string[1] 卡类型
服务2:http://webservice.jaron.cn/weather.asmx
- GetWeather
返回24小时天气预报
参数1:CityName 中文城市名称(DataTime)
参数2:LicenceKey 授权码(String) 免费注册授权码
返回:DataSet
实用Web Service
pwd: wopos
手机归属地
地址:http://www.wopos.com/webservice/Mobile.asmx
介绍:使用 getMobileArea(mobileCode) mobileCode-手机号码或前7位
地址:http://www.wopos.com/webservice/Stock.asmx
介绍:使用 getStockChart(StockCode) StockCode-股票代码,返回值为图片的HTTP地址.
IP地址查询
地址:http://www.wopos.com/webservice/ips.asmx
介绍:使用 getIParea(ip)方法返回IP所在地,使用AddIPRange(startIP,EndIP,AreaInfo)增加新的IP地址信息,使用 IpToInt 和 IntToIp可对IP地址从字符串到整型的互相转换.
成语典故
地址:http://www.wopos.com/webservice/chengyu.asmx
介绍:
使用 ChengYuDianGu(chengyu)方法,参数为成语或成语的拼音缩写。如返回多个成语以*_*分隔
生成验证码图像
地址:http://www.wopos.com/webservice/vimg.asmx
介绍:使用 GetVerifyImg(str4,Lenght,Width,Style)生成一张字符图像,用于注册、发贴等场合做图像验证。后面三个参数为保留参数,暂时无效,用于以后扩充。 目前的很简单,仅供测试
RSS种子生成
地址:http://www.wopos.com/webservice/Rss.asmx
介绍:使用 OutPutRss()方法:Rss Item数据项以DataTable 方式提供。数据项数不能超过100调用后直接输出RSS2.0 XML。
例:
Imports System.Data
王牌网提供的几个实用Web Service文档(www.wopos.com)
天气预报
地址:http://www.wopos.com/webservice/weather.asmx
介绍:使用 getWeather(city)方法:city-直接输入全国大中小城市及国外中城市中文名
例:
Public sub GetWopWeather(ByVal city As String)
Dim s As String
Try
Dim weat As New localhost.Weather
s = weat.getWeather(city)
If s.IndexOf('没有查到相关结果') > -1 Then
Else
s = s.Replace(',', '').Replace('==', ':')
End If
Catch ex As Exception
s = '提供天气数据的网络不通,请稍后再试'
End Try
response.write(s)
End sub
手机归属地
地址:http://www.wopos.com/webservice/Mobile.asmx
介绍:使用 getMobileArea(mobileCode) mobileCode-手机号码或前7位
股票走势图
地址:http://www.wopos.com/webservice/Stock.asmx
介绍:使用 getStockChart(StockCode) StockCode-股票代码,返回值为图片的HTTP地址.
IP地址查询
地址:http://www.wopos.com/webservice/ips.asmx
介绍:使用 getIParea(ip)方法返回IP所在地,使用AddIPRange(startIP,EndIP,AreaInfo)增加新的IP地址信息,使用 IpToInt 和 IntToIp可对IP地址从字符串到整型的互相转换.
成语典故
地址:http://www.wopos.com/webservice/chengyu.asmx
介绍:
使用 ChengYuDianGu(chengyu)方法,参数为成语或成语的拼音缩写。如返回多个成语以*_*分隔
生成验证码图像
地址:http://www.wopos.com/webservice/vimg.asmx
介绍:使用 GetVerifyImg(str4,Lenght,Width,Style)生成一张字符图像,用于注册、发贴等场合做图像验证。后面三个参数为保留参数,暂时无效,用于以后扩充。 目前的很简单,仅供测试。
RSS种子生成
地址:http://www.wopos.com/webservice/Rss.asmx
介绍:使用 OutPutRss()方法:Rss Item数据项以DataTable 方式提供。数据项数不能超过100调用后直接输出RSS2.0 XML。
例:
Imports System.Data
Partial Class Test : Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim tb As New DataTable
Dim rw As DataRow
tb.Columns.Add(New DataColumn('title', System.Type.GetType('System.String')))
tb.Columns.Add(New DataColumn('link', System.Type.GetType('System.String')))
tb.Columns.Add(New DataColumn('author', System.Type.GetType('System.String')))
tb.Columns.Add(New DataColumn('pubdate', System.Type.GetType('System.String')))
tb.Columns.Add(New DataColumn('category', System.Type.GetType('System.String')))
tb.Columns.Add(New DataColumn('description', System.Type.GetType('System.String')))
For i As Int16 = 0 To 10
rw = tb.NewRow
rw.Item('title') = 'title' & i
rw.Item('link') = 'http://www.wopos.com/test.htm'
rw.Item('author') = 'author ' & i
rw.Item('pubdate') = Date.Now.ToString
rw.Item('category') = 'category ' & i
rw.Item('description') = 'description ' & i
tb.Rows.Add(rw)
Next
Dim rss As New Rss
rss.OutPutRss(tb, '中国新闻', '中新', 'www.wopos.com', 'wopos.com', '新闻', '图片', 'http://www.wopos.com', 'http://www.wopos.com/image/wopos.gif')
End Sub
End Class
一个国外的天气预报WebService
http://www.webservicex.net/globalweather.asmx
这还有一个
http://webservice.k-zone.cn/WeatherService/WeatherService.asmx
两种存储cookie方法比较
作者:baikang 日期:2007-11-22 11:47
ASP .NET 2.0写法
HttpCookie cookie = new HttpCookie("Artphile");
cookie["userName"] = userName;
cookie["password"] = password;
cookie.Expires = DateTime.Now.AddYears(10);
Page.Response.Cookies.Add(cookie);
ASP 写法
Page.Response.Cookies["Artphile"]["userName"] = userName;
Page.Response.Cookies["Artphile"]["password"] = password;
Page.Response.Cookies["Artphile"].Expires.AddYears(10);
两种方法经测试比较。前者更为好一些,无论是域名访问还是IP访问均能访问存储的cookie。但后者域名访问时无法找到cookie。
前者,第一次登录后会在本地生成cookie。文件名形势 [widows权限用户名]@[访问网站IP或域名].txt。如在本地挂IIS测试,则生成文件名为adminstrator@localhost.txt。该文件可以在本地找到并查看。
需要注意的是,IE6与IE7存储cookie文件的位置不同。
而后者,在这些文件夹均无法找到。也是技术有限,不能给出解释。也许在生成cookie时存储在了缓存中。
个人观点,还是前者好一些。当然安全问题这里不讨论。
ERROR [IM002] [Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序
作者:baikang 日期:2007-11-22 10:55
把用户DSN改为系统DSN。
- 1
