外文翻译--用VB构建INTERNET的应用.doc
INTERNETusedtobuildVBapplications【Abstract】DevelopmentofInternettechnologyastheprogrammertoprovideabroaderspacefortheirskill.Earlier"InternetApplications"isthewordrefertothosewithFTPprotocoltodownloadfilesorbrowsetheHTMLpagetool,nowuseVisualBasic,notonlythedevelopmentofapplicationsfortheInternet,butalsotheintegrationofInternettechnologyaspartoflarge-scalesolutionsin.【KeyWords】Internet;VisualBasic;ActiveXcomponents;technology;procedures.ThedevelopmentofInternettechnologyastheprogrammertoprovideabroaderspacefortheirskill.Earlier"InternetApplications"isthewordrefertothosewithFTPprotocoltodownloadfilesorbrowsetheHTMLpagetool,nowuseVisualBasic,notonlythedevelopmentofapplicationsfortheInternet,butalsotheintegrationofInternettechnologyaspartoflarge-scalesolution.HerethequestionstobediscussedistheuseofVisualBasictocreateapplicationsfortheInternetplayanimportantroleintheActiveXcomponent.Forexample,thecreationofActiveXcontrolscanbeusedforHTMLpages;thedevelopmentofActiveXdocumentscanbeusedinInternetbrowsersandothercomponentsintegratedtogetherandHTMLpages;otherActiveXcodecomponents(formerlyknownasOLEserver),canbedeployedtheclientorservercomputer,forbackgroundprocessing.A,InternetDevelopmentEnvironmentInternetistheuseofTCP/IPprotocol,aglobalnon-centralizedmanagementofcomputernetworks.Ifforthelocal,theso-called"InternetTechnology"andlocalLANcanbeusedinthesametechnology.Ontheonehand,Internettechnologydeveloperstoprovideaspacefortheirskill.IftheWebconnectionandtheuseofActiveXcomponents,althoughthespecificmethodstoachievedifferent,suchastheuseofHTMLandVBScriptcodeinordertoachievesecurity,butstillcallthemethod,setproperties,handleeventsandsoon.This,VBdevelopersofallknowledgeandskillshavebeenusedinInternetenvironment.Ontheotherhand,anextensionoftheapplicationofInternettechnologydevelopment.SuchasActiveXcomponentsandInternettechnologieshavethefollowingbenefits:easiertomaintain-asaWebpartofthenecessarycomponentscanbedownloadedwithouttheuserrunasetupprogramtoupgrade;willfeatureextendedtotheInternet-throughtheGeneralAgreement,theuserwillnotseeinbetweentheInternetandIntranetswitch.Second,Internetclient/serverCanuseclient/servertotesttherelationshipbetweentheInternetdevelopmentenvironment,clientandservercanhave"static"and"the"twostates.Theactivitiesoftheclientortheservermaychangeitsinternalstateanddynamically,orrunascripttochangetheirbehavior;staticclientortheserverisonlyincentivetorespondtotheoutsideworld.Internetdevelopment,includingfourcases:astaticandpassiveclientserver;staticclientserverandactivities;theactivitiesoftheclientandtheserverstatic;activitiesandactivitiesoftheclientserver.Third,theuseofActiveXcomponentsWeb.ActiveXcomponentsforInternettechnologybringsnewfeatures.DownloadedthroughtheInternetcomponents,super-connected,themenufeaturesavarietyofconsultations,theActiveXcomponentsandInternetintegration,andcontentandapplicationshasbecomeincreasinglyblurredlinebetween;anothersitedueto(intheclientandserverbetween)thedistributionfunction,youcancreateamorescalableandflexiblesite.InternetapplicationsintheuseofActiveXdocuments,canbedevelopedandtheInternet/IntranetsiteoftheotherelementsofthetightintegrationofVisualBasicapplications.Developedtheuseofthesecomponentsoftheapplication,userscantransparentlyintheHTMLpagesandActiveXdocumentsmigrationbetween.ActiveXdocumentscanbeasaVisualBasicapplicationfortheInternettoprovidealmoststandardnowtocompletetheworkoftheapplicationcanachieveusingActiveXdocuments.AsanHTMLpageelements,iftheusersclientdoesnotinstallActiveXdocuments,andcanbedownloadedfromtheInternetautomatically;iftheclientontheolderversioncanalsobeautomaticallyupgraded.?ActiveXdocumentprovidesmanyfeaturestoinstallandnavigationperformance,andtoensurecontinuedconsistency:Internetcomponentdownload-cancreatealinktotheActiveXdocument,sothatthebrowsercanautomaticallyfindanddownloadalltherequiredcomponents.Ultra-connectedobjects-inasuper-connectedpacket-awarecontainer,youcanuseVisualBasictoconnectthesuper-objectpropertiesandmethods,JumptoagivenURLorthroughthenavigationhistorylist.Menuandconsultation-asaresultcangetWordorExceldocument,VisualBasicprovidestheActiveXDocumentembeddingitsmenuinyourbrowsermenufunctions.Forexample,whenbeingloadedintothedocumentinInternetExplorer,thebrowsersmenuwillbecreatedwiththeActiveXdocumentmixedmenu.PropertyBag-WheninInternetExplorerinthedeploymentofActiveXdocument,PropertyBagcanmaintaintheconsistencyofdataobjects.InInternetExplorerinthedeploymentofanActiveXdocumenttoHTMLpagethroughasuper-connectiontoconnecttotheActiveXdocument.1.TouseHTMLtocreatequoteconnecttheActiveXdocument.DocumentwillbeasaresultofActiveXinInternetExplorertoreplacetheHTMLpage,sotoOBJECTtagsoncomponentsofanotherHTMLpage.WhentheJumptothepage,oncetheActiveXdocumentisloaded,itwillimmediatelydisappear.2.UsingHTMLforthebrowseravailablefordownload,registrationandnavigationtothewaytheActiveXdocument.OBJECTtagintheActiveXdocumentshouldindicatethetypeofIDandtheCODEBASEattribute.3.Inthesamepage,InternetExplorerusingVBScriptinstructionsimmediatelythroughtheappropriatenavigationvbdfiletotheActiveXdocument.Fourth,intheInternetapplicationsuseActiveXcontrols.ActiveXcontrolforadynamicHTMLpage:theadoptionofHTMLandVBScript,inanHTMLpagecanuseActiveXcontrols,setitsproperties,callitsmethodsanditsevents;acontrolthatcontainstheHTMLpageasifthedesignofaVisualBasicthewindow,ActiveXcontrolscanprovidemorevividandinteractiveuserinterfacefeaturestomakeHTMLpagesmoredynamic.GeneralHTMLandVBScriptbymeansofacomprehensivereferenceandcontrolthebehaviorofActiveXcontrols.TheuseofHTMLforthebrowseravailablefordownload,registrationandreferencechannelsquotedActiveXcontrols.HTMLcodeintheOBJECTtagtoinclude:1.ControlthetypeofID,inordertoprocesstheregistryinWindowstofindthem;2.IDattributesinordertoinvokethecontrolinVBScript(VisualBasicissimilartotheNameattribute);3.CODEBASEattributetotellifthecomponentisnotthebrowserclienttofindwheretogo;4.PARAMNAMElabel,setthepropertiesofthecontrolparameters.PreparedtodealwithandthenuseVBScriptcodeclickeventssothateachcontrolbyclick,theprogramcanbeusedforthecorrespondingaction.isualBasicProfessionalEditionalsoincludesthreepre-designedpackagesforcontrolofInternetrelatedtechnologies,toexpandexistingapplications,theyare:InternetTransferControl-threeparcelsofcommonInternetprotocol:HTTP,FTPandGopher;WebBrowserControl-includesmanyavailablethroughtheInternetExplorerfeatures;WinSockControl-canconnecttoaremotemachine,andthenthroughtheUDPorTCPtoexchangedata.ThroughtheuseofthesecontrolscanbeaddedautomaticallyfromtheFTPsitetodownloadfiles,VisualBasicIDEcanalsoprovideWebbrowserAdd-in.InternetapplicationsintheuseofActiveXcodecomponents,whethertheclientortheserverside,youcanuseActiveXcodecomponents(dllorexefiles),soastoaddfeaturesHTMLpage.Thedeploymentofcodeontheclientcomponents,thereisnoneedasaresultofusercommandsaretransmittedoverthenetworkbacktotheserver,socangreatlyimprovethespeed.Server-sidecomponentcanalsodisplaytheuserinterfacefunctionsofvisualelements.BydownloadingaDLL,canbeaddedintheHTMLpagetheuserinterfaceelements,suchasalogondialogbox;alsoprovidebehind-the-scenesclientprocessingpower,suchasalibrarywithVBScript.AnotherDLLandInternettechnologywillbecombinedwiththewayitdeployedintheserver-side.IfthereisInternetInformationServer(IIS)(includedinWindowsNTServer4.0in),throughVisualBasiccustomsToolsdiskdirectoryOleisapi2dllinVisualBasictocallDLLbuilt-infunction.Oleisapi2dllcontainsallthefunctionsISAPI.DLLcanbedeployedintheHTTPserver,andHTMLpageinformationsenttocallitsmethods.Oleisapi2dllasaclient,therequesttotheinterfacebetweentheDLL.BasedonduetocodeHTML,theserequestsisonlyasimpleURL.Throughserver-sideDLL,canprovidecustomerswithcustomizedparametersbacktotheclientsHTMLpage,butalsocanmanagethedatabaseconnection,therequesttoreceiveandreturntheresultsofthecollationandorganization.References1Chen.VisaulBasicProgrammingM.CentralRadioandTelevisionUniversityPress,2000.2JinMaozhong.NETProgrammingM.CentralRadioandTVPress,2004.3DingAIping.VisaulBasicProgramming(2ndedition)M.PublishingHouseofElectronicsIndustry,2004.4WenyuanPavilionstudio.ReamweaverXM2004cheatextensionwithM.ChinaRailwayPublishingHouse,2005.