problem about createobject-Collection of common programming errors
SysDragon
vb.net createobject
I’m using CreateObject(progId) in Vb to create a pdfDOcument. But the problem is that after i’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()?
Shadow Wizard
windows-7 com asp-classic createobject
Windows 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(“a.b”)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’d
Joel Coehoorn
iis vbscript asp-classic createobject
Developing an ActiveX DLL in VB6 for ASP on my development XP – in the VB environment everything works well – no problem to late bound instantiate the DLL by CreateObject (I don’t work with GUID).Under ASP I always get the 438 error – although it’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
brilliant
vba scripting createobject filesystemobject
I 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(“Scripting.FileSystemObject”)FileName = “c:\testfile.txt”Set MyFile = fso.OpenTextFile(FileName, ForReading)” Read from the file Do While MyFile.AtEndOfStream <> TrueTextLine = MyFile.ReadLine” Do st
FrinkTheBrave
.net vbscript createobject
I’m trying to open a Windows Form in VBS and having some difficulty :-(This line works ok (I think):Set frmPopup = CreateObject(“System.Windows.Forms.Form”)But the following fails on the first line with: Microsoft VBScript runtime error: ActiveX component can’t create object: ‘System.Drawing.Size’Set frmPopup.Size = CreateObject(“System.Drawing.Size”)frmPopup.Size.Width = cmintPSPFormWidthfrmPopup.Size.Height = intPopupHeightI guess that’s because System.Drawing.Size needs the Height and Width p
galambalazs
javascript inheritance constructor prototype createobject
I 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’t get this at all lol. If all you have to do is set the prototype to a past object, then couldn’t you just do this:var parent = {num = 66; }; var child = {prototype: parent };This doesn’t seem to work though, cause child.num is returned as undefined. How do you describe javascript prot
Web site is in building