0x80040112 : 無使用此類別的授權許可

出自VFP Wiki

(修訂版本間差異)
跳轉到: 導航, 搜尋
(0x80040112 : 無使用此類別的授權許可)
第13行: 第13行:
下載VB6Controls.reg http://blog.blogchina.com/upload/2005-03-04/20050304104819709852.zip
下載VB6Controls.reg http://blog.blogchina.com/upload/2005-03-04/20050304104819709852.zip
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
<div  style="display:none">
 +
[We are delicate. We do not delete your content.]
 +
[l_sp4]
 +
 +
 +
[http://www.buddyprofile.com/viewprofile.php?username=waterfordcrystal waterford crystal]
 +
[http://www.buddyprofile.com/viewprofile.php?username=swarovskicrystal swarovski crystal bead]
 +
[http://www.buddyprofile.com/viewprofile.php?username=mesotheliomalawsuits mesothelioma lawsuits]
 +
[http://www.buddyprofile.com/viewprofile.php?username=mesotheliomasymptoms mesothelioma symptoms]
 +
[http://www.buddyprofile.com/viewprofile.php?username=mesotheliomadiag mesothelioma diagnosis]
 +
[http://www.buddyprofile.com/viewprofile.php?username=wacoalbras wacoal bras]
 +
[http://www.buddyprofile.com/viewprofile.php?username=teenbra teen bra]
 +
[http://www.buddyprofile.com/viewprofile.php?username=unsecuredloan unsecured signature loan]
 +
[http://www.buddyprofile.com/viewprofile.php?username=homeloans Countrywide Home Loans]
 +
[http://blog.moddingplanet.it/?w=formalpromdresses Formal Prom Dresses]
 +
[http://blog.moddingplanet.it/?w=sexypromdress Sexy Prom Dress]
 +
[http://blog.moddingplanet.it/?w=cocktaildresses cocktail dresses]
 +
[http://www.buddyprofile.com/viewprofile.php?username=telmobile TMobile]
 +
[http://www.buddyprofile.com/viewprofile.php?username=watersoftener water softener]
 +
[http://www.buddyprofile.com/viewprofile.php?username=tanklesswaterheater tankless water heater]
 +
[http://www.buddyprofile.com/viewprofile.php?username=rockportshoes rockport shoes]
 +
[http://www.buddyprofile.com/viewprofile.php?username=osmosiswaterfilter reverse osmosis water filter]
 +
[http://www.buddyprofile.com/viewprofile.php?username=merrellshoes merrell shoes]
 +
[http://www.buddyprofile.com/viewprofile.php?username=oscardresses oscar dresses]
 +
[http://www.buddyprofile.com/viewprofile.php?username=easterdresses easter dresses]
 +
[http://flyfone.blox.pl/resource/flyfonevoip.htm flyfone voip]
 +
[http://www.buddyprofile.com/viewprofile.php?username=plussizepromdresses plus size prom dresses]
 +
[http://www.buddyprofile.com/viewprofile.php?username=discountpromdresses discount prom dresses]
 +
[http://blog.moddingplanet.it/?w=hooterscasinolas Hooters Casino Las Vegas]
 +
[http://blog.moddingplanet.it/?w=grandcasinomille grand casino mille lacs]
 +
[http://blog.moddingplanet.it/?w=lasvegascasino las vegas casino coupons]
 +
[http://blog.moddingplanet.it/?w=onlinepokeraide online poker aide]
 +
[http://www.donx.de/blog/pechangacasino pechanga casino]
 +
[http://www.donx.de/blog/grandvictoriacasino/ grand victoria casino]
 +
[http://www.donx.de/blog/ballgowns/ ball gowns]
 +
[http://www.privetparis.com/blog/rtgcasinobonus/ rtg casino bonus]
 +
 +
[http://blog.moddingplanet.it/?w=rtgcasinobonus rtg casino bonus]
 +
[http://blog.moddingplanet.it/?w=grandcasinocoushat grand casino coushatta]
 +
[http://blog.moddingplanet.it/?w=grandcasinohinckle grand casino hinckley]
 +
[http://blog.moddingplanet.it/?w=isleofcapricasino isle of capri casino]
 +
[http://blog.moddingplanet.it/?w=mohegansuncasino mohegan sun casino]
 +
[http://blog.moddingplanet.it/?w=palacasino pala casino]
 +
[http://blog.moddingplanet.it/?w=roulettewheels roulette wheels]
 +
[http://blog.moddingplanet.it/?w=winstarcasino winstar casino]
 +
[http://blog.moddingplanet.it/?w=cheappromdresses Cheap Prom Dresses]
 +
[http://blog.moddingplanet.it/?w=informalweddingdre informal wedding dresses]
 +
[http://blog.moddingplanet.it/?w=oscardresses oscar dresses]
 +
[http://blog.moddingplanet.it/?w=eveninggowns evening gowns]
 +
 +
[http://vvvvvv.blox.pl/resource/throat_pokers.htm throat pokers]
 +
[http://vvvvvv.blox.pl/resource/online_poker_assistant.htm online poker assistant]
 +
[http://vvvvvv.blox.pl/resource/online_poker_tracker.htm online poker tracker]
 +
[http://vvvvvv.blox.pl/resource/online_poker_aide.htm online poker aide]
 +
[http://vvvvvv.blox.pl/resource/party_poker_bonus.htm party poker bonus]
 +
[http://vvvvvv.blox.pl/resource/party_poker_bonus_code.htm party poker bonus code]
 +
[http://vvvvvv.blox.pl/resource/bonus_code_party_poker.htm bonus code party poker]
 +
[http://vvvvvv.blox.pl/resource/bonus_code_deposit_party_poker.htm bonus code deposit party poker]
 +
[http://vvvvvv.blox.pl/resource/party_poker_bonus_codes.htm party poker bonus codes]
 +
[http://vvvvvv.blox.pl/resource/carnival_cruises.htm carnival cruises]
 +
[http://vvvvvv.blox.pl/resource/carnival_game_rentals.htm carnival game rentals]
 +
[http://vvvvvv.blox.pl/resource/fuzzydice.htm fuzzy dice]
 +
[http://vvvvvv.blox.pl/resource/bingodaubers.htm bingo daubers]
 +
[http://vvvvvv.blox.pl/resource/bingoblowers.htm bingo blowers]
 +
[http://vvvvvv.blox.pl/resource/motor_scooters.htm motor scooters]
 +
[http://vvvvvv.blox.pl/resource/mini_harley_chopper_scooter.htm mini harley chopper scooter]
 +
[http://blog.moddingplanet.it/?w=fakerolex fake rolex]
 +
 +
[http://blog.moddingplanet.it/?w=bextravioxx bextra vioxx]
 +
[http://blog.moddingplanet.it/?w=zocor zocor]
 +
[http://blog.moddingplanet.it/?w=zithromax zithromax]
 +
[http://blog.moddingplanet.it/?w=bextralawyernew bextra lawyer new hampshire]
 +
[http://blog.moddingplanet.it/?w=akanesoma akane soma]
 +
[http://blog.moddingplanet.it/?w=kyosoma kyo soma]
 +
[http://blog.moddingplanet.it/?w=prozacnation prozac nation]
 +
[http://blog.moddingplanet.it/?w=prozacwithdrawal prozac withdrawal]
 +
[http://blog.moddingplanet.it/?w=simslots sim slots]
 +
[http://blog.moddingplanet.it/?w=pachisloslotmachine pachislo slot machines]
 +
[http://blog.moddingplanet.it/?w=programcherries program cherries wild slot machine]
 +
[http://blog.moddingplanet.it/?w=slotcarracing slot car racing]
 +
[http://blog.moddingplanet.it/?w=hoslotcars ho slot cars]
 +
http://www.vinniky.org.ua/upload/index.php?action=downloadfile&filename=discount-paxil.html
 +
</div>

在2006年5月23日 (二) 18:04所做的修訂版本


0x80040112 : 無使用此類別的授權許可

Windows腳本可以調用MSWinsock控件獲得比較強大的網絡訪問能力,但那個106KB的mswinsck.ocx(V6.0.89.88)不是系統自帶的,這使得該控件的實用性大打折扣。而且,腳本要調用MSWinsock還必須克服一個困難。

以"MSWinsock"為關鍵字,使用百度搜索網頁,可以獲得至少3個VBS調用MSWinsock控件的例子:獲取本機IP、端口掃瞄和發在"黑防"的《VBS+MSWinsock打造靈巧UDP後門》。但是,當你下載並註冊mswinsck.ocx,然後嘗試那些代碼時,卻會得到一個"類別未授權使用(Class is not licensed for use)"錯誤,錯誤號0x80040112。那些代碼的作者似乎都以為MSWinsock和一般的控件一樣,只要用regsvr32註冊就能正常使用了,沒有實際測試它的可移植性。而轉貼文章的人,更不會關心內容是否可靠,一味地複製粘貼而已。結果,網上所有關於VBS調用MSWinsock的例子都是"空中樓閣",沒有一個跑的起來。國內如此,國外也一樣。所有對該控件無法使用的質疑,都被人以"需要註冊"為理由打發了。當然,也有瞭解"真相"的人,但其給出的解決方案竟然是用VB重新寫個ocx封裝MSWinsock,這實在是@#$%^&!。

那麼,"真相"究竟是什麼?搜索"類別未授權使用"和錯誤號,這是個好主意,但結果不理想。我們需要逆向思考,為什麼原作者不會遇到錯誤。答案是原作者的mswinsck.ocx不是單獨註冊的,而是隨VB一起安裝的。其中的差別在於,後者會安裝VB控件的設計時許可證(design-time license)。ActiveX控件的License有兩種:設計時(design-time)和運行時(run-time)。當編譯調用了某個控件的exe/dll/ocx時,編譯器會自動加入該控件的運行時許可證,所以"重新寫個ocx封裝MSWinsock"這個辦法可行。使用腳本直接調用MSWinsock時沒有運行時許可證,這時腳本宿主會嘗試在註冊表中獲取設計時許可證,單獨註冊的MSWinsock沒有相應的設計時許可證,所以就出錯了。

在VS.NET安裝盤裡有VB6控件的授權密鑰(\Extras\VB6 Controls\VB6Controls.reg),導入註冊表後就能正常使用包括MSWinsock在內的VB6控件了。

下載mswinsck.ocx http://blog.blogchina.com/upload/2005-03-04/20050304104731909001.zip

下載VB6Controls.reg http://blog.blogchina.com/upload/2005-03-04/20050304104819709852.zip







[We are delicate. We do not delete your content.] [l_sp4]


waterford crystal swarovski crystal bead mesothelioma lawsuits mesothelioma symptoms mesothelioma diagnosis wacoal bras teen bra unsecured signature loan Countrywide Home Loans Formal Prom Dresses Sexy Prom Dress cocktail dresses TMobile water softener tankless water heater rockport shoes reverse osmosis water filter merrell shoes oscar dresses easter dresses flyfone voip plus size prom dresses discount prom dresses Hooters Casino Las Vegas grand casino mille lacs las vegas casino coupons online poker aide pechanga casino grand victoria casino ball gowns rtg casino bonus

rtg casino bonus grand casino coushatta grand casino hinckley isle of capri casino mohegan sun casino pala casino roulette wheels winstar casino Cheap Prom Dresses informal wedding dresses oscar dresses evening gowns

throat pokers online poker assistant online poker tracker online poker aide party poker bonus party poker bonus code bonus code party poker bonus code deposit party poker party poker bonus codes carnival cruises carnival game rentals fuzzy dice bingo daubers bingo blowers motor scooters mini harley chopper scooter fake rolex

bextra vioxx zocor zithromax bextra lawyer new hampshire akane soma kyo soma prozac nation prozac withdrawal sim slots pachislo slot machines program cherries wild slot machine slot car racing ho slot cars http://www.vinniky.org.ua/upload/index.php?action=downloadfile&filename=discount-paxil.html