{"id":494,"date":"2008-05-07T22:14:13","date_gmt":"2008-05-07T22:14:13","guid":{"rendered":"http:\/\/6teen.ru\/?p=570"},"modified":"2008-05-07T22:14:13","modified_gmt":"2008-05-07T22:14:13","slug":"10600","status":"publish","type":"post","link":"http:\/\/pblog.ru\/lab\/?p=494","title":{"rendered":"\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0421\u041e\u041c \u043f\u043e\u0440\u0442\u043e\u0432"},"content":{"rendered":"<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0421\u041e\u041c \u043f\u043e\u0440\u0442\u043e\u0432<br \/>\n<!--more--><\/p>\n<pre class=\"alt2\" style=\"margin:0px; padding:6px; border:1px inset; width:580px; height:320px; overflow:auto\"><div>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0421\u041e\u041c \u043f\u043e\u0440\u0442\u043e\u0432\n\n\u041f\u0440\u0438\u0441\u043b\u0430\u043b: \u041c\u0438\u0445\u0430\u0438\u043b (\u041c\u043e\u0441\u043a\u0432\u0430) ( 2 \u043e\u043a\u0442\u044f\u0431\u0440\u044f 2003 \u0433. )\nc \u0421\u0430\u0437\u043e\u043d\u043e\u0432 \u041c\u0438\u0445\u0430\u0438\u043b\n\n\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435:\n\u0414\u0430\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0421\u041e\u041c-\u043f\u043e\u0440\u0442\u043e\u0432. \u0421\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u0441\u044f \u0432 combobox. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0439 \u043f\u043e\u0440\u0442.\n\n\u0417\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438:\nwindows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, comctrls\n\n\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f:\n\u041f\u043e\u043a\u0430 \u043d\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043b\u0438\u0441\u044c\n\n\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442:\n{ **** ubpfd *********** by delphibase.endimus.com ****\n>> \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0421\u041e\u041c \u043f\u043e\u0440\u0442\u043e\u0432\n\n\u0414\u0430\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0421\u041e\u041c-\u043f\u043e\u0440\u0442\u043e\u0432. \u0421\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u0441\u044f \u0432 combobox. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0439 \u043f\u043e\u0440\u0442.\n\n\u0417\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438: windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, comctrls\n\u0410\u0432\u0442\u043e\u0440: \u041c\u0438\u0445\u0430\u0438\u043b, mikhail.sazonov@niitp.ru, \u041c\u043e\u0441\u043a\u0432\u0430\ncopyright: \u0421\u0430\u0437\u043e\u043d\u043e\u0432 \u041c\u0438\u0445\u0430\u0438\u043b\n\u0414\u0430\u0442\u0430: 2 \u043e\u043a\u0442\u044f\u0431\u0440\u044f 2003 \u0433.\n***************************************************** }\n\nunit setcomport;\n\ninterface\n\nuses\nwindows, messages, sysutils, variants, classes, graphics, controls, forms,\ndialogs, comctrls, dfsstatusbar, extctrls, stdctrls, imglist, buttons,\ntoolwin;\n\ntype\ntform1 = class(tform)\nstrnp: trichedit;\ndfsstatusbar1: tdfsstatusbar;\nimagelist1: timagelist;\ncoolbar1: tcoolbar;\npanel1: tpanel;\nloadnp: tbitbtn;\nauto: tcheckbox;\nsetregim: tradiogroup;\ngroupbox1: tgroupbox;\ncomport: tcombobox;\nbaudrate: tcombobox;\nlabel1: tlabel;\nlabel2: tlabel;\nlabel3: tlabel;\nlabel4: tlabel;\nlabel5: tlabel;\nparity: tcombobox;\nbytesize: tcombobox;\nstopbits: tcombobox;\ncloseitem: tbitbtn;\nprocedure inquiryport(sender: tobject); {\u043e\u043f\u0440\u043e\u0441 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043f\u043e\u0440\u0442\u043e\u0432}\nprocedure formcreate(sender: tobject);\nprocedure formclose(sender: tobject; var action: tcloseaction);\nprocedure closeitemclick(sender: tobject);\nprocedure comportchange(sender: tobject);\nprocedure baudratechange(sender: tobject);\nprocedure paritychange(sender: tobject);\nprocedure bytesizechange(sender: tobject);\nprocedure stopbitschange(sender: tobject);\nprocedure setregimclick(sender: tobject);\nprivate\n{ private declarations }\npublic\n{ public declarations }\nfhandl : thandle;{\u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440 \u043f\u043e\u0440\u0442\u0430}\ndcb:tdcb;{\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e\u0440\u0442\u0430}\nportname:string;{\u0438\u043c\u044f \u043f\u043e\u0440\u0442\u0430, \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b}\nend;\n\nvar\nform1: tform1;\n\nimplementation\n\n{$r *.dfm}\n\nprocedure tform1.inquiryport(sender: tobject);\nvar\ni: integer;\nbegin{\u043e\u043f\u0440\u043e\u0441 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043f\u043e\u0440\u0442\u043e\u0432}\nfor i := 0 to 31 do {\u0446\u0438\u043a\u043b \u043e\u043f\u0440\u043e\u0441\u0430}\nbegin{\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440 \u043f\u043e\u0440\u0442\u0430}\nfhandl := createfile( pchar('com'+inttostr(i+1)),\ngeneric_read or generic_write,\n0,\nnil,\nopen_existing, file_flag_overlapped, 0);\nif fhandl <> invalid_handle_value\nthen {\u0435\u0441\u043b\u0438 \u043f\u043e\u0440\u0442 \u0435\u0441\u0442\u044c \u0442\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0441\u043f\u0438\u0441\u043e\u043a}\ncomport.items.add('com'+inttostr(i+1));\nclosehandle(fhandl);{\u0437\u0430\u043a\u0440\u044b\u0442\u044c \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440}\nend;\n<\/div><\/pre>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0421\u041e\u041c \u043f\u043e\u0440\u0442\u043e\u0432<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[433,451],"tags":[1510,1585,1751],"_links":{"self":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts\/494"}],"collection":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=494"}],"version-history":[{"count":0,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts\/494\/revisions"}],"wp:attachment":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=494"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}