嗬嗬,發現了一個很好的網站。它提供下載注冊表文件,以恢複缺省的文件關聯。
點擊這裏
2012.07.29
[
閱讀全文]
給大家更新下:
BETV已於2012年3月1日啟動認證,所有老的版本都無法正常使用。也就是說,要注個冊才可以觀看。
新版下載http://www.ibetv.com/。
各個頻道播放效果不錯嗬嗬,鼓鼓掌!
2012.06.30[
閱讀全文]
這兩天練習寫了個python腳本,就是在命令行下掃描指定的驅動器或者文件夾,看有哪些文件很久都沒有被訪問過了。可以是天數,或者指定的日期以後。但是調試的時候,總是報錯:"FScan.py",line115,in
main(sys.argv[1])
line43,inmainaccess_time=time.mktime(time.strptime(entry,"%Y/%m/%d"))
line313,instrptimedata_string(found.end():])
ValueError:unconverteddataremains:嗬嗬~~折騰了我...[
閱讀全文]
要求字符串的格式是:AXXXX-XXXXX-XXXXX-XXXXX
其中X是A~Z或者0~9中的隨機字符。
下麵的兩個方法GetRandomStr和MakeChar都可以。
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Windows.Forms;
usingSystem.Threading;namespacegenerator
{
classProgram
{
staticvoidMain()
{
MessageBox.Show(MakeChar());
//MessageBox.Show(GetRan...[
閱讀全文]
最近用C#練習寫了一個注冊機。我用的是Win32API的SendMessage傳送注冊碼字串到目標程序的文本框。反複的修改過,可運行後總是不成功,也不報錯,很是納悶。
還是最後領悟了問題的答案,那就是以管理員權限運行該注冊機。
在城裏2012.05.12[
閱讀全文]
如果在VS2010下編譯時出現下麵的錯誤:
“Cannotembedinteroptypesfromassembly'vjslib.dll'becauseitismissingeitherthe'ImportedFromTypeLibAttribute'attributeorthe'PrimaryInteropAssemblyAttribute'attribute”
下麵的方法或許管用:
"Rightclickontheprojectinthesolutionexplorerwindowinordertobringupthecontextmenu.Thiswillgiveanumberofoptions,butyouwantthefinaloption,whichyoucanseefromtheatta...[
閱讀全文]
Wheneverisigninwindowslivemessengeritshowssomeerrorandasksfortroubleshoot.wheniclickontroubleshootitsaysthereissomeproblemwithkeyports.iwanttoknowwhatarekeyportsandhowtosolvethisproblem?
Answer:IhadthesameproblemandItriedeverythingIfoundinallkindofforumsbutnothingeveryseemstowork.Whatitworkedformewas:
First:
Clea...[
閱讀全文]
IgotthiserrorwhenIrecentlydecidedtosetupmypctowatchtvchannels.Afterlotsoffailsandresearch,Icameupwiththefollowingchecking:
1)DeviceManger>UniversalSerialBuscontrollers>eHomeInfraredReceiver(USBCIR)>Thisdeviceisworkingproperly.2)services.msc:
-HumanInterfaceDeviceAccess>Started
-WindowsMediaCenterReceiverService>Started3)Thefollowingaretwo"solutions"fromtonsofdiscussionsonthei...[
閱讀全文]