{"id":5092,"date":"2014-03-30T18:45:16","date_gmt":"2014-03-30T18:45:16","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-about-createobject-collection-of-common-programming-errors\/"},"modified":"2014-03-30T18:45:16","modified_gmt":"2014-03-30T18:45:16","slug":"problem-about-createobject-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-about-createobject-collection-of-common-programming-errors\/","title":{"rendered":"problem about createobject-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/Z8u1W.jpg?s=32&amp;g=1\" \/><br \/>\nSysDragon<br \/>\nvb.net createobject<br \/>\nI&#8217;m using CreateObject(progId) in Vb to create a pdfDOcument. But the problem is that after i&#8217;m done and closing the document and release, How can I shutdown the process?How can I reference the process and know if it was already open by the user before I created the object? And how can I kill the process if the process was not running before I created the object (pdfDocument)?Is there better strategies than to use CreateObject()?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/XmPkZ.jpg?s=32&amp;g=1\" \/><br \/>\nShadow Wizard<br \/>\nwindows-7 com asp-classic createobject<br \/>\nWindows 7 32 bit, IIS 7.5.760016385I created a DLL in Visual Basic 6.0 and trying to use it from within classic ASP code:set obj = Server.CreateObject(&#8220;a.b&#8221;)I get the following error:006 ASP 0178Server.CreateObject Access ErrorThe call to Server.CreateObject failed while checking permissions. Access is denied to this object.err.number = -2147024891 I have tried creating the iusr_cmpname user and giving rights to it in the Default website and virtual directory of this ASP page. I have REGSVR32&#8217;d<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/61d2a0f034915fa9d2acd6f6b145bba8?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJoel Coehoorn<br \/>\niis vbscript asp-classic createobject<br \/>\nDeveloping an ActiveX DLL in VB6 for ASP on my development XP &#8211; in the VB environment everything works well &#8211; no problem to late bound instantiate the DLL by CreateObject (I don&#8217;t work with GUID).Under ASP I always get the 438 error &#8211; although it&#8217;s on the same machine, under my super-user with all privileges (I gave the IUSR_machine the highest privileges).I have already burned three days and did not find a solution. I hesitate to upgrade IIS because I do all my development on this machine and n<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6acbf4e489798b95c410d8e00a7c1f42?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nbrilliant<br \/>\nvba scripting createobject filesystemobject<br \/>\nI received this code from one of those nice people here who are willing to spend their time and energy to share their knowledge with noobs:Sub ReadLinesFromAFileOneAfterAnother () Const ForReading = 1, ForWriting = 2, ForAppending = 8 Dim fso, MyFile, FileName, TextLineSet fso = CreateObject(&#8220;Scripting.FileSystemObject&#8221;)FileName = &#8220;c:\\testfile.txt&#8221;Set MyFile = fso.OpenTextFile(FileName, ForReading)&#8221; Read from the file Do While MyFile.AtEndOfStream &lt;&gt; TrueTextLine = MyFile.ReadLine&#8221; Do st<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/88c15ce968fda6b0990288782373c278?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nFrinkTheBrave<br \/>\n.net vbscript createobject<br \/>\nI&#8217;m trying to open a Windows Form in VBS and having some difficulty :-(This line works ok (I think):Set frmPopup = CreateObject(&#8220;System.Windows.Forms.Form&#8221;)But the following fails on the first line with: Microsoft VBScript runtime error: ActiveX component can&#8217;t create object: &#8216;System.Drawing.Size&#8217;Set frmPopup.Size = CreateObject(&#8220;System.Drawing.Size&#8221;)frmPopup.Size.Width = cmintPSPFormWidthfrmPopup.Size.Height = intPopupHeightI guess that&#8217;s because System.Drawing.Size needs the Height and Width p<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e99881d169b24babf26ef3cc775caa86?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ngalambalazs<br \/>\njavascript inheritance constructor prototype createobject<br \/>\nI rather like the prototype way of programming and have been trying to understand it in javascript. I saw this bit of code in The Good Parts:function beget(o){function F(){F.prototype = o;};return new F(); };I don&#8217;t get this at all lol. If all you have to do is set the prototype to a past object, then couldn&#8217;t you just do this:var parent = {num = 66; }; var child = {prototype: parent };This doesn&#8217;t seem to work though, cause child.num is returned as undefined. How do you describe javascript prot<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SysDragon vb.net createobject I&#8217;m using CreateObject(progId) in Vb to create a pdfDOcument. But the problem is that after i&#8217;m done and closing the document and release, How can I shutdown the process?How can I reference the process and know if it was already open by the user before I created the object? And how can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5092","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5092","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5092"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5092\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5092"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5092"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5092"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}